I've got an xml schema which specifies a default value for an optional field...
<xs:element name="expiry" type="xs:positiveInteger" default="86400"/>
I'm using lxml to parse the incoming xml...
root = lxml.etree.XML(xml)
When I go looking for the optional element, and it's not there, I get a 'None' result...
expiry = root.findtext('expiry')
How would I get the expiry value to default to the schema's default (86400)?