Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. how to check element exists or not????

how to check element exists or not????

Scheduled Pinned Locked Moved XML / XSL
xmltutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sushant_Mathur
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • S Sushant_Mathur

      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

      D Offline
      D Offline
      Denevers
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups