Title: Message
A quick heads up for anyone following this thread; it seems this could be a classpath issue. Doug's mailed me a sample program to demonstrate the problem which works fine for me against dom4j 1.0 so it could well be a classpath problem or an issue caused by weblogic doing something strange.
 
James
----- Original Message -----
Sent: Monday, October 29, 2001 5:42 PM
Subject: Re: [dom4j-dev] getNodeValue not getting complete node value

This sounds very wierd. It seems like you might have multiple text nodes to me. e.g. is there a newline between the "60" and the "113392" text in your XML document that you're parsing? That could explain why both node.valueOf( "." ) and node.getStringValue() are concatenating the text values whereas node.valueOf( "text()" ) is returning the just text of the first (text) node.
 
Could you send the XML document and a snippet of code you're using to actually get hold of "_currentNode" so we can try it out?

James
----- Original Message -----
Sent: Monday, October 29, 2001 4:48 PM
Subject: [dom4j-dev] getNodeValue not getting complete node value

Hi all,
 
      I posted last week about a problem with the .valueOf("text()") not getting the correct node.  I finally got back to the problem and wrote a quick java program to read my data file and show what is happening.  Where would the best place be to post the data file and java code?
 
    Using the code to write out my Xml Tree:
 
            FileOutputStream out = new FileOutputStream("data.out");
            OutputFormat format = OutputFormat.createPrettyPrint();
            XMLWriter writer = new XMLWriter(out,format);
            writer.write(_domTree);
            writer.close();
            out.close();
        I get the Xml portion (in question) to be:
                  .....
                  <row id="22">
                       <value>601133922</value>
                        <value>US Dollar</value>
                        <value>3</value>
                        <value>601133902</value>
                        <value>null</value>
                        <value>Category</value>
                        <value>Currency List</value>
                    .....
 
    When I use: _columnNode.valueOf("."), I get 60 1133902
                      _columnNode.valueOf("text()"), I get 60
                     _columnNode.getStringValue(), I get 60 1133902
 
    The Xml file I'm trying to parse through is approximately 176K.  If there is anyone that could help me with this problem as soon as possible, I would greatly greatly appreciate it. 
 
 Doug Hoppes
Charles River Development
781-238-0099 x269
 

Reply via email to