Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Xpath in java

 
uday kantt
Greenhorn
Posts: 26
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have written a java program which reads a particular node if an xml file (an attribute of the node containing some data) is copied in to a String variable. The code is as follows


-------------------------------------------


So now reading a particular node's attribute data is fine, but depending upon the attributes data its parent node's attribute data is supposed to be read(travel up) is this possible or not, please help.
Thank you
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What happens when you do that?
 
uday kantt
Greenhorn
Posts: 26
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi kamal
Just i want that parent node copied into the string variable so that i and send it to the database.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic