That is exactly what I mean.  I have created a text node named error.  It has the content I have an <error> in my document.  The file is created by serializing data out using a DOMWriter.  It is read in using a validating DOMBuilder which validates against our schema.  We just weren't sure that it did the textual replacement that you alluded to below where < becomes &lt; and > becomes &gt;  Is it possible for you to point out to me in either the code or documentation where these "conversions" or "cannonicalizations" are done when you are using DOMWriter?  I would like to see what characters are converted by the code.
 
Thanks,
Bryan

Alberto Massari <[EMAIL PROTECTED]> wrote:
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:
> I have an in my document
>
>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 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

I have an <error> in my document

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!?
>Vote for the
>stars of Yahoo!'s next ad campaign!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!

Reply via email to