IntelliJ open source
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » XML and Related Technologies
 
RSS feed
 
New topic
Author

how I can use an XML file in java?

arun singhal
Ranch Hand

Joined: Oct 25, 2009
Messages: 36

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.....

This message was edited 1 time. Last update was at by Bear Bibeault

Jelle Klap
Ranch Hand

Joined: Mar 10, 2008
Messages: 431

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.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
pete stein
Ranch Hand

Joined: Feb 23, 2007
Messages: 921

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

Joined: Sep 10, 2009
Messages: 66

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

Thanks and Regards,
ITechie
Paul Clapham
Bartender

Joined: Oct 14, 2005
Messages: 7197

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.
 
jQuery in Action
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Engineering » XML and Related Technologies
 
RSS feed
 
New topic
hibernate profiler