how to check element exists or not????
-
i am having a XML file and i have to apply differenr stuff on two different tags means if tag1 exists then add and if tag2 exist then I have tried using but its not working,plz tell me other way to do this. Sushant Mathur Ocwen Financial Sol. Pvt. Ltd, Bangalore, INDIA. -- modified at 8:06 Wednesday 23rd November, 2005
-
i am having a XML file and i have to apply differenr stuff on two different tags means if tag1 exists then add and if tag2 exist then I have tried using but its not working,plz tell me other way to do this. Sushant Mathur Ocwen Financial Sol. Pvt. Ltd, Bangalore, INDIA. -- modified at 8:06 Wednesday 23rd November, 2005
this should work. Maybe the problem is somewhere else (not test the right node, not the right namespace, etc..) alternativaly, you can replace this with a matching structure ... ... xsl:apply-templates ... ... </xsl:template> <xsl:template match="tag1"> <tag name="1"></tag> </xsl:template> <xsl:template match="tag2"> <tag name="2"></tag> </xsl:template> Denevers -- modified at 15:42 Saturday 10th December, 2005