Newbie: how to make parser find a schema

Discussion in 'XML' started by michelle, Jan 10, 2004.

  1. michelle

    michelle Guest

    I've been going through the w3.org schema tutorial and I got stuck.

    I created a simple schema and a test xml document. How do I get a
    validating parser to find my schema?

    I'm using the SAX2Print example program in xerces as my test parser. (It
    just parses the file and spits it back out to the screen.) If I use a
    DOCTYPE declaration and reference a DTD, the parser validates against the
    DTD. How do I make it to the same thing with a schema? My test schema is in
    a local directory (actually, the same directory as the xml file).

    Thanks.
     
    michelle, Jan 10, 2004
    #1
    1. Advertising

  2. Example at the bottom of page in:
    http://xml.apache.org/xerces-c/schema.html

    p.s. You should mention you're working with xerces-c, there's also
    xerces-j for Java.

    "michelle" <> wrote in message
    news:58XLb.10457$...
    > I've been going through the w3.org schema tutorial and I got stuck.
    >
    > I created a simple schema and a test xml document. How do I get a
    > validating parser to find my schema?
    >
    > I'm using the SAX2Print example program in xerces as my test parser. (It
    > just parses the file and spits it back out to the screen.) If I use a
    > DOCTYPE declaration and reference a DTD, the parser validates against the
    > DTD. How do I make it to the same thing with a schema? My test schema is

    in
    > a local directory (actually, the same directory as the xml file).
    >
    > Thanks.
    >


    with respect,
    Toni Uusitalo
     
    Toni Uusitalo, Jan 10, 2004
    #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,580
    Markus
    Nov 23, 2005
  2. Ghee
    Replies:
    2
    Views:
    705
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,275
    Stanimir Stamenkov
    Apr 25, 2005
  4. Wybo Dekker
    Replies:
    1
    Views:
    374
    Yukihiro Matsumoto
    Nov 15, 2005
  5. vdvorkin
    Replies:
    0
    Views:
    419
    vdvorkin
    Feb 10, 2011
Loading...

Share This Page