日期:2014-05-20  浏览次数:20647 次

Document对象带有命名空间,不知道咋取值了
System.out.println(doc.asXML());
打印显示:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header></SOAP-ENV:Header>
<SOAP-ENV:Body>
    <ns:Change xmlns:ns="http://1111111111"> 
        <ns:ErrorCode>0</ns:ErrorCode>
        <ns:ErrorDesc>Success</ns:ErrorDesc>
        .............
    </ns:Change>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
请问怎么取body标签下的ErrorCode及其他值

------解决方案--------------------
http://blog.csdn.net/jack0511/article/details/5224001