Reading XML

This is a discussion on Reading XML within the C# Programming forums, part of the General Programming Boards category; What is the easiest way to parse a XML file in? It need to use free code. A short sample ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    41

    Reading XML

    What is the easiest way to parse a XML file in? It need to use free code. A short sample maybe?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    There are several, http://expat.sourceforge.net/ is probably the most frequently recommended.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    41

    In C#?

    But if I want to use it with C# code. How do I do then?

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    It appears that MS has already implemented a XML parser for you, see this article: http://www.xml.com/pub/a/2002/03/06/csharpxml.html

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    Anything you want to do with files, or communication (like network).

    Just type in google: tcp stream C# or udp stream C#, in your case xml stream C#.

    Et voila everything you ever wanted to know.
    Its wonderfull to have a framework that holds such an excessive amount of tools (classes) already. They even give the tools very comprehensive names, one just needs to find them...

  6. #6
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by GanglyLamb View Post
    They even give the tools very comprehensive names, one just needs to find them...
    Indeed...to read XML, one would be inclined to look for an XMLReader?
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  7. #7
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    A kiss from Miss Teacher and one row to the front!!

  8. #8
    Registered User
    Join Date
    Nov 2005
    Posts
    41

    Thanks for the help

    Thanks for the help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  2. reading from xml
    By mixalissen in forum C# Programming
    Replies: 1
    Last Post: 05-28-2008, 12:35 PM
  3. Reading XML returned from a POST
    By ltcabral in forum C Programming
    Replies: 2
    Last Post: 04-07-2008, 11:28 AM
  4. reading xml
    By Yarin in forum C++ Programming
    Replies: 3
    Last Post: 10-08-2007, 02:36 AM
  5. reading and writing xml using c
    By cnu_sree in forum C Programming
    Replies: 3
    Last Post: 04-20-2007, 06:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21