XML schema location

Discussion in 'XML' started by method, Jun 6, 2007.

  1. method

    method

    Joined:
    May 29, 2007
    Messages:
    2
    Hi,

    I have a jar file that contains the xsd schema. I also have an xml file that must check against this schema but this xml is in another directory outside the jar.
    In my xml, I have this:

    <?xml version="1.0" encoding="UTF-8"?>
    <configs xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:schemaLocation="schema.xsd">

    From what I know (correct me if I am wrong), the schemaLocation is relative to the java classpath. My classpath is set to the location of the jar. My problem is that it seems to fail at locationg the schema. What am I missing/doing wrong here?

    Thanks in advance.
     
    method, Jun 6, 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. Markus
    Replies:
    1
    Views:
    1,580
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    954
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    464
    Martin SChukrazy
    Mar 2, 2004
  4. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,277
    Stanimir Stamenkov
    Apr 25, 2005
  5. asciz@starmail.com
    Replies:
    3
    Views:
    2,897
    asciz@starmail.com
    Feb 20, 2007
Loading...

Share This Page