Thread: XML parser in C

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    6

    XML parser in C

    i have an xml file. i need to extract some data from that file.i need to write a parser in C to obtain my data from an xml file. From where should i begin?

  2. #2
    C lover
    Join Date
    Oct 2007
    Location
    Virginia
    Posts
    266
    Heh, start by coding. With the first thing being getting the file into memory. You can read a block of the file into memory at a time or -slower- a single character at a time.

  3. #3
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    If you're allowed to use an xml parsing library, search out libexpat.
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Good XML Parser
    By sarah22 in forum Tech Board
    Replies: 1
    Last Post: 06-06-2010, 10:46 AM
  2. Replies: 2
    Last Post: 11-30-2006, 08:04 AM
  3. XML Parser
    By Hexxx in forum C++ Programming
    Replies: 1
    Last Post: 03-30-2006, 07:52 PM
  4. Problem with a file parser.
    By Hulag in forum C++ Programming
    Replies: 7
    Last Post: 03-17-2005, 09:54 AM
  5. Problem with Apache XML C++ Parser library
    By gandalf_bar in forum C++ Programming
    Replies: 2
    Last Post: 07-21-2004, 09:42 AM