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. Web Development
  3. ASP.NET
  4. XML help !

XML help !

Scheduled Pinned Locked Moved ASP.NET
helpquestionregexxml
3 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.
  • R Offline
    R Offline
    Ridge Howison
    wrote on last edited by
    #1

    Hello, Thank you for reading. Here is my situation. I have a web service that takes as input user name and password, that returns an xml document..if all credentials match the document contains info about the user something like this 123456 Tester Abc Tester Abc else it has Invalid Login when I get the xml document in my application, how can I check if is present in the xml document? Also I want to get the value of the error as string. Please Help RH

    S 1 Reply Last reply
    0
    • R Ridge Howison

      Hello, Thank you for reading. Here is my situation. I have a web service that takes as input user name and password, that returns an xml document..if all credentials match the document contains info about the user something like this 123456 Tester Abc Tester Abc else it has Invalid Login when I get the xml document in my application, how can I check if is present in the xml document? Also I want to get the value of the error as string. Please Help RH

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      open the xml file using XMLDocument something like this.. XMLDocument doc = new XMLDocument(); doc.Load(xmlfilenamewithpath); XMLNode node = doc.DcoumentElement.SelectSingleNode("Root/Error"); string err; if(node != null) err = node.InnerText;

      -----

      R 1 Reply Last reply
      0
      • S SABhatti

        open the xml file using XMLDocument something like this.. XMLDocument doc = new XMLDocument(); doc.Load(xmlfilenamewithpath); XMLNode node = doc.DcoumentElement.SelectSingleNode("Root/Error"); string err; if(node != null) err = node.InnerText;

        -----

        R Offline
        R Offline
        Ridge Howison
        wrote on last edited by
        #3

        thank you !!!!

        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