Re: [xmlpull-user] CDSECT event not recieved
Stefan Haustein <[email protected]> Tue, 13 May 2003 18:47:42 +0200
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Organization | Univ. Dortmund FB 4 LS 8 |
| Message-ID | <[email protected]> |
Shabbar, like Alek already mentioned: >>> "<frame>![CDATA[xyz]]</frame>" + this is not a valid CDATA section at all (see XML spec...) Best, Stefan Shabbar wrote: > Hi, > > I am using nextToken method only ,still not getting the CDSECT event with > this version(xpp3-1.1.2a) > I am attaching the code once again for your refernce.It might thet there is > some problem with the jar I am using. > > Attaching jar file also. > > The output what I am getting is : > > > Parsing simple sample XML > 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 Text 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 > > > Thanks > Shabbar > > > -----Original Message----- > From: Aleksander Slominski [mailto:[email protected]] > Sent: Saturday, May 10, 2003 12:00 AM > To: [email protected] > Cc: [email protected] > Subject: Re: [xmlpull-user] CDSECT event not recieved > > > 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 > > > > > 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/ > > > > > 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/ -- Stefan Haustein Univ. Dortmund, FB 4, LS 8 tel: +49 231 755 2499 Baroper Str. 301 fax: +49 231 755 5105 D-44221 Dortmund (Germany) www-ai.cs.uni-dortmund.de ------------------------ Yahoo! Groups Sponsor ---------------------~--> Rent DVDs from home. Over 14,500 titles. Free Shipping & No Late Fees. Try Netflix for FREE! http://us.click.yahoo.com/BVVfoB/hP.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/