Validating XML document without using "xsi:schemaLocation" attribute

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Naresh Agarwal

    #1

    Validating XML document without using "xsi:schemaLocation" attribute

    Hi

    I'm using SAX Parser of Xerces Java v2.4.0 for XML Parsing.
    I want to perform schema validations on the xml.

    The problem is that root element of XML document does not have
    "xsi:schemaLoca tion" attribute, which is used to specify the .xsd
    file.

    Is there any other way for specifying the name of .xsd file?

    thanks,
    Naresh
  • Christian Ludwig

    #2
    Re: Validating XML document without using "xsi:schem aLocation" attribute

    Hello,
    [color=blue]
    > Hi
    >
    > I'm using SAX Parser of Xerces Java v2.4.0 for XML Parsing.
    > I want to perform schema validations on the xml.
    >
    > The problem is that root element of XML document does not have
    > "xsi:schemaLoca tion" attribute, which is used to specify the .xsd
    > file.
    >
    > Is there any other way for specifying the name of .xsd file?[/color]

    Take a look at
    http://java.sun.com/webservices/docs...9.html#wp65302

    There is a paragraph "You can also specify the schema file in the
    application, using code like this:"

    I hope this helps.

    Bye
    C. Ludwig

    Comment

    Working...