>Hi,
>
>I have the following requirement
>
># : represents a white space character in data
>
>1) <tag1>ABC</tag1>
>2) <tag2>#ABC</tag2>
>3) <tag3>ABC#</tag3>
>
>I would like to extract the value ABC, without the whitespace.
>
This is the only thing I hate about DOM API. There is no method for ignoring 
whitespace. With out validating even traversing the document becomes 
difficult as each white space is treated as a text Node.

Are you "validating" your document? If yes, you can use the following 
method:
yourparser->setIncludeIgnorableWhitespace(false);

Hope this helps

rajesh

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

Reply via email to