File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Problem with xPath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem with xPath" Watch "Problem with xPath" New topic
Author

Problem with xPath

chandrasekhar muvvala
Greenhorn

Joined: Nov 12, 2003
Posts: 9
I need in solving related to xPath.

From the main function, passing Node as a parameter.

The node is:
<INPUTS>
<FLD NM="ABC">100000</FLD>
<FLD NM="DEF">0.9</FLD>
<FLD NM="RATE_STATE">CT</FLD>
<FLD NM="RETRIEVALDE">12/1/2004</FLD>
<FLD NM="EXPIRATION_DATE">12/1/2005</FLD>
<!--<FLD NM="ANN_RATE_DATE"/>-->
<FLD NM="REGIONS">1</FLD>
</INPUTS>

Now i have to read the Attribute Value ie., "ABC" etc., and Node Value '10000' and to store in hashtable.

Pls. guide me how to solve this problem, using java and xpath.
Its Urgent Please.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
hmmm.....not sure where to start....!
Are you familiar with Java, XML and XPath ?
What parser are you using ?

If you could tell us more about your application....


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with xPath