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 Rajesh Kommineni <r_...@hotmail.com> on 2001/12/20 16:34:20 UTC

Re: Handling "white space" in element value

>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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org