Thank you for reading my post.
I have some question about parsing XML,
-does XSD and DTD has the same role?
-I know that if i want to pars a document like :
[CODE]
<Student-Names>
<name>ABC</name>
<name>BBC</name>
<name>CBC</name>
<name>ACB</name>
</Student-Names>
[/CODE]
I should have a code like:
[CODE]
Element docEle = dom.getDocumentElement();
NodeList nl = docEle.getElementsByTagName("name");
[/CODE]
But when my XML document is more sophisticated like :
[CODE]
<Student-Names>
<name>ABC</name>
<name>BBC</name>
<name>CBC</name>
<name>ACB</name>
</Student-Names>
<Teacher-Names>
<name>ABC</name>
<name>BBC</name>
<name>CBC</name>
<name>ACB</name>
</Teacher-Names>
.....
[/CODE]
what should i do?
Should i start reading the document elements one by one and test them to
see whether it is student/teacher/worker.... or there is some easier way
like case one that i can use to retrieve all students/teachers/workers..?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]