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. Can't get path to work in SelectSingleNode()

Can't get path to work in SelectSingleNode()

Scheduled Pinned Locked Moved XML / XSL
xmlhelpquestion
1 Posts 1 Posters 9 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.
  • M Offline
    M Offline
    mo1492
    wrote on last edited by
    #1

    Hello, Sorry, this is a double post. I did not realize that this group was here before posting in VB group. I'm having trouble figuring out the correct search path to find the Appointment: where CompanyKey='Mr. Key' and Date='11/11/2018 12:00:00 AM'. I've tried numerous formats in sFmt2 and can't find the magic combination. sFmt1 works to find the first occurance of 'Mr. Key'. I've only listed a couple of tries. Can someone help? Thank you ' sFmt works; it retrieves the first occurance of "Mr. Key" Dim sFmt As String = "/MyCalendar/Appointments/Appointment[@CompanyKey='Mr. Key']" ' These do not work. Dim sFmt2 as string = "/MyCalendar/Appointments/Appointment[@CompanyKey='Mr. Key' and Date='11/11/2018 12:00 AM']" ' sFmt2 = "/MyCalendar/Appointments/Appointment[@CompanyKey='Mr. Key'][Date='11/11/2018 12:00 AM']" This is the xml file. - - - 11/11/2018 12:00:00 AM Add Appointment through XmlSerializer - 11/01/2018 12:00 AM Add Appointment through XmlDocument

    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