You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Dave Hoffer <DH...@xrite.com> on 2002/09/30 22:42:40 UTC

Problems with isEqualNode()...

What I am trying to do is...

I create a simple DOMDocument.  I then serialize the document to a memory buffer.  My app will then send this buffer through a socket and re-create the Document on the other side.

In my unit tests, I get a failure when I try to compare original DOMDocument to the one created after the serialization.  I am using isEqualNode() to do this comparison.  The trouble seems to be that the LocalName of one of the objects is null where the other is set to some value.  I do not know why/how the local name gets set.

What am I doing wrong here?  Is there a code example of xml socket serialization somewhere? 

Thanks.

-dh





---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org