EJB design: Validation XML and Schema using DOM

  1. Validation XML and Schema using DOM (1 messages)

    Hi All

    Is there any way in java, where I can validate the XML against a Schema using DOM. And more over I need to pass both the XML and Schema as input to the program.

    Any one can u plz help me out on this...

    Thankx in Advance
  2. Chandra -
    The short answer is yes. Depending upon what it is you are trying to do deterimines how ugly it gets. Try looking at the Apache stuff in more detail: Apache Xerces: Introspecting DTD's and XML Schemas.

    This should get you started in the right direction.

    Thanks -