Hi Experts.
I have a problem with XML parsing.
Please Help!
[code=xml]
<?xml version="1.0" encoding="UTF-8"?>
<XML>
<Debasis>some_v alue</Debasis>
<DmjPro>some_an other_value</DmjPro>
<!--Some Comment-->
<!--Some another comment-->
<Saswati title="Mahapatr a" disignation="pr oject_member"></Saswati>
<DebMou ID="my_id">some _value_saswati</DebMou>
</XML>
[/code]
And my Java Code is:
[code=java]
Element el=doc.getEleme ntById("my_id") ;
System.out.prin tln("DebMou_Nod e_value: "+el);
[/code]
Now the second line prints Null.
Why?
Please help.
Is there any wrong format with XML?
Kind regards,
Dmjpro.
I have a problem with XML parsing.
Please Help!
[code=xml]
<?xml version="1.0" encoding="UTF-8"?>
<XML>
<Debasis>some_v alue</Debasis>
<DmjPro>some_an other_value</DmjPro>
<!--Some Comment-->
<!--Some another comment-->
<Saswati title="Mahapatr a" disignation="pr oject_member"></Saswati>
<DebMou ID="my_id">some _value_saswati</DebMou>
</XML>
[/code]
And my Java Code is:
[code=java]
Element el=doc.getEleme ntById("my_id") ;
System.out.prin tln("DebMou_Nod e_value: "+el);
[/code]
Now the second line prints Null.
Why?
Please help.
Is there any wrong format with XML?
Kind regards,
Dmjpro.
Comment