Skip to content

Instantly share code, notes, and snippets.

@dlrust
Created March 22, 2011 21:36
Show Gist options
  • Save dlrust/882130 to your computer and use it in GitHub Desktop.
Save dlrust/882130 to your computer and use it in GitHub Desktop.
doc = Tag('epp', attrs={'xmlns': 'urn:ietf:paramxml:nepp-1.0'}).append(
Tag('response').append(
Tag('result', attrs={'code': '1000'}).append(
Tag('msg', text='Command completed successfully')
),
Tag('resData').append(
Tag('obj:creData', attrs={
'xmlnobj': 'urn:ietf:paramxml:nobj'
}).append(
Tag('obj:name', text='example')
)
),
Tag('trID').append(
Tag('clTRID', text='ABC-12345'),
Tag('svTRID', text='54321-XYZ'),
),
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment