Pull Parser Example

120 views
Skip to first unread message

Chris Neels

unread,
Apr 7, 2010, 6:36:47 PM4/7/10
to UBC CPSC 210

yabo

unread,
Apr 7, 2010, 11:23:40 PM4/7/10
to UBC CPSC 210
is that true when we use XmlPullParser then we don't need to create
another datahandler class to read and handle xml files?

On 4月7日, 下午3时36分, Chris Neels <chrisne...@live.ca> wrote:
> http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html#g...()

Meghan Allen

unread,
Apr 7, 2010, 11:27:25 PM4/7/10
to ubc-cp...@googlegroups.com
Hi Leo,

Yes, that's correct.

meghan

2010/4/7 yabo <liya...@hotmail.com>:

李亚博

unread,
Apr 7, 2010, 11:41:26 PM4/7/10
to ubc-cp...@googlegroups.com
Hi Meghan,
 
what does event type means in xmlpullparser? and what does the "token" (NextToken()) exactly mean here? I just cannot map the components in xml files to the handler methods the xmlpullparser provides. could you give me some examples to declarify what these methods correspond to using the xml file you sent to me last time?
 
Leo

 
> From: meghan...@gmail.com
> Date: Wed, 7 Apr 2010 20:27:25 -0700
> Subject: Re: Pull Parser Example
> To: ubc-cp...@googlegroups.com
>
> Hi Leo,
>
> Yes, that's correct.
>
> meghan
>
> 2010/4/7 yabo <liya...@hotmail.com>:
> > is that true when we use XmlPullParser then we don't need to create
> > another datahandler class to read and handle xml files?
> >
> > On 4锟斤拷7锟斤拷, 锟斤拷锟斤拷3时36锟斤拷, Chris Neels <chrisne...@live.ca> wrote:
> >> http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html#g...()
> >
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.


锟斤拷锟斤拷锟斤拷应锟角诧拷色锟斤拷,锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷-锟斤拷应,锟斤拷锟斤拷图片每锟届换哦! 锟斤拷锟斤拷锟斤拷锟矫o拷

yabo

unread,
Apr 8, 2010, 12:09:34 AM4/8/10
to UBC CPSC 210
what does setInput() do in a xmlpullparser?

On 4月7日, 下午8时41分, 李亚博 <liyabo...@hotmail.com> wrote:
> Hi Meghan,
>
> what does event type means in xmlpullparser? and what does the "token" (NextToken()) exactly mean here? I just cannot map the components in xml files to the handler methods the xmlpullparser provides. could you give me some examples to declarify what these methods correspond to using the xml file you sent to me last time?
>
> Leo
>
>
>
>
>
> > From: meghan.al...@gmail.com
> > Date: Wed, 7 Apr 2010 20:27:25 -0700
> > Subject: Re: Pull Parser Example
> > To: ubc-cp...@googlegroups.com
>
> > Hi Leo,
>
> > Yes, that's correct.
>
> > meghan
>

> > 2010/4/7 yabo <liyabo...@hotmail.com>:


> > > is that true when we use XmlPullParser then we don't need to create
> > > another datahandler class to read and handle xml files?
>

> > > On 4 7 , 3ʱ36 , Chris Neels <chrisne...@live.ca> wrote:
> > >>http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html#g...()
>
> > --
> > To unsubscribe, reply using "remove me" as the subject.
>

> _________________________________________________________________
> ֪ Σ Ӧ 㣡http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&form...- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Meghan Allen

unread,
Apr 8, 2010, 12:11:07 AM4/8/10
to ubc-cp...@googlegroups.com
Hi Leo,

For the setInput method and the event type, have you tried looking at
the APIs and searching for examples on the web?

meghan

yabo

unread,
Apr 8, 2010, 12:24:23 AM4/8/10
to UBC CPSC 210
Hi Meghan,

Yes, but the examples are really not clear since they don't have clear
xml file examples. and there is one that has an xml file as an
example, but I don't think that' correct.
---<response>
---<status><name></name></status>
---<gravity><g1></g1></gravity>
---</response>
as an example and the code says "xpp.setInput( new
StringReader("<response><status><name></name></status><gravity><g1></
g1></gravity></response>" ) );"

do you have a real good example? if you have can you send it to me?

Leo

> >> ֪ Σ Ӧ 㣡http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5&form...隐藏被引用文字 -
>
> >> - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

Reply all
Reply to author
Forward
0 new messages