Ok. Thank u very much for ur reply. In SAX Parser it will parse line by line. How can we get only the particular data alone.
Ex:- In a XML file there are 5 tags. SAX is parsing all the 5 tags. I need only the 1,3 & 4 tag value. How to retrieve that?. I did not need 2 & 5th value. can you pls give some idea for this?.. On Mon, Feb 1, 2010 at 10:16 AM, Kumar Bibek <coomar....@gmail.com> wrote: > SAX parsing is done line by line, so there is no way that you can pick > up a specific tag if you are SAX parsing. > > Kumar Bibek > > On Feb 1, 8:30 am, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote: > > Hi, > > > > How to parse only the particular tag using SAX Parser?.. > > > > *sample.xml* > > * > > * > > <main type=""> > > <sub> > > <conname>George</conname> > > <conphonenumber>840123456</conphonenumber> > > <extra>US</extra> > > </sub> > > </main> > > > > when i try to parse the above sample.xml i'm getting all the > values(conname, > > canphonenumber & extra). > > But i need only conname & conphonenumber > > > > -- > > Thanks & Regards > > Sasikumar.S > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Thanks & Regards Sasikumar.S -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en