Home Tutorialhelp Allcomments Xml Dom Accessing Xml File Java

 
 

Comments

 
User Comments for the tutorial:

Accessing XML file from Java



Total comments: 7      View Tutorial    Discuss: Accessing XML file from Java
Advertisement
Comments

Comment
System.out.println("Last Name :"+((Node)lastName.item(0).getNodeValue()); in the code is wrong It will not work in SOLARIS Env. 

Error in example
Line 29 ans line 34 are incorrect. There should be a extra ') before "getNodeValue()" 

Code correction is simple
Hi, Just add a closing ) to the cast to Node: +((Node)lastName.item(0)).getNodeValue());  

about site
this is really a very good site for learning 

Thanks a lot
Thanks a lot for your tutorials! They are very helpful. 

it's a typo, that's all
only a missing close brace System.out.println("Last Name :"+((Node)lastName.item(0)).getNodeValue()); 

Comments.
Useful tutorial on how to read data from a xml file.  

Related Tutorial and Articles
Java Beginners

accessing xml using java
accessing xml using java  I need to retrieve some elements in xml file using java   Hi Friend, Please visit the following links: http...-text-values-from-a-nodel.shtml http://www.roseindia.net/xml/dom/GetData.shtml 

XML Questions

DOM - XML
DOM  Hi... I created an xml file through java by using DOM... downloadaction...for this But it didn't worked.. Its jus viewing the xml file... in advance  Hi Friend, Do you want the code in jsp or in java? Please 

XML Questions

Java-XML-DOM - XML
Java-XML-DOM  Hi! I need some help. I have to make java program that loads an xml file and from it builds DOM(later i will have to work with it - like using xpath in java find some value and replace it...). Since i'm new to java 

XML Questions

DOM - XML
DOM  Hello.... I'm creating an xml file from java using DOM... from the database values... and saving it in a file But the created xml file..."),rs.getString("email")); } System.out.println("Xml File Created 

XML Questions

dom to xml string
dom to xml string  Hi, I am writing a program in java that reads the xml file from a webservice. The Document object is returned in my program. I have save the dom document into xml file. How to convert dom to xml string 

Java Beginners

XML DOM error - Java Beginners
XML DOM error  import org.w3c.dom.*; import javax.xml.parsers.... InputStreamReader(System.in)); System.out.print("Enter File name: "); String xmlFile = bf.readLine(); File file = new File(xmlFile 

PHP Tutorial

XML DOM Tutorial
XML DOM Tutorial       W3C provides a standard called DOM (Document Object Model) for HTML & XML documents. DOM is also used as an interface for accessing and manipulating HTML & XML 

XML

Accessing XML file from Java
Accessing XML file from Java   ... through Java. For that we have used DOM parser. DOM parser that loads the XML file...) AccessingXmlFile.java Source Code for accessing XML file through Java   

XML Questions

DOM to SAX and SAX to DOM - XML
Java DOM to SAX and SAX to DOM  Simple API for XML and Document Object Model 

JDBC Questions

xml file creation in java
xml file creation in java  how to create xml file in java so...; Please visit the following links: http://www.roseindia.net/tutorial/java/xml/texttoXML.html http://www.roseindia.net/xml/dom/CreatXMLFile.shtml    

Advertisements Advertisements
 

 

 

DMCA.com