XML Schema -- ignore whitespace between elements?

C

Curtiss Howard

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top