Troubleshooting
Problem
PRTFILE and LOGFFS report the following error during XML to EDI Data Transformation.
Symptom
UP0001*08*A fatal error occurred during parsing of XML document XML input at line 322, column 79. Message text from parser is Expected an element name . **** File: //'EDI.TE52INT.CPP(EDIUPXML)' Line: 744 Func: SAXDIHandlers::fatalError(const SAXParse
Cause
There is a special character "<" used within an XML element value. There are two cases where the less-than sign is present in the data.
For example:
<ProductIDDescription>Widget product, for use with ABCDEFG and VWXYZ (400<)</ProductIDDescription>
Resolving The Problem
For a good description, see "2.4 Character Data and Markup" at:
http://www.w3.org/TR/xml11/#sec-predefined-ent
where it says, "...MUST be escaped using either numeric character references or the strings "&" and "<" respectively." Meaning, less-than sign should be escaped with "<" or "<"
So, for the example above, "<" could be represented as a string as follows:
<ProductIDDescription>Widget product, for use with ABCDEFG and VWXYZ (400<)</ProductIDDescription>
Alternatively, using numeric character reference:
<ProductIDDescription>Widget product, for use with ABCDEFG and VWXYZ (400<)</ProductIDDescription>
Or, lastly, removal of the "<" from the data value would avoid the UP0001 XML parser error.
Was this topic helpful?
Document Information
Modified date:
01 August 2018
UID
swg21973639