iphone - how to find whether the element exists in TBXML? -


In my XML , I know whether it exists or not TBXML

Enter the code. Check if the element does not exist. As

  TBX element * root element = [xml rootXMLElement]; TBXMemage * yourTag = [TBXML Child Element Nominated: @ "Your Tagname" Parent Element: Root Element]; If (yourTag) NSLog (@ "This element exists"); Other NSLog (@ "This element does not exist");    

Comments