xml generation and parsing in java

Reply

Join Date: Nov 2007
Posts: 84
Reputation: knowledgelover is an unknown quantity at this point 
Solved Threads: 0
knowledgelover knowledgelover is offline Offline
Junior Poster in Training

xml generation and parsing in java

 
0
  #1
Jul 22nd, 2009
hi there,

I am trying to learn how to generate xml document having the XSD file that describes the schema of the xml, and need to insert specific values for some of the elements, too.

then I need to parse other xml files,
I have googled about it, and many results showed up,
what is the better way to do it, what API are preferable,

Thanks in advance
there's always something to learn
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 33
Reputation: axeeffect2002 is an unknown quantity at this point 
Solved Threads: 4
axeeffect2002 axeeffect2002 is offline Offline
Light Poster

Re: xml generation and parsing in java

 
0
  #2
Jul 22nd, 2009
Originally Posted by knowledgelover View Post
hi there,

I am trying to learn how to generate xml document having the XSD file that describes the schema of the xml, and need to insert specific values for some of the elements, too.

then I need to parse other xml files,
I have googled about it, and many results showed up,
what is the better way to do it, what API are preferable,

Thanks in advance
I don't know how to generate xml based on schema but you can parse xml using XMLBeans. Download the related jar and read the specifications. It's very easy to use. All you have to do is to compile the schema using scomp command. XMLBean will automatically generate classes and interfaces based on the schema. You can fetch the values in xml file by using getter methods.
Hope it may help you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 84
Reputation: knowledgelover is an unknown quantity at this point 
Solved Threads: 0
knowledgelover knowledgelover is offline Offline
Junior Poster in Training

Re: xml generation and parsing in java

 
0
  #3
Jul 23rd, 2009
Thanks for replying,
I was wondering does XMLBean allow me to insert values to the xml, according to there elements name!!
I am giving it a try,

Thanks again
there's always something to learn
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 33
Reputation: axeeffect2002 is an unknown quantity at this point 
Solved Threads: 4
axeeffect2002 axeeffect2002 is offline Offline
Light Poster

Re: xml generation and parsing in java

 
0
  #4
Jul 23rd, 2009
Originally Posted by knowledgelover View Post
Thanks for replying,
I was wondering does XMLBean allow me to insert values to the xml, according to there elements name!!
I am giving it a try,

Thanks again
I don't think that XMLBean have any api for inserting values to xml.
Anyway try it and do let me know.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 84
Reputation: knowledgelover is an unknown quantity at this point 
Solved Threads: 0
knowledgelover knowledgelover is offline Offline
Junior Poster in Training

Re: xml generation and parsing in java

 
0
  #5
Jul 23rd, 2009
thanks ,
sure I let you know , I am working on it
there's always something to learn
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 3
Reputation: varunnanda is an unknown quantity at this point 
Solved Threads: 0
varunnanda varunnanda is offline Offline
Newbie Poster

Re: xml generation and parsing in java

 
0
  #6
Jul 23rd, 2009
Hi Guys, I have just started working on the same topic, and interested in creating an applet which would create an XML file on submitting. The data should be stored in .xml file which I should be able to fetch on the same form, if required.

Please help...!!

Regards
Varun
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC