English 中文(简体)
J2ME, Xml Response from Http Postmeth
原标题:J2ME, Xml Response from Http Post Method
  • 时间:2011-05-04 08:20:51
  •  标签:
  • java-me

我是Response String from HTTP Postmeth

1)  <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="http://tempuri.org/">Open</string>

2)  <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="http://tempuri.org/">Close</string>

But I want only the Selected Or Result String from above lines

like from 1 response) I only want Open from 2 response) I only want Close

我如何能够做到这一点。

答复

最佳回答

如果您的手法支持JSR 172, 您可读到http://wiki.forum.nokia.com/index.php/JSR_172%3a_XML_Parsing_Example”rel=“nofollow”>。 否则,你将需要写上你自己的长篇大论,显示分裂/象征。 如果你能够保证数据总是以你所掌握的形式提供,那么它就很难获得数据。

问题回答

you can use kXML2 xml parsing api





相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...

热门标签