diff options
-rwxr-xr-x | mediawiki.lrdevplugin/MediaWikiApi.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mediawiki.lrdevplugin/MediaWikiApi.lua b/mediawiki.lrdevplugin/MediaWikiApi.lua index 420ab9f..cde8b48 100755 --- a/mediawiki.lrdevplugin/MediaWikiApi.lua +++ b/mediawiki.lrdevplugin/MediaWikiApi.lua @@ -65,7 +65,9 @@ function MediaWikiApi.parseXmlDom(xmlDomInstance) for i = 1, xmlDomInstance:childCount() do local child = xmlDomInstance:childAtIndex(i) local childName, childNamespace = child:name() - value[childName] = MediaWikiApi.parseXmlDom(child) + if childName then + value[childName] = MediaWikiApi.parseXmlDom(child) + end end elseif xmlDomInstance:type() == 'text' then value = xmlDomInstance:text() |