Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XML Parsing in C

    Hi All,

    I am new to xml. I need to develop a xml parser in C which would parse an xml file of the format given below.

    <?xml version="1.0" encoding="utf-8"?>
    <fw version="FW 0.0.05">
    <commandgroup name="ControlCommands">
    <command name="1">start(0,1)</command>
    <command name="2">process(2,1)</command>
    <command name="3">wait(200)</command>
    <command name="4">stop(0,1)</command>
    </commandgroup>
    </fw>

    All the parser codes that I found on the internet are only capable of parsing an xml which is in the below format.

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
    </note>

    Kindly help me with my requirement at the earliest.

    Thanks in advance,
    Vaishnavi

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    If you want this in C your on the wrong section. Go here http://www.codingforums.com/computer-programming/

    OR search "parse a xml file using C" in google, I got About 3,270,000 results (0.34 seconds)
    Last edited by sunfighter; 06-03-2013 at 09:18 PM.
    Evolution - The non-random survival of random variants.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •