[xml] Questions about libxml2's API...
- From: Roland Mainz <roland mainz nrubsig org>
- To: xml gnome org
- Subject: [xml] Questions about libxml2's API...
- Date: Tue, 04 Dec 2007 18:19:53 +0100
Hi!
----
I am currently working on SAX/xmlSAXParseFile libxml2 bindings for
ksh93/kash and have a few questions about the API:
- Is there a way to provide a "default encoding setting" which should be
used if the document itself doesn't define a character set ?
- How can I turn-off the libxml2 feature that it resolves all entities
(e.g. how can I do my own entity resolving) ?
- How can I abort a SAX parser run from within a callback function ?
- Is there a way to get |xmlSAXParseFile()| to accept stdin as input to
allow it's use in pipe chains ?
- Is |xmlSAXParseFile()| fully thread-safe (important since ksh93 will
get thread support soon) ?
- Is |xmlSAXParseFile()| re-entrant, e.g. can I call |xmlSAXParseFile()|
from within a callback during another |xmlSAXParseFile()| ? For example
for a simple RSS browser I would have to call |xmlSAXParseFile()| to
decode the RSS stream and then |xmlSAXParseFile()| a 2nd time (from
within a callback) to decode the XHTML data (I've already tried but
something weired is going on somehow the '<' and '>' characters seem to
"disappear" from the charatcer data stream).
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland mainz nrubsig org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]