473,424 Members | 1,909 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,424 software developers and data experts.

Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format. Want a c program on that!

Using the expat parser (http://expat.sourceforge.net/) i have to parse
the following xml file and print it on the screen in tabular
format. Want a c program on that in Linux environment.
xml file is:
<?xml version="1.0"?>
<users>
<user id="1">
<nameHari Oum </name>
<age24 </age>
<departmentProduct Development </department>
</user>
<user id="2">
<nameSandeep </name>
<age23 </age>
<departmentVoiceXML Applications </department>
</user>
<user id="3">
<nameJeganathan </name>
<age24 </age>
<departmentJava Applications </department>
</user>
</users>

Output should look like:
USER ID NAME
AGE DEPT
1 Hari Oum
24 Product Development
2 Sandeep
23 VoiceXML Applications
3 Jeganathan
24 Java Applications

Oct 26 '07 #1
1 2614

sharan <ha***********@gmail.comwrote in
<11**********************@e34g2000pro.googlegroups .com>:
Using the expat parser (http://expat.sourceforge.net/) i
have to parse the following xml file and print it on the
screen in tabular
format. Want a c program on that in Linux
environment.
Right. Hire yourself a programmer, or do your own homework.

--
It is rare to find learned men who are clean, do not stink,
and have a sense of humour. -- Liselotte in a letter to
Sophie, 30 Jul 1705
Oct 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: burn_hall | last post by:
Hi, I have a problem and can't figure it out and need your help, please look at the following code and the output also a xml file snippet is down there too. Looking at the output I don't know why...
8
by: pacman2081 | last post by:
I am looking for C/C++ code to parse a XML file. Most of the stuff I see on the web involves .NET or managed C++ code. Any help would be appreciated Thanks -- pacman
0
by: jwpaco | last post by:
Is it possible to create a CLI program that will take 2 optional switches (printer, alt key on/off) that can be called from a batch file. I assume the problem is getting the print screen from a CLI...
2
by: pradeep nair | last post by:
I would like to know how to pass keyboard input for a python script which is ran by another script. for eg: hello1.py: import os if __name__=='__main__':
2
by: madhu542 | last post by:
Hi, I am trying to print the values of a file in the tabular format... The contents of the file are :- TILE 1: Serial Number: 1 Model Number: 110A Hardware Rev: 220A
6
by: rellaboyina | last post by:
Dear All, I am having some data which will be stored in XML format and this needs to be parsed using the parser module XML::Parser and XML::Parser::Expat. This data consists of some special...
1
by: sharan | last post by:
Using the expat parser (http://expat.sourceforge.net/) i have to parse the following xml file and print it on the screen in tabular format using C language. i am getting ouput serially but not in...
2
by: toronto | last post by:
Seasons Greetings Everyone! I want to use JavaScript's event object to detect whether someone has pressed the 'PrintScreen' key to screenshot, via the Windows Clipboard, and to print website...
6
by: =?Utf-8?B?RGF2aWRN?= | last post by:
Hello, I have an XML file generated from a third party application that I would like to parse. Ideally, I plan on having a windows service setup to scan various folders for XML files and parse the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.