<?xml version="1.0" encoding="UTF-8"?> <tns:serverpush xmlns:tns="http://www.bluedream.com/bean/envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bluedream.com/bean/envelope envelope.xsd "> <command> <id></id> <type></type> <flag></flag> <time></time> <from></from> </command> <data> <text> <?xml version="1.0" encoding="UTF-8"?> <tns:warninginfo xmlns:tns="http://www.bluedream.com/bean/warning" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bluedream.com/bean/warning warning.xsd "> <warningname></warningname> <warninglevel></warninglevel> <warningtype></warningtype> <warningstate></warningstate> <memo></memo> <bumen></bumen> </tns:warninginfo> </text> </data> </tns:serverpush> 这样一个XML文件,我想获得tns:warninginfo的值,也就是warningino,怎么做?