cancel
Showing results for 
Search instead for 
Did you mean: 

XML Document initialization.

Former Member
0 Kudos

Hi,

I need to parse an XML document that I read Externally.

Presently for testing I need to simulate this by hardcoding the xml from Web Dynpro :

eg: Document xmlSimulate =

"

<?xml version="1.0" encoding="iso-8859-1" ?>

- <DecisionTree>

+<Header>

+<Body>

</DecisionTree>

"

Please let me know how I can do this ???

Awaiting your kind responses.

Regards,

Mahesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

to parse a xml document in java you can either use SAX or DOM. If you want to generate java objects by xml JAXB is a good choice. You can find very much tutorials on the web (try google).

Regards

Sebastian