good day all,
I am building my first XMLPort. I believe i have the data mapped to the right holding table and fields in NAV and i have a codeunit that calls the xmlport. when i click my button that triggers the codeunit to run the XMLPort, i get an error.
Attribute <xml:lang> is required and does not match with Attribute <lang>
I look at my .xml file and confirm that the attribute is indeed xml:lang. I then look at my XMLPort and see my tag name xml:lang. It is set as an attribute, type text, datasource = cXMLxml:lang
i searched the forum and found 1 thread on this, where it suggested putting code behind the tag on import/export but that did not help.
can NAV read the semicolon in the tag name? when i try to surround the tag name with double quotes or <>, it will not compile because of tag name error. Any hints are greatly appreciated!
edit: still a problem, but confirmed that : is not a good character for XML ports, which is silly since so many people transmit XML using tags with : in them.
kind of fell into this...
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
maybe it will be possible to instead programmatically alter the xml doc before it gets into NAV? we could just make it lang and work through it. we aren't using that attribute anyhow.
Thanks in advance!!