mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
minor fix
This commit is contained in:
@@ -102,6 +102,9 @@ impl = getDOMImplementation()
|
|||||||
class MissingRootTag(Exception):
|
class MissingRootTag(Exception):
|
||||||
"""root tag name was not given"""
|
"""root tag name was not given"""
|
||||||
|
|
||||||
|
class IncorrectRootTag(Exception):
|
||||||
|
"""root tag is given but incorrect"""
|
||||||
|
|
||||||
class InvalidXML(Exception):
|
class InvalidXML(Exception):
|
||||||
"""failed to parse XML input"""
|
"""failed to parse XML input"""
|
||||||
|
|
||||||
@@ -290,7 +293,7 @@ class XMLNode:
|
|||||||
parentDict = self._parent._childrenByName
|
parentDict = self._parent._childrenByName
|
||||||
nodeName = node.nodeName
|
nodeName = node.nodeName
|
||||||
if not parentDict.has_key(nodeName):
|
if not parentDict.has_key(nodeName):
|
||||||
parentDict[nodeName] = parent.__dict__[nodeName] = self
|
parentDict[nodeName] = self._parent.__dict__[nodeName] = self
|
||||||
else:
|
else:
|
||||||
if isinstance(parentDict[nodeName], XMLNode):
|
if isinstance(parentDict[nodeName], XMLNode):
|
||||||
# this is the second child node of a given tag name, so convert
|
# this is the second child node of a given tag name, so convert
|
||||||
|
|||||||
Reference in New Issue
Block a user