Commit 99453150 authored by Andrew's avatar Andrew Committed by ORD

Support importing Guid from XML (#291)

If node value is type Guid get the value from the child <string> tag.
parent b781d153
...@@ -268,6 +268,8 @@ class XMLParser(object): ...@@ -268,6 +268,8 @@ class XMLParser(object):
mytext = mytext.replace('\n', '').replace('\r', '') mytext = mytext.replace('\n', '').replace('\r', '')
# obj.value.append('b"{}"'.format(mytext)) # obj.value.append('b"{}"'.format(mytext))
obj.value = mytext obj.value = mytext
elif ntag in ("Guid"):
self._parse_value(val, obj)
elif ntag == "ListOfExtensionObject": elif ntag == "ListOfExtensionObject":
obj.value, obj.valuetype = self._parse_list_of_extension_object(el) obj.value, obj.valuetype = self._parse_list_of_extension_object(el)
elif ntag == "ListOfLocalizedText": elif ntag == "ListOfLocalizedText":
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment