Bad XML exported?
Posted: Wed Sep 03, 2003 12:46 pm
Greetings. I'm using DataStage 5.1. When I export a job to XML, the XML contains an unescaped ampersand, which is invalid as an XML character. This causes grief for whatever XML parser I try. The text sequence occurs twice within a TrxOutput element; once as the text for a RoutineTransforms property: "", and again (same string) as the text for a Transform property in a Columns collection. I don't see anything in the job definition that would cause these strings to be included. The offending elements look something like the following (with surrounding tags removed):
<Property Name="RoutineTransforms"></Property>
<Property Name="Transform"></Property>
The text should instead be: 
Has anyone else seen something like this? I can write code to search/replace for unescaped ampersands in the exported XML to fix the problem, but I was hoping for some type of explanation.
Thanks in advance!
Bill
<Property Name="RoutineTransforms"></Property>
<Property Name="Transform"></Property>
The text should instead be: 
Has anyone else seen something like this? I can write code to search/replace for unescaped ampersands in the exported XML to fix the problem, but I was hoping for some type of explanation.
Thanks in advance!
Bill