Parsing XML file via XML Stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vcsasikala
Participant
Posts: 26
Joined: Wed Jun 20, 2007 1:13 am
Location: Chennai

Parsing XML file via XML Stage

Post by vcsasikala »

Hi All,
We are facing an issue while reading an XML in datastage v8.5 via XML Stage. We have XSD that shows the tree view of how the XML document should look. Say there are 5 hierarchy level defined in XSD and each hierarchy level has its own number of columns. The XML we tried to read is not having one hierarchy level.So we are not able to read the whole XML. If we add the hierarchy level with empty tags simply like <open></close> in the XML file then we able to read it. Is there any possible to read an XML file if the XML file is missing one hierarchy level which is mentioned in XSD ? Please share your thoughts


Thanks
Sasikala
Regards,

Sasikala V C
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

It should only fail if that level of the hierarchy is required by the xsd and you are performing validation. Remove any validation checking if that is the case.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
Post Reply