This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes easy XML parser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "easy XML parser" Watch "easy XML parser" New topic
Author

easy XML parser

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

Hi Guys ,

I'm new to dealing with XML with java , So please b i wanna know the best and easiest XML parser to read and write xml with java ...
Appreciate your advice ..


Thanks,
Sherif
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35444
    
    9
"Best" and "easiest" are always relative to the problem at hand, so we can't give general advice on that. The XmlFaq points to several introductions on how to use JAXP, the standard Java API for processing XML. You may also wish to investigate 3rd party APIs like XOM and JDOM.


Android appsImageJ pluginsJava web charts
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

Actually what i wanna do is that i got XML file i wanna to read it and edit some element then save it ... that's all i wanna do
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35444
    
    9
... which is precisely what JAXP and the other libraries I mentioned do. :-)
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

Ulf Dittmer wrote:... which is precisely what JAXP and the other libraries I mentioned do. :-)


Thanks Ulf for your fast reply, by the way the XML file i wanna edit is web.xml file in my WAR , so JAXP will help or any 3rd party will be better ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35444
    
    9
"Better" in what regard? JAXP -like the other XML parsers and DOM implementations- doesn't care about what kind of XML file it's dealing with.
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 472

i got your idea , OK i'll use JAXP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: easy XML parser
 
Similar Threads
XML and Eclipse
vCard Parser
XSL parser
issue with jdk1.5 + tomcat 5
XML Parser Example