How to read value from xml using java?

How to read value from xml using java?

Hi All, I want to read value from following xml using java.. In <Line>,data is in format of key and value pair.. i want to read only values..could u plz help me in this?Thanks in advance

<pre lang="xml">
&lt;?xml version="1.0" encoding="UTF-8" ?> 
&lt;sales>
&lt;item>
&lt;LINE>002:OR,004:0001,002:01,002:01,007:SCEM_02,000:,007:590,000,002:KG,002:PC;/
&lt;/LINE> 
&lt;/item>
&lt;/sales>

Regards, Glory

View Answers









Related Tutorials/Questions & Answers:
How to read value from xml using java?
Read the value from XML in java
Advertisements
How read xml file value in dojox chart - XML
how to read values from java in xml?
how to read and write an xml file using java
How to values from xml using java?
Read XML using Java
read xml using java
how to create xml schema from xml doc using java
how to read values from excel sheet and compare with database using jsp
How to read all value from int buffer in java.
How to parse the attributes from XML using KXML parser in j2me
how to read this xml file - XML
How to parse the attributes values from XML using KXML parser in j2me
how to show effect (visual) on jsp page using value from database
Retrieving attribute value from XML
how to show value and percentage in piechart sections from database using jfreechart
how to load value in dropdown list after selecting value from first dropdown list using javascript
difference between java5 and java6 - Java Beginners
read value from database & alert it is available in database or not
Read Complex XML using DOM/SAX Parser.
how to retrieve data from database using combobox value without using request.getParameter in jsp - JSP-Servlet
read XML file and display it using java servlets
read from file and store using hash map
Java2
how to read from dictionary c
how to read data from excel file through browse and insert into oracle database using jsp or oracle???
How to read from stdin in python
how to read and write xml files in javascript
Retrieve data from xml using servlets
How to retrieve data from database by using combo box value in jsp? - JSP-Servlet
how to update xml from java - XML
read xml
about java1
How to generate XML from XSD?
select value from autocomplete textbox using jquery in jsp from database.
select value from autocomplete textbox using jquery in jsp from database.
Reading an XML document using JDOM
How to create XML from Swings
How to read text from - Java Beginners
download xml file from website using java code
how to read the .proprties file from struts - Struts
How to read a line from a doc file
how to read file using InputStreamReader in java
How to Read a file line by line using BufferedReader?
Read data from excel file and update database using jsp
Read code from excel sheet and upload into database using JSP
How to access the Title tag from xml to jsp
Javah
How to pretty print XML from Java?

Ads