Title: AW: Bug in sample dom.Writer ???

The answer is simple, this is a well-formed document.

From the XML 1.0 recommendation: "The ampersand character (&) and the left angle bracket (<) may appear in their literal form only when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section."

So the right angle bracket(>) is perfectly ok.

Regards,
Johann

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 13. M�rz 2002 16:25
An: [EMAIL PROTECTED]
Betreff: Bug in sample dom.Writer ???


Hi !

I'm running the sample dom.Writer with Xerces J 2.0.0

with this non-well-formed XML document :

<?xml version="1.0" encoding="ISO-8859-1"?>
<MailingList>
 <Age> > 60</Age>
</MailingList>

And I don't get an error message.

But if I use the "<" character instead of the ">" character, than I get an error message.

Is this behaviour normal ?

TIA for any answer.


                           Jean-Guillaume Battaglia.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to