If C is a fixed requirement, consider libxml2 (http://xmlsoft.org/).  It is a 
widely used, highly portable open source (MIT license) C language XML parser.

However, depending on what you mean by middleware, the fact that the other ends 
are written in C may not force you to use C.  If you want robust support for a 
range of XML standards, C may not be an option.  For instance, I don't know if 
there's a freely available C library that implements the DOM and XML-Schema; 
libxml2 does not (though it implements part of Schema).  If you need such 
features, you may have to implement them yourself, pay for a commercial parser, 
or switch from C.

> -----Original Message-----
> From: Arun Prakash [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 03, 2005 12:36 AM
> To: [email protected]
> Subject: Re: xercers in pure c
> 
> thanks alex.
> 
> the reason is that 
>     the code i am writting is kind of a middleware
> where the other ends are already written in c.
>    also the requirment is to wrtie only in c.
>    thanks for your help.
> 
> regards,
> Arun prakash
> --- Axel Wei� <[EMAIL PROTECTED]> wrote:
> > Arun Prakash wrote:
> > > Hi,
> > >    i recently came to know about this parser.
> > >
> > >    correect me if i am wrong.
> > >
> > >    This parser is written in c++ and all available
> > > api's are member functions.
> > >
> > >     i am writing a code in C(and use only c
> > compiler
> > > to compile it) that uses this parser to parse xml
> > > data. so my c parser doesn't understand
> > objects(xerces
> > > API's) right.
> > >
> > >    in that case how can i go about with it.
> > >
> > >    does xerces have a c implementation or des it
> > have
> > > c interface to support pure c programs.
> > >
> > >    please help me in solving this issue.
> > 
> > Hi Arun,
> > 
> > no, there is no C interface for xerces-c, AFAIK. In
> > Order to use 
> > xerces-c you clearly have to switch to C++.
> > 
> > You still could use your modules written in C (with
> > the extern "C" 
> > directive), but your main program should be written
> > in C++.
> > 
> > BTW: what reasons do you have not to program in C++?
> > 
> > Cheers,
> >                     Axel
> > 
> > -- 
> > Humboldt-Universit�t zu Berlin
> > Institut f�r Informatik
> > Signalverarbeitung und Mustererkennung
> > Dipl.-Inf. Axel Wei�
> > Rudower Chaussee 25
> > 12489 Berlin-Adlershof
> > +49-30-2093-3050
> > ** www.freesp.de **
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> Send instant messages to your online friends 
> http://uk.messenger.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to