US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Parse XML According to Schema

  1. #1
    Join Date
    Apr 2012
    Posts
    16

    Default Parse XML According to Schema

    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

  2. #2
    Join Date
    Jun 2012
    Posts
    1,486

    Default

    Quote Originally Posted by w00te View Post
    ..., 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.
    pdi-ce-4.3.0-stable
    OpenJDK IcedTea 2.3.7 (7u21)
    ubuntu 12.04 LTS (x86_64)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •