File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with xPath

 
chandrasekhar muvvala
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5040
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic