Thread: parsing specific text from xml file

  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

  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
    Last edited by rabers; 02-28-2011 at 07: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, 06: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, 10:46 AM