View Single Post
  #3 (permalink)  
Old November 17th, 2008, 02:40 PM
DKatSSA DKatSSA is offline
Registered User
 
Join Date: Nov 2008
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using Xalan 2.7.0. For the time being, I am just passing in the value and trying to display the result on the console before moving into the next steps of the program. Below is the code I am using if I am trying to display the resulting value as a string (which gives me string values without their tags):

 public void parseXMLtoDom (String xmlTextNode)throws Exception
    {
     System.out.println(xmlTextNode.toString());
    }

The following code will compile, but I get a "table:[null]" on the console when I try to display the first node in the index. This leads me to believe that XML is not being passed into the Java method:

 public void parseXMLtoDom (NodeList xmlTextNode)throws Exception
    {
         System.out.println(xmlTextNode.item(0));
    }

Thank you for the assistance!

Reply With Quote