How can i deal with xml namespace in python? -
i'm not going parse xml file want move in python. (i.e etree) know basic of etree want know xml namespace. i've got 3 namespaces in code. here code want transfer.
<?xml version="1.0" encoding="utf-8" standalone="yes"?><ns1:g2smessage xmlns:ns1="http://www.gamingstandards.com/g2s/schemas/v1.0.3"><ns1:g2sbody ns1:datetimesent="2014-08-14t15:30:48.692+09:00" ns1:egmid="testappegmid" ns1:hostid="1"><ns1:communications ns1:deviceid="0" ns1:sessionid="1001" ns1:sessiontype="g2s_request" ns1:timetolive="100" ns1:commandid="1001" ns1:datetime="2014-08-14t06:30:48.696z"><ns1:keepalive/></ns1:communications></ns1:g2sbody></ns1:g2smessage>testappegmid1
does have idea?
Comments
Post a Comment