Hi,

if you are bound to the SAX parser and you know the XML is valid, you can
just check for the magazine tag in the startElement method and stop the
parsing if found with positive result and check for the category tag in the
endElement method and stop the parsing if found with negative result.

Best regards,
Filip Havlicek

2011/7/14 vani reddy <[email protected]>

> Hi Filip,
> I am very much comfortable with parsing xml..I want to check if the
> magazine tag is there (ie if it is a subtag of the first category tag)...
>
>
> On Thu, Jul 14, 2011 at 1:15 PM, Filip Havlicek 
> <[email protected]>wrote:
>
>> Hello,
>>
>> what is really your goal? To check if the magazine tag is there (ie if it
>> is a subtag of the first category tag) or to actually parse the XML?
>>
>> Best regards,
>> Filip Havlicek
>>
>> 2011/7/14 vani reddy <[email protected]>
>>
>>>  Hi ,
>>>
>>> How to check if a particular tag exists under a sub tag in the xml using
>>> sax parsing in android for the below link.
>>> http://magazine.ateemo.com/magazines/by_publisher/2
>>> In the xml response, there is magazine tag under first category tag ,
>>> and the other category tags  dont have magazine tag at all.
>>>
>>> --
>>> Regards,
>>> Vani Reddy
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>
>
> --
> Regards,
> Vani Reddy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to