Hi Bryan,
At 09.47 20/07/2004 -0700, Bryan Wilcox wrote:
I have observed this behavior, but haven't been able to find anything in the documentation to support what I believe to be true. Could somebody clarify this for me. If I have a text node and inside the text node is embedded "non-safe" characters such as <, >, etc. the parser will correctly read/validate && serialize these characters. For example, if I have a xml instance document that contains the following line:
<error> I have an <error> in my document</error>
This line seems to validate correctly when validation is turned on.
This shouldn't even parse; unless you are saying that you have created a DOMText node with the content " I have an <error> in my document", then you serialized using DOMWriter, then parsed it with validation turned on. In this case, the serialization has done the right thing, and the saved XML file really contains
<error> I have an <error> in my document</error>
Alberto
Could anyone suggest where I could look to get further information on this behavior. At first glance, one would think that you woud need to canonicalize the text to prevent the parser from getting confused, but it seems to handle this correctly.
Any help would be appreciated.
Thanks, Bryan
Do you Yahoo!?
<http://advision.webevents.yahoo.com/yahoo/votelifeengine/>Vote for the stars of Yahoo!'s next ad campaign!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
