XML schema location

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

  1. method

    method

    Joined:
    May 29, 2007
    Messages:
    2
    Likes Received:
    0
    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. Advertisements

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,908
    Markus
    Nov 23, 2005
  2. Fred Smith
    Replies:
    1
    Views:
    1,180
    Martin Honnen
    Feb 5, 2004
  3. Hari Om
    Replies:
    1
    Views:
    578
    Martin SChukrazy
    Mar 2, 2004
  4. Andy
    Replies:
    0
    Views:
    697
  5. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,550
    Stanimir Stamenkov
    Apr 25, 2005
  6. asciz@starmail.com
    Replies:
    3
    Views:
    4,427
    asciz@starmail.com
    Feb 20, 2007
  7. Matt
    Replies:
    3
    Views:
    553
    Bob Barrows [MVP]
    Apr 23, 2004
  8. huntingseasonson@gmail.com
    Replies:
    5
    Views:
    1,621
    Brian McCauley
    Nov 29, 2006
Loading...