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. For example:
<br><br><user first="jean" last="valjean" dob="17290101" children="1" hobby="stealing bread" /><br><br>What is the best way to determine only the user's hobby? pulldom, sax, something else? is there guidance on using xml tools for single tags? This is what I have so far
<br><br> from xml.dom.pulldom import *<br> a = parseString('<user first="jean" last="valjean" dob="17290101" children="1" hobby="stealing bread" />')<br><br>I've tried getEvent() and expandNode(), but am not getting any closer to accessing the content in the string. What are your suggestions on the best way to retrieve the hobby? Thank you very much any help.
<br><br>Hope you all have a happy holiday,<br>Mike Gilbert<br><br>