on 09-20-2006 10:11 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.