Hi all,

Can someone tell me how can I have direct access to XML element/attribute?

sample:
Code:
<project name="myproject"  attribute "myattribute">
  <myelement name="elementname" /> 
  <nestedelement x="1" y="2">
    <row>first row</row> 
  </nestedelement >
</project>
Task 1: I want to know the attribute "name" of element "project"

Task 2: I want to know the attribute "name" of element "myelement"

Task 3: I want to know the element string of element "row"

All I got from sites and tutorials is how to parse the XML file and list alla elements/attributes, but I don't need a parsing, I need to go directly to an element and get its attributes.

How?

Thank you!