as3如何读取带命名空间的xml?
请问用as3如何读取code这个字段的值?
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:loginResponse xmlns:ns2="http://service.betserver.online.i3ring.com/">
<aaaa>
<code>10103</code>
<msg>Member Not Found</msg>
</aaaa>
</ns2:loginResponse>
</soap:Body>
</soap:Envelope>
[解决办法]
试试这样:
xml.children()[0].childern()[0].childern()[0]....