Getting the name of an XML field
Hi,
I am doing a GET request that returns an XML object, and I need to get various field names within the file.
Calling .text() returns the data contained by the field, is there a method that gets the name of the field?
For example, if I have:
<somefield>Some Data</somefield>
I want to output "somefield: Some Data"