Hi All,
I am currently trying to read a xml document. So far all works fine besides the tags that are optional.
If a optional tag is not present in the xml document a error occurs. I want to test if a optional tag is present or not before reading it but I can't seem to find a way to do this, can anyone point me in the right direction?
Regards,
Leon
0
Comments
Jan Hoek
Product Developer
Mprise Products B.V.
If your tag is an attribute, check the property Occurrence and set it to Optional
if your tag is an element , check the properties MinOccurs and MaxOccurs:
set MinOccurs to Zero and MaxOccurs to Unbounded
If you are using XMLDOM check the Commerce Portal Codeunit 6226 "XML Document Decode"
An excerpt of this Codeunit where the existence of the tag GUID is done:
Hope this helps!
...
Everybody on-line.
...
Looking good!
Regards,
Leon