Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how I can use an XML file in java?

 
arun singhal
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XML file ..
Now I want to use this XML file in JAVA..
But I am facing some problem..
I don't know that how to use this XML file..
Is I need to download some .jar file for connecting this ..
Please tell me the whole process for using this XML file to connect database....

I know how to use JDBC...
But I am getting problem in fire XQUERY in java....
Please give solution for this so that I can get out of this problem.....
 
Jelle Klap
Bartender
Posts: 1951
7
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java API for XML Processing (JAXP) page at java.net might be a good place to start looking if you want to learn about the basics of dealing with XML in Java.
 
pete stein
Bartender
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used XPath when I want to extract info out of an XML file relatively easily. It's hard to say if this would help you though as I think you need to give us more context, more information of just what you're trying to do with the XML file and why.
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You might also take a look at this. Xml file handling is now easier by using JAXB. You will actually need to use only java classes.
Check this link.

http://java.sun.com/developer/technicalArticles/WebServices/jaxb/

Regards
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question says something about XQuery. It seems to imply you had a problem when you tried something related to XQuery. Can you explain what you tried and what problem you had? As it stands, your question has almost no useful information in it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic