Link to home
Start Free TrialLog in
Avatar of BrianMc1958
BrianMc1958

asked on

Newbie: How to create XML in Java?

Dear Experts,

How do you create XML from within Java, other than by hand-coding it?  Assuming you have:

FieldA, with value "A",
and
FieldB, with value "123",

is there some AUTOMATED technique for generating:

<FieldA>A</FieldA><FieldB>123</FieldB>

Could you point me towards documentation?

Thanks, Experts!

--BrianMc1958
Avatar of petmagdy
petmagdy
Flag of Canada image

Avatar of kiranhk
kiranhk

this has got the sample code to generate the xml from a java class

http://www.codegeneration.net/tiki-read_article.php?articleId=65
follow step by step procedure as suggested in above links
ASKER CERTIFIED SOLUTION
Avatar of Naeemg
Naeemg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianMc1958

ASKER

You Experts are incredible.  Thank you to everyone, especially to Naeemg!  It's just what I was looking for.

--BrianMc1958