2
 <content type="xhtml">

        <apxh:div>
            <apxh:p>xyz</apxh:p>
            <apxh:p>xyz</apxh:p>
            <apxh:p>xyz</apxh:p>
            <apxh:p>xyz</apxh:p>
            <apxh:p>xyz</apxh:p>

        </apxh:div>
    </content>

「xhtml」を次のように入力して取得できます。

       item.getChild(url,CONTENT).setStartElementListener(new StartElementListener() {

        @Override
        public void start(Attributes attributes) {
        str=attributes.getValue("type");


        }
    });
    item.getChild(url,CONTENT).setEndElementListener(new EndElementListener() {

        @Override
        public void end() {
            currentMessage.setType(str);

        }
    });

「:」で区切られている「apxh:div」を取得するにはどうすればよいですか?

ありがとうございました。

4

1 に答える 1

1

SOAP解析のために解析する必要があると思います。ur Xml のタグ パターンは、Soap 解析を使用してみてください...

于 2011-09-29T10:53:43.060 に答える