XML and DOM
I have something like this:
<settings>
<namespace name="foo">
<type name="test">
<point name="position" x="0" y="0" />
</type>
<namespace>
</settings>
And I use DOM like this to parse it:
NodeList elements = getElementList(rootElement,"type");
for (int i = 0; i < namespaces.getLength(); i++)
{
Element element = (Element) elements.item(i);
}
My question is is there a way for me to know which elements surrond the one I'm curently looking at? That is when I'm now parsing tag "type" can I get the information that its at: settings.namespace?
/WildChild
Message was edited by:
-WildChild-

