parsing specific text from xml file

This is a discussion on parsing specific text from xml file within the C Programming forums, part of the General Programming Boards category; i'm new with xml and C and i have a question: i'm trying to read some data from the xml ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    29

    parsing specific text from xml file

    i'm new with xml and C and i have a question:
    i'm trying to read some data from the xml file using C.
    the data that i'm interested in is "buried" inside one of the entries of the map at the xml file
    any idea how can I do it?

    thanks a lot
    Shay

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,648

  3. #3
    Registered User krishnapollu's Avatar
    Join Date
    Dec 2010
    Location
    KERALA
    Posts
    29
    what kind of data is that? can you post any example?

  4. #4
    Registered User
    Join Date
    Jan 2009
    Posts
    29
    thank you for ur quick replays.
    im attaching the xml file i have where i marked the data i wish to extract from it (i have deleted few parts thats are irrelevant for the question and i wish not to be revealed).

    p.s.
    i get the xml as a response from a server.
    with java for example (OO lang) the response is an object which i can address it's properties, methods, etc. but here, with C, im not sure how it's done.

    thanks and best regards
    Shay
    Attached Images Attached Images  
    Last edited by rabers; 02-28-2011 at 06:01 AM.

  5. #5
    Registered User krishnapollu's Avatar
    Join Date
    Dec 2010
    Location
    KERALA
    Posts
    29
    u shud take a look into the "file i/o in c". it will help you.
    as u need to read each string and if a string "billing" occurs then, u need to scan the very next integer values which is ur required data.

  6. #6
    Registered User
    Join Date
    Jan 2009
    Posts
    29
    thanks.
    I managed

    Shay

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replace wildcard text in file with specific text.
    By untz in forum C++ Programming
    Replies: 4
    Last Post: 11-22-2010, 05:35 PM
  2. Can you help me about tolower() in file
    By nctar in forum C Programming
    Replies: 7
    Last Post: 05-12-2010, 10:04 AM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM

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