[xml] Changing xmlwriter DTD writing part
- From: Lucas Brasilino <brasilino recife pe gov br>
- To: "Mickautsch, Alfred" <alfred mickautsch schuler-ag com>
- Cc: xml gnome org
- Subject: [xml] Changing xmlwriter DTD writing part
- Date: Thu, 18 Mar 2004 17:12:40 -0300
Hi Alfred, and all :)
Can you share your thoughts about this change ?? :))
So I would like to have a possibility to write the start of the
entity with xmlTextWriterStartDTDEntity or some new function,
then write the content with xmlTextWriterWriteString and end it
with an according xmlTextWriterEndDTDEntity function. The problem
lies in the fact, that the structures of internal and external
entities differ a lot and I do not have the slightest idea how
to make it possible in a simple way, to write both of them using
the same start and end function.
I've been looking around xmlWriter's DTD part and it looks
a little obscure :) can you provide me a sample code? My tentatives
wasn't so successful.
But let's go through some ideas: DTD internal declarations
could be stored in a xmlLink list which points to xmlChar buffers.
Each buffer could be an element, attribute list or entities (internal
and external). So, should be provided some functions like:
xmlTextWriterAddDTDElement(xmlTextWriterPtr, xmlChar *element, xmlChar
*contentmodel);
xmlTextWriterAddDTDAttr(xmlTextWriterPtr, xmlChar *element, xmlChar
*attribute, xmlChar *decl);
xmlTextWriterAddDTDIntEntity(xmlTextWriterPtr, xmlChar *entity, xmlChar
*content);
xmlTextWriterAddDTDExtEntity(xmlTextWriterPtr, xmlChar *entity, xmlChar
*uri);
And when calling xmlTextWriterEndDTD(), all declaration buffers should
be serialized. Tell me fellings :)
Since I did some work to make it possible to write DTD's without
calling xmlTextWriterStartDTD first, I thought, this would be a
good time to make some improvements too.
These changes was applied? If not, can you provide me a patch?
bests regards
--
[]'s
Lucas Brasilino
brasilino recife pe gov br
http://www.recife.pe.gov.br
Emprel - Empresa Municipal de Informatica (pt_BR)
Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]