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. C#
  4. How can I read this xml?

How can I read this xml?

Scheduled Pinned Locked Moved C#
questioncomxmljson
8 Posts 4 Posters 1 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
    Mogaambo
    wrote on last edited by
    #1

    <fres:feinsearchresponse xmlns:fres="http://api.feinsearch.com/apiresponse"> - fres:searchresults - fres:searchresult <EIN>320095501</EIN> </fres:searchresult> </fres:searchresults> </fres:feinsearchresponse>

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    D 0 2 Replies Last reply
    0
    • M Mogaambo

      <fres:feinsearchresponse xmlns:fres="http://api.feinsearch.com/apiresponse"> - fres:searchresults - fres:searchresult <EIN>320095501</EIN> </fres:searchresult> </fres:searchresults> </fres:feinsearchresponse>

      “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      Using eyes and brain. I think you would like to rephrase your question.

      जय हिंद Rajdeep.Net[^] is NOT from India. Proof.[^]

      M P 2 Replies Last reply
      0
      • M Mogaambo

        <fres:feinsearchresponse xmlns:fres="http://api.feinsearch.com/apiresponse"> - fres:searchresults - fres:searchresult <EIN>320095501</EIN> </fres:searchresult> </fres:searchresults> </fres:feinsearchresponse>

        “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

        0 Offline
        0 Offline
        0x3c0
        wrote on last edited by
        #3

        System.Xml.Linq.XDocument System.Xml.XmlDocument Your question is immensely vague. It could cover any subject. Please, be precise

        Between the idea And the reality Between the motion And the act Falls the Shadow

        1 Reply Last reply
        0
        • D dan sh

          Using eyes and brain. I think you would like to rephrase your question.

          जय हिंद Rajdeep.Net[^] is NOT from India. Proof.[^]

          M Offline
          M Offline
          Mogaambo
          wrote on last edited by
          #4

          I mean how can i parse it.,

          “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

          D 1 Reply Last reply
          0
          • M Mogaambo

            I mean how can i parse it.,

            “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

            D Offline
            D Offline
            dan sh
            wrote on last edited by
            #5

            One simple Google search returned these[^] many results. Are none of them fitting your needs?

            जय हिंद

            M 1 Reply Last reply
            0
            • D dan sh

              One simple Google search returned these[^] many results. Are none of them fitting your needs?

              जय हिंद

              M Offline
              M Offline
              Mogaambo
              wrote on last edited by
              #6

              Actually it is output from a webservice but now i want to parse it. how do i ? is this will work XmlTextReader reader = new XmlTextReader("C:\\links.xml"); while (reader.Read()) { XmlNodeType nodeType = reader.NodeType; switch (nodeType) { case XmlNodeType.Element: Console.WriteLine("Element name is {0}", reader.Name); if (reader.HasAttributes) { for (int i = 0; i < reader.AttributeCount; i++) { reader.MoveToAttribute(i); Console.WriteLine("Attribute is {0} with Value {1}: ", reader.Name, reader.Value); } } break; case XmlNodeType.Text: Console.WriteLine("Value is: " + reader.Value); break; } }

              “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

              P 1 Reply Last reply
              0
              • M Mogaambo

                Actually it is output from a webservice but now i want to parse it. how do i ? is this will work XmlTextReader reader = new XmlTextReader("C:\\links.xml"); while (reader.Read()) { XmlNodeType nodeType = reader.NodeType; switch (nodeType) { case XmlNodeType.Element: Console.WriteLine("Element name is {0}", reader.Name); if (reader.HasAttributes) { for (int i = 0; i < reader.AttributeCount; i++) { reader.MoveToAttribute(i); Console.WriteLine("Attribute is {0} with Value {1}: ", reader.Name, reader.Value); } } break; case XmlNodeType.Text: Console.WriteLine("Value is: " + reader.Value); break; } }

                “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

                P Offline
                P Offline
                PandemoniumPasha
                wrote on last edited by
                #7

                Mogaambo wrote:

                is this will work

                you'll never know until you've tried it!

                regards :)

                1 Reply Last reply
                0
                • D dan sh

                  Using eyes and brain. I think you would like to rephrase your question.

                  जय हिंद Rajdeep.Net[^] is NOT from India. Proof.[^]

                  P Offline
                  P Offline
                  PandemoniumPasha
                  wrote on last edited by
                  #8

                  d@nish wrote:

                  Using eyes and brain.

                  :laugh: :laugh: mogaambo khush nahin huwa ;P

                  regards :)

                  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