You are viewing limited content. For full access, please sign in.

Question

Question

Read XML errors when Space in Node Name

asked on November 14, 2017

If I have a node with Spaces like <Invoice Number>111</Invoice Number>, the ReadXML throws an error. Is this a known issue please? Thanks.

Priya

 

0 0

Replies

replied on November 14, 2017

Which product are you referring to?

0 0
replied on November 14, 2017

Xml element names cannot have spaces in them.  XML like "<Invoice Number>" is interpreted as an open tag called "Invoice" with a value-less attribute called "Number".  "</Invoice Number>" is not legal XML - it has a similar interpretation, but close tags can't have attributes.

There are ways of encoding forbidden characters in XML attributes, but there is no workaround for elements.  You'll need whoever is producing the XML to update their program.

0 0
replied on November 14, 2017

Thanks

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.