xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RitikaP <ritika.pa...@gmail.com>
Subject Need to Filter out white Spaces using isEqualNode API
Date Thu, 08 Sep 2011 06:12:56 GMT

Hi,

I am new to xerces and am struggling with this problem since a day but no
help found anywhere so far.
I require to compare two DOM nodes and check whether their contents are same
or not.
I used the isEqualNode function but it works fine only if the two nodes are
same in terms of content and also white space but for difference in only
white spaces it returns unequal.

ie.
================================================
Node1->isEqualNode(Node2) : Returns False for Nodes as below
================================================

Node1:

<AAA>
<BBB>Content of B</BBB>
</AAA>

Node2:

<AAA>
         <BBB>Content of B</BBB>
</AAA>


Please could anyone aan anyone help me with this as it is extremely urgent
for me.

Regards
Ritika



-- 
View this message in context: http://old.nabble.com/Need-to-Filter-out-white-Spaces-using-isEqualNode-API-tp32421264p32421264.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.


Mime
View raw message