XSD validation using relative path

Discussion in 'XML' started by method, May 29, 2007.

  1. method

    method

    Joined:
    May 29, 2007
    Messages:
    2
    Hi,
    I am trying to get my program to use a relative path for the location of the XSD file. My code is this:

    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true);

    builder.setFeature("http://apache.org/xml/features/validation/schema", true);
    builder.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
    "configs.xsd");

    configs.xsd is within my project workspace but it is still complaining of not finding the elements. Any help will be appreciated.
     
    method, May 29, 2007
    #1
    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. Matt
    Replies:
    3
    Views:
    19,626
    Sudsy
    Jul 8, 2004
  2. Rushi
    Replies:
    1
    Views:
    564
    the_edge123.nospam@club-internet.fr
    Dec 9, 2005
  3. Thomas Guettler
    Replies:
    3
    Views:
    772
    Andrei
    Oct 27, 2003
  4. Oren
    Replies:
    1
    Views:
    558
    Michael D. Ober
    Apr 29, 2007
  5. Nigel Wilkinson
    Replies:
    2
    Views:
    400
    Nigel Wilkinson
    Jul 25, 2005
Loading...

Share This Page