Hello all,<br><br>I appologize for positing such a trivial question, but I am having trouble decrypting the python XML documentation.<br><br>I am parsing a relatively simple strings, each of which consist of a single xml tag.&nbsp; For example:
<br><br>&lt;user first=&quot;jean&quot; last=&quot;valjean&quot; dob=&quot;17290101&quot; children=&quot;1&quot; hobby=&quot;stealing bread&quot; /&gt;<br><br>What is the best way to determine only the user's hobby?&nbsp; pulldom, sax, something else?&nbsp; is there guidance on using xml tools for single tags?&nbsp; This is what I have so far
<br><br>&nbsp; from xml.dom.pulldom import *<br>&nbsp; a = parseString('&lt;user first=&quot;jean&quot; last=&quot;valjean&quot; dob=&quot;17290101&quot; children=&quot;1&quot; hobby=&quot;stealing bread&quot; /&gt;')<br><br>I've tried getEvent() and expandNode(), but am not getting any closer to accessing the content in the string.&nbsp; What are your suggestions on the best way to retrieve the hobby?&nbsp; Thank you very much any help.
<br><br>Hope you all have a happy holiday,<br>Mike Gilbert<br><br>