xml - I'm tring to access a web service from Android which has a layout similiar to the codes blocks below: -


for moment i'm tring ksoap2 use whatever standard method in industry. can access 'simple sample' (below) , write values such 'frank' log using ksoap2 no problem, complex sample (below) has me stumped. i've seen lots of samples showing call 'single level' xml none traverse down 2 or more levels complex sample.

any help?

---simple sample ---------------------------------------

<category  xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org        /2001/xmlschema-instance" xmlns="http://accumobilews.org/">   <categoryid>99</categoryid>   <name>frank</name>   <description>prison break</description>   </category> <category> 

-------complex sample------------------------------------------

<supercategory xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://accumobilews.org/">   <categories>     <category>       <categoryid>99</categoryid>       <name>frank</name>       <description>prison break</description>     </category>     <category>       <categoryid>101</categoryid>       <name>jim</name>       <description>breakig bad</description>     </category>   </categories> </supercategory> 

the problem geting 2nd level i.e. array of 'category'

i'm not aware of ksoap2, if you're going handling lot of xml may want check out simple framework. i've used extensively, , it's ability turn xml java objects makes things way easier have many objects being handled.

if you're interested, can check out this well-written tutorial setting up.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -