IBM Support

UP0001 08 A fatal error occurred during parsing of XML

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 "&amp;" and "&lt;" respectively." Meaning, less-than sign should be escaped with "&lt;" or "&#60;"

So, for the example above, "<" could be represented as a string as follows:

<ProductIDDescription>Widget product, for use with ABCDEFG and VWXYZ (400&lt;)</ProductIDDescription>

Alternatively, using numeric character reference:
<ProductIDDescription>Widget product, for use with ABCDEFG and VWXYZ (400&#60;)</ProductIDDescription>

Or, lastly, removal of the "<" from the data value would avoid the UP0001 XML parser error.

[{"Product":{"code":"SSFKTZ","label":"WebSphere Data Interchange"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"WDI 3.3 z\/OS","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"3.3","Edition":"All Editions","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
01 August 2018

UID

swg21973639