Title: Message
Hi Dave,
I dont know of an XPATH expression that will give you the result, I am not an XPATH expert. I think that XPath treats all text nodes as the the same,
 
If you dont want to have any whitespace then you  call setStripWhitespaceText(true) on the SAXContentHandler, which will not give you the nodes in the first place
 
if your cadat section contains non whitespace only, and you only have one CDATA section as a child of the element, which I guess it would then you can
use getTopNode().valueOf( "/bitmap" ).trim();
 
failing that navigate to the element and iterate through the content to get the result
 
Hope this helps
Mike
 
-----Original Message-----
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Friday 14 March 2003 14:42
To: Mike Skells
Subject: Re: [dom4j-user] CDATA inserting \n\t

What call should I use then?
 
thanks - dave
 
----- Original Message -----
Sent: Friday, March 14, 2003 1:10 AM
Subject: RE: [dom4j-user] CDATA inserting \n\t

Hi david,
valueof looks at all of the text nodes, not just the CDATA
 
Mike
-----Original Message-----
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: Thursday 13 March 2003 23:58
To: [EMAIL PROTECTED]
Subject: [dom4j-user] CDATA inserting \n\t

Hi;
 
This is my xml:
 <bitmap>
 <![CDATA[ffd8ffe0]]>
 </bitmap>
 
This is what I am getting from getTopNode().valueOf( "/bitmap" );
    \n\tffd8ffe0\n\t
 
Any ideas?
 
thanks - dave

 

Reply via email to