I know how to parse XML documents with the DOM when they are in the form:
<tagname> valueIWant </tagname>
However, the element I'm trying to get is instead in the form
<photo farm="9" id="8147664661" isfamily="0" isfriend="0" ispublic="1" owner=" 8437609@N04 " secret="4902a217af" server="8192" title="Rainbow"/>
I usually use cel.getTextContent() to return a value, but in this case it does not work. And cel.getAttributes() , which I thought would work ...
Ideally, I just need to get the numerical values โโof id and owner. However, if someone can help with how to get all this, then I can handle removing parts that I don't need later.
source share