[Expat-discuss] code for parsing content

Karl Waclawek karl at waclawek.net
Sat Nov 18 22:25:30 CET 2006


Jimmy Zhang wrote:
> Can someone point me to the expat code that
> parses character data? I would like to know
> the line number in the .c and .h files and how it
> checks the validity of the character as defined
> in XML spec...
>
>   

It's mostly done through macros in xmltok.c. Example: UTF8_INVALID2
There are also lookup tables defined in asciitab.h, latin1tab.h, 
utf8tab.h, nametab.h, etc.

Karl


More information about the Expat-discuss mailing list