PDA

View Full Version : Parse XML According to Schema



w00te
06-13-2012, 09:05 AM
Hi everyone,

I have some XML coming into my transformation. It's quite complex, has a large number of fields, and is not easy to sample, so I'd like to parse it according to the schema that arrives with it to ensure I don't miss any elements.

Can I parse XML according to an XSD in PDI?

Thanks,

-w00te

marabu
06-13-2012, 12:57 PM
..., so I'd like to parse it according to the schema that arrives with it to ensure I don't miss any elements.

Let an "XSD Validator" step take care of the hard work.

And with an "XML Input Stream (StAX)" you can rest assured, that no single node goes unseen.