Re: [xmlpull-user] CDSECT event not recieved
Aleksander Slominski <[email protected]> Fri, 09 May 2003 13:30:16 -0500
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Haustein wrote:
>Hi Shabbar,
>
>you will only receive a CDSECT event if you use the nextToken() method.
>next() will conveniently collect all types of text, skipping comments, and
>generate a single TEXT event: The distinction of CDSECT and TEXT is irrelevant
>for most applications.
>
hi,
it looks liek it si even more interesting bug - in your sample you do
not have really CDSECT at all
when i changed
"<frame>![CDATA[]]</frame>" +
to
"<frame><![CDATA[]]></frame>" +
i have got: CDSECT event with XPP3.
alek
ps. here is outpu:
Parsing simple sample XML
Start document
Recieved a start tag event
Recieved a start tag event
Recieved a start tag event
Recieved a start tag event
Recieved a start tag event
Recieved a CDSECT event
Recieved a End tag event
Recieved a End tag event
Recieved a End tag event
Recieved a End tag event
Recieved a End tag event
>
>Best,
>Stefan
>
> wrote:
>
>
>>Hi,
>>
>>I am using XmlPull API
>>
>>version- xpp3-1.1.2a
>>
>>The Xml which I need to parse is having a CTAG
>>
>>Example Xml:
>>
>> "<TdmLineModel index=\"8203\">" +
>> "<getStm1eModeResponse>" +
>> "<getStm1eModeArray>" +
>> "<getStm1eModeElement>" +
>> "<frame>![CDATA[xyz]]</frame>" +
>> "</getStm1eModeElement>" +
>> "</getStm1eModeArray>" +
>> "</getStm1eModeResponse>" +
>> "</TdmLineModel>";
>>
>>
>>But the problem is for the CDATA section I am not recieving a
>>XmlPullParser.CDSECT event.
>>I am attaching the test code for your reference.
>>
>>Please help me out.
>>
>>
>>Thanks
>>Shabbar
>>
>>---------------------------------------------------------
>>Shabbar Husain
>>CISCO CTM (Infosys Team)
>>(Direct) 91-80-5010548
>>(Extension) 91-80-8520261 extn 2548
>>---------------------------------------------------------
>>
>>
>>
>>
>>
>
>
>
>
--
"Mr. Pauli, we in the back are all agreed that your theory is crazy.
What divides us is whether it is crazy enough to be true." Niels H. D. Bohr
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/2U_rlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/