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. Another XPath Question

Another XPath Question

Scheduled Pinned Locked Moved XML / XSL
questionxml
4 Posts 4 Posters 2 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.
  • J Offline
    J Offline
    James McCutcheon
    wrote on last edited by
    #1

    Say i had this ... data first second and I want this ... data first What would be the xpath statement ? something to do with C[1], but I am stumped after that - james

    C 1 Reply Last reply
    0
    • J James McCutcheon

      Say i had this ... data first second and I want this ... data first What would be the xpath statement ? something to do with C[1], but I am stumped after that - james

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      something like 'ancestor-or-self::a/b/c[0]/d'. I can't remember, is it 0 or 1 based, the indexing ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
      C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
      It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003

      M M 2 Replies Last reply
      0
      • C Christian Graus

        something like 'ancestor-or-self::a/b/c[0]/d'. I can't remember, is it 0 or 1 based, the indexing ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
        C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
        It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003

        M Offline
        M Offline
        Michael A Barnhart
        wrote on last edited by
        #3

        There is also a position test that can be used. Ref: http://www.vbxml.com/xsl/XPathRef.asp[^] "I will find a new sig someday."

        1 Reply Last reply
        0
        • C Christian Graus

          something like 'ancestor-or-self::a/b/c[0]/d'. I can't remember, is it 0 or 1 based, the indexing ? Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
          C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
          It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          Christian Graus wrote: I can't remember, is it 0 or 1 based, the indexing ? 1 based --Mike-- The Internet is a place where absolutely nothing happens.   -- Strong Bad 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

          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