今日の私の質問はjava
、-libraryを使用してksoap2
要素ごとに解析する際に、密接な相対的および/または同等性があるかどうかについて知りたいということです。
objective-c
たとえば、次のようになります。
public void didEndElement(args....){
if occurring element is thisElement
//do something with the value in the element
}
public void didStartElement(args....){
if occurring element is thisElement
//do something with the value in the element
}
にいる間java
SoapObject foo = (SoapObject)bar.getProperty(enum);
aString = foo.getProperty(enum);
aNotherString = foo.getProperty(anotherEnum);
つまり、基本的に、私たちがやりたいのは、
即興java
構文:
if(currentElement == "myElement")
aVar = valueInElement;
// or
a[1] = valueInElement;
私はこれを求めるのは大変かもしれないことを知っていますが、可能であれば、これに関する情報をどこで入手できるかについての指針やヒントがあります。