Hi Amit Bhatia
I could have changed the names, but in the current situation, I get the
xml files dynamically and there is no way I could know the tags beforehand
to do the change.
I subsequently did some work on this and it works. I did like to share
with you how it worked.
if i get an input like this:(where name is common to the last two string)
"DepartmentList.Department.Id , DepartmentList.Department.Name , DepartmentList.Department.Employee.Name"
If you loop thru recursively and find the nodelist using
Department.getElementByTagName("Name"); and then use nodelist.item(0), you
can retrieve the names unique to the department.
Thanks
AnishPrasad
Amit Bhatia <Amit.Bhatia@T...> wrote: Hi
I think that the Xml Design will have to be changed so that one of the tags
is changed to a different name.
I had a similar case where in i had two tags (View.Name and Table.Name). So
"Name" Tag was common to both.
Although these tags were under the View and the Table Tag Respectively when
i tried to validate this Xml through the Parser it gav me an error saying
that tags cannot have Same Name.
So what u Cud probably do is change ur Tags to emp-Name and Dept-Name Or
something like that!
Amit