XML Schema -- ignore whitespace between elements?

Discussion in 'XML' started by Curtiss Howard, Nov 26, 2003.

  1. I'm using Xerces 2.4.0 and I've got a schema (converted from a DTD) for
    my XML documents. However, Xerces will NOT ignore the whitespace
    between elements. These are the options I've set for the parser:

    * Validate
    * Do schema validation
    * Do NOT include ignorable whitespace

    From all I've managed to find online, I shouldn't be having any
    problems. If I have my document use the DTD, the parser doesn't include
    whitespace (text nodes) between elements in the DOM tree; if I use my
    schema, whitespace is included. Is there something I'm missing? Old
    newsgroups postings I've found where people are having the same problem
    generally have someone suggesting that they "make a schema and tell
    the parser to get rid of ignorable whitespace", which is exactly what
    I'm doing...


    Thanks,

    Curtiss Howard
    Curtiss Howard, Nov 26, 2003
    #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,491
    Markus
    Nov 23, 2005
  2. Oli Filth
    Replies:
    9
    Views:
    3,311
    Uncle Pirate
    Jan 17, 2005
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,165
    Stanimir Stamenkov
    Apr 25, 2005
  4. Replies:
    3
    Views:
    2,783
  5. Replies:
    10
    Views:
    715
    Eric Brunel
    Dec 16, 2008
Loading...

Share This Page