Hi Doug
Firstly if you want the XPath string value of a
node you can just call the getStringValue() method.
node.getStringValue();
Secondly the valueOf() method always returns the
XPath string value of the XPath expression you give so that
node.valueOf( "'." )
should pretty much equate to the same
thing.
Though neither of these things explain your
problem. Is there any way you can create a fragment of XML and demonstrate
the problem with a snippet of code? Maybe you are actually adding null Strings
to the XML document?
Element element = ...;
element.addText ( null );
If this is the case then maybe we should explicitly
check for null strings and quitely ignore them...
James
|
Title: Message
- [dom4j-dev] valueOf("text()") not getting full v... Doug Hoppes
- Re: [dom4j-dev] valueOf("text()") not getti... James Strachan
- Re: [dom4j-dev] valueOf("text()") not g... Dennis Sosnoski
- Re: [dom4j-dev] valueOf("text()") n... James Strachan
- Re: [dom4j-dev] valueOf("text()"... James Strachan