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

Ads









Related Tutorials/Questions & Answers:
How to read value from xml using java?
Read the value from XML in java
Advertisements
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 parse the attributes from XML using KXML parser in j2me
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
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
read value from database & alert it is available in database or not
Read Complex XML using DOM/SAX Parser.
read from file and store using hash map
read XML file and display it using java servlets
how to read data from excel file through browse and insert into oracle database using jsp or oracle???
how to read from dictionary c
How to read from stdin in python
how to read and write xml files in javascript
Java2
read xml
select value from autocomplete textbox using jquery in jsp from database.
select value from autocomplete textbox using jquery in jsp from database.
How to generate XML from XSD?
How to create XML from Swings
download xml file from website using java code
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
populating textbox value from the database using onchange function,
How to access the Title tag from xml to jsp
How to pretty print XML from Java?
Selecting value from autocomplete textbox using jquery in jsp
How to read and display data from a .properties file from a jsp page
How to save and get value from JSP
Finding MAX value from emp_id column using SQL query?
how to select the row value that was retrived from the database ?
how to select the row value that was retrived from the database ?
How to add value from sql server in dropdownlist
how to retrieve a checkbox value(retrieve from DB)
How to access the following tag from xml to jsp
how to insert checkbox value into database using jsp
How to create one xml file from existing xml file's body?
Problem passing a value from one jsp to another using href
Problem passing a value from one jsp to another using href
how to insert checkbox value into database using jsp

Ads