Forcing schema validation

Discussion in 'XML' started by i.am.thor@gmail.com, Nov 30, 2006.

  1. Guest

    Does anyone know of a way to force validation of an XML file if the
    schemaLocation attribute is not set in the document? For example, I'm
    trying to use the loadGrammar() function of the xerces parser to force
    it to validate foo.xml against foo.xsd, even though foo.xml does not
    contain the schemaLocation attribute. The function returns OK, but
    subsequent calls to parse() do not actually validate against the
    grammar.
     
    , Nov 30, 2006
    #1
    1. Advertising

  2. Joe Kesselman, Nov 30, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Markus
    Replies:
    1
    Views:
    1,611
    Markus
    Nov 23, 2005
  2. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,295
    Stanimir Stamenkov
    Apr 25, 2005
  3. Mukul Gandhi
    Replies:
    0
    Views:
    511
    Mukul Gandhi
    Oct 3, 2008
  4. pramodr
    Replies:
    3
    Views:
    853
    Peter Flynn
    Apr 5, 2009
  5. Replies:
    5
    Views:
    1,056
    Brian McCauley
    Nov 29, 2006
Loading...

Share This Page