943,734 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 483
  • Java RSS
Jul 22nd, 2009
0

xml generation and parsing in java

Expand 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
knowledgelover is offline Offline
86 posts
since Nov 2007
Jul 22nd, 2009
0

Re: xml generation and parsing in java

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.
Reputation Points: 35
Solved Threads: 4
Light Poster
axeeffect2002 is offline Offline
33 posts
since Jul 2009
Jul 23rd, 2009
0

Re: xml generation and parsing in java

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
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
knowledgelover is offline Offline
86 posts
since Nov 2007
Jul 23rd, 2009
0

Re: xml generation and parsing in java

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.
Reputation Points: 35
Solved Threads: 4
Light Poster
axeeffect2002 is offline Offline
33 posts
since Jul 2009
Jul 23rd, 2009
0

Re: xml generation and parsing in java

thanks ,
sure I let you know , I am working on it
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
knowledgelover is offline Offline
86 posts
since Nov 2007
Jul 23rd, 2009
0

Re: xml generation and parsing in java

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
varunnanda is offline Offline
4 posts
since Jul 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: pricing example project
Next Thread in Java Forum Timeline: Which API





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC