sodakotahusker
Programmer
- Mar 15, 2001
- 601
I have done this on a few occasions and it is always a struggle. I just keep trying stuff until I get what I need but there has to be a technique that I can always apply to find things.
So what is the best way to find attributes for an element which might have 1 or might have multiple occurrences
For example <root><parentinfo><father attrib1="X" attrib2 = "y" /></parentinfo>
<children><child attrib1="x" attrib2 = "y" />
<child attrib1="a" attrib2 = "x" /><child attrib1="d" attrib2 = "e" /></children></root>
So what is the best way to find attributes for an element which might have 1 or might have multiple occurrences
For example <root><parentinfo><father attrib1="X" attrib2 = "y" /></parentinfo>
<children><child attrib1="x" attrib2 = "y" />
<child attrib1="a" attrib2 = "x" /><child attrib1="d" attrib2 = "e" /></children></root>