Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old March 1st, 2011, 08:31 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2011
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Question XML parser Issues for share point xml format

Hello,

I am developing app where I need to parse share point data from server which I get in similar form of xml files as below:

<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" mlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns="Error">

<rs:data ItemCount="5">

<z:row ows_Attachments="0" ows_LinkTitle="Start the New Year with a Free Health Check for LCA Prospects and Clients" ows_Modified="2011-02-11 13:26:29"/>

<z:row ows_Attachments="0" ows_LinkTitle="Panduit Advisory Services Officially Launches at Gartner Data Expo December 6-9, 2010" ows_Modified="2011-02-01 09:21:07"/>

</rs:data>
</listitems>


This is just brief form of xml format which i pasted here .in actual it is very large xml files with many URL , images embedded in it.

I tried SAX parser but it did not work.
Today I am looking to use ksoap2 parser but I am not sure if it will work.

Can anyone of you please help me which parser should i use for this type of xml format.
Please respond soon it is very critical.i got blocked with this...


Thank you !
Amy

amy97 is offline  
Reply With Quote
sponsored links
Old March 1st, 2011, 07:35 PM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2011
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anyone of you pls reply if you have used something like this..plz

Thanks,
Amy

Quote:
Originally Posted by amy97 View Post
Hello,

I am developing app where I need to parse share point data from server which I get in similar form of xml files as below:

<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" mlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns="Error">

<rs:data ItemCount="5">

<z:row ows_Attachments="0" ows_LinkTitle="Start the New Year with a Free Health Check for LCA Prospects and Clients" ows_Modified="2011-02-11 13:26:29"/>

<z:row ows_Attachments="0" ows_LinkTitle="Panduit Advisory Services Officially Launches at Gartner Data Expo December 6-9, 2010" ows_Modified="2011-02-01 09:21:07"/>

</rs:data>
</listitems>


This is just brief form of xml format which i pasted here .in actual it is very large xml files with many URL , images embedded in it.

I tried SAX parser but it did not work.
Today I am looking to use ksoap2 parser but I am not sure if it will work.

Can anyone of you please help me which parser should i use for this type of xml format.
Please respond soon it is very critical.i got blocked with this...


Thank you !
Amy
amy97 is offline  
Reply With Quote
Old March 2nd, 2011, 04:17 AM   #3 (permalink)
Member
 
Join Date: Dec 2010
Location: Aarhus, Denmark
Posts: 136
 
Device(s): SE Xperia X10
Carrier: Not Provided

Thanks: 2
Thanked 22 Times in 22 Posts
Default

Could you give us a clue to why SAX did not work? Did it crash or was it just too slow?

I used the XMLPullParser in several occasions, and it worked fine for my apps. So you could try that...
JamTheMan is offline  
Reply With Quote
Old March 2nd, 2011, 08:21 AM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2011
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Because of HTML tag embedded in it .It shows exception that in attribute "<" start tag is invalid.

xml is having attribute as

ows_Body="<div class=ExternalClassCD7AB68E07A348F99BFACBA3A301F7D A> "

I tried XML Pull parser it shows same exception.

Did you use for such share point xml parsing which has HTML tag embedded in it.


Thanks,
Amy

Quote:
Originally Posted by JamTheMan View Post
Could you give us a clue to why SAX did not work? Did it crash or was it just too slow?

I used the XMLPullParser in several occasions, and it worked fine for my apps. So you could try that...
amy97 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:43 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.