XML ignorableWhiteSpaces

G

Groleo

Is there a way to write a DTD, so the spaces are ignored inside an
elements tag?
I am using a validating parser :p
 
R

Richard Tobin

Groleo said:
Is there a way to write a DTD, so the spaces are ignored inside an
elements tag?
I am using a validating parser :p

No. An XML parser won't ignore whitespace in the content of elements.

If you declare an element to have element-only content, a validating
parser will tell the application that the whitespace between the
elements is in element-only content, but what the application does with
that information is up to it.

[Incidentally, "inside a tag" means inside the angle brackets. You
presumably meant *between* the start and end tags.]

-- Richard
 

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

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,839
Latest member
MartinaBur

Latest Threads

Top