I am trying to parse the below xml file in
java using DOM.
First, I am getting the root element using
Then, I am trying to find out how many children for the root element using
I am getting as 3 for the above. But the root element is printing as "MessageBean"
and the "MessageBean" root element have only one child node "Request", then why it's coming as 3?
I am trying get the <form> attribute values (name="emp1" and value="10") and the actual valus (St1).
I need to get all the children of <Request> only with the tag <form> adn not the <
Unit>
Then I need to get the all the children of the <Unit> separatley.
Why the "childNode11111 ::#text" is coming as #text??
Please help on this. I don't uderstand how to process it. If someone explain how it works I can able to parse more complex xmls too.
output
>
Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT