[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Fwd: Re: Genx - expat co-operation


expat from pascal

----- Original Message ----- 
From: "Toni Uusitalo" <toni.uusitalo@p...>

> At 16:12 26.1.2004, you wrote:
> > > These kind of functions are not currently part of public expat API.
> >
> >Correct. Btw, I don't think Expat checks URIs.
> 
> Oh yes. Uri checking is more wise to handle in the higher level anyway -
> in library like libcurl that is possibly used with expat.
> 
> >In any case, this would be a little difficult to expose,
> >because these functions are are inlined as macros in
> >a way that makes them part of the parsing logic, they
> >are not callable as separate functions. At a first glance
> >it is not even easy to see which ones they are.
> 
> xmltok.c contains utf8_isName2 etc. functions which
> use UTF8_GET_NAMING macro and its counterparts
> UTF8_GET_NAMING2 etc. to access UTF-8 tables
> in nametab.h
> 
> These could be used to implement
> int XmlWriterService_CheckName(XMLWriterService XWs, const utf8Byte *s);
> type of function. But I think there will be standalone genx implementation
> that duplicates this. Maybe genx should borrow something from expat though...

I did translate the Expat name and character checking code as simple
callable functions to Pascal/Delphi for both, UTF-8 and UTF-16. 
It should be even simpler to do that in C.

> And yes, expat is quite heavily macro oriented and complex piece of software,
> and I'm not even sure if the exposing of parser functions for genx would be
> that beneficial thing, this was just an idea of mine that wasn't based on 
> anything
> concrete.

Some sort of re-use might be reasonable - see above.

Karl

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.