Bluehost.com Web Hosting $6.95

C and XML

This is a discussion on C and XML within the Linux General forums, part of the Linux Forums category; Hi, I understand that XML documents are usually parsed by applications at run-time, and I wonder if it is ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2009
lancer6238@gmail.com
 
Posts: n/a
Default C and XML

Hi,

I understand that XML documents are usually parsed by applications at
run-time, and I wonder if it is possible to have the program change
its behavior based on updates to the XML document? I was told that the
C standard library doesn't provide the tools to do that. However, a C
program can use OS-specific functions which would allow it, and many
OSs have that capability. I'm using RedHat Enterprise Linux 5. Are
such functions available on my OS, and if so, what are those?

Thank you.

Regards,
Rayne
Reply With Quote
  #2 (permalink)  
Old 04-28-2009
Sam
 
Posts: n/a
Default Re: C and XML

lancer6238@gmail.com writes:

> Hi,
>
> I understand that XML documents are usually parsed by applications at
> run-time, and I wonder if it is possible to have the program change
> its behavior based on updates to the XML document? I was told that the
> C standard library doesn't provide the tools to do that. However, a C
> program can use OS-specific functions which would allow it, and many
> OSs have that capability. I'm using RedHat Enterprise Linux 5. Are
> such functions available on my OS, and if so, what are those?


The functions that are available to you are the same function that are
available everywhere else. There are functions that let you open and read
files, or check the file's last modification timestamp.

It's all a matter of implementing a framework that checks if its XML
configuration file has changed, and if so reloads its contents.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkn2XgsACgkQx9p3GYHlUOLhiACcDQEgF1QGew mqnFLhNh6ip74I
18EAnjhrRny4Z5dORxoQVjEEkE6AEkD5
=EqHp
-----END PGP SIGNATURE-----

Reply With Quote
  #3 (permalink)  
Old 04-28-2009
Maxwell Lol
 
Posts: n/a
Default Re: C and XML

lancer6238@gmail.com writes:

> Hi,
>
> I understand that XML documents are usually parsed by applications at
> run-time, and I wonder if it is possible to have the program change
> its behavior based on updates to the XML document? I was told that the
> C standard library doesn't provide the tools to do that. However, a C
> program can use OS-specific functions which would allow it, and many
> OSs have that capability. I'm using RedHat Enterprise Linux 5. Are
> such functions available on my OS, and if so, what are those?


It's not native to the OS. You have to add it.
Pick a language, then search for XML support in that language.
Java, perl, etc.

Reply With Quote
  #4 (permalink)  
Old 04-28-2009
Balwinder S Dheeman
 
Posts: n/a
Default Re: C and XML

On 04/28/2009 04:28 PM, Maxwell Lol wrote:
> lancer6238@gmail.com writes:
>
>> Hi,
>>
>> I understand that XML documents are usually parsed by applications at
>> run-time, and I wonder if it is possible to have the program change
>> its behavior based on updates to the XML document? I was told that the
>> C standard library doesn't provide the tools to do that. However, a C
>> program can use OS-specific functions which would allow it, and many
>> OSs have that capability. I'm using RedHat Enterprise Linux 5. Are
>> such functions available on my OS, and if so, what are those?

>
> It's not native to the OS. You have to add it.


What do you mean add it, to the OS or what?

> Pick a language, then search for XML support in that language.
> Java, perl, etc.


Why pick a language? The OP is already asking/trying to accomplish XML
parsing in *C* language, What Java, Perl, etc has to do with the
original question?

Why not C? See http://expat.sourceforge.net/
and also C++ http://xerces.apache.org/xerces-c/

--
Balwinder S "bdheeman" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Plan9, T2, Arch/Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0