|
libxml2
|
text writing API for XML More...
Macros | |
| #define | xmlTextWriterWriteProcessingInstruction xmlTextWriterWritePI |
| This macro maps to xmlTextWriterWritePI. | |
| #define | xmlTextWriterWriteDocType xmlTextWriterWriteDTD |
| this macro maps to xmlTextWriterWriteDTD | |
Typedefs | |
| typedef struct _xmlTextWriter | xmlTextWriter |
| Writer object. | |
Functions | |
| xmlTextWriter * | xmlNewTextWriter (xmlOutputBuffer *out) |
| Create a new xmlTextWriter structure using an xmlOutputBuffer NOTE: the out parameter will be deallocated when the writer is closed (if the call succeed.) | |
| xmlTextWriter * | xmlNewTextWriterFilename (const char *uri, int compression) |
| Create a new xmlTextWriter structure with uri as output. | |
| xmlTextWriter * | xmlNewTextWriterMemory (xmlBuffer *buf, int compression) |
| Create a new xmlTextWriter structure with buf as output TODO: handle compression. | |
| xmlTextWriter * | xmlNewTextWriterPushParser (xmlParserCtxt *ctxt, int compression) |
| Create a new xmlTextWriter structure with ctxt as output NOTE: the ctxt context will be freed with the resulting writer (if the call succeeds). | |
| xmlTextWriter * | xmlNewTextWriterDoc (xmlDoc **doc, int compression) |
| Create a new xmlTextWriter structure with doc as output. | |
| xmlTextWriter * | xmlNewTextWriterTree (xmlDoc *doc, xmlNode *node, int compression) |
| Create a new xmlTextWriter structure with doc as output starting at node | |
| void | xmlFreeTextWriter (xmlTextWriter *writer) |
| Deallocate all the resources associated to the writer. | |
| int | xmlTextWriterStartDocument (xmlTextWriter *writer, const char *version, const char *encoding, const char *standalone) |
| Start a new xml document. | |
| int | xmlTextWriterEndDocument (xmlTextWriter *writer) |
| End an xml document. | |
| int | xmlTextWriterStartComment (xmlTextWriter *writer) |
| Start an xml comment. | |
| int | xmlTextWriterEndComment (xmlTextWriter *writer) |
| End the current xml comment. | |
| int | xmlTextWriterWriteFormatComment (xmlTextWriter *writer, const char *format,...) |
| Write an xml comment. | |
| int | xmlTextWriterWriteVFormatComment (xmlTextWriter *writer, const char *format, va_list argptr) |
| Write an xml comment. | |
| int | xmlTextWriterWriteComment (xmlTextWriter *writer, const xmlChar *content) |
| Write an xml comment. | |
| int | xmlTextWriterStartElement (xmlTextWriter *writer, const xmlChar *name) |
| Start an xml element. | |
| int | xmlTextWriterStartElementNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI) |
| Start an xml element with namespace support. | |
| int | xmlTextWriterEndElement (xmlTextWriter *writer) |
| End the current xml element. | |
| int | xmlTextWriterFullEndElement (xmlTextWriter *writer) |
| End the current xml element. | |
| int | xmlTextWriterWriteFormatElement (xmlTextWriter *writer, const xmlChar *name, const char *format,...) |
| Write a formatted xml element. | |
| int | xmlTextWriterWriteVFormatElement (xmlTextWriter *writer, const xmlChar *name, const char *format, va_list argptr) |
| Write a formatted xml element. | |
| int | xmlTextWriterWriteElement (xmlTextWriter *writer, const xmlChar *name, const xmlChar *content) |
| Write an xml element. | |
| int | xmlTextWriterWriteFormatElementNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format,...) |
| Write a formatted xml element with namespace support. | |
| int | xmlTextWriterWriteVFormatElementNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, va_list argptr) |
| Write a formatted xml element with namespace support. | |
| int | xmlTextWriterWriteElementNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content) |
| Write an xml element with namespace support. | |
| int | xmlTextWriterWriteFormatRaw (xmlTextWriter *writer, const char *format,...) |
| Write a formatted raw xml text. | |
| int | xmlTextWriterWriteVFormatRaw (xmlTextWriter *writer, const char *format, va_list argptr) |
| Write a formatted raw xml text. | |
| int | xmlTextWriterWriteRawLen (xmlTextWriter *writer, const xmlChar *content, int len) |
| Write an xml text. | |
| int | xmlTextWriterWriteRaw (xmlTextWriter *writer, const xmlChar *content) |
| Write a raw xml text. | |
| int | xmlTextWriterWriteFormatString (xmlTextWriter *writer, const char *format,...) |
| Write a formatted xml text. | |
| int | xmlTextWriterWriteVFormatString (xmlTextWriter *writer, const char *format, va_list argptr) |
| Write a formatted xml text. | |
| int | xmlTextWriterWriteString (xmlTextWriter *writer, const xmlChar *content) |
| Write an xml text. | |
| int | xmlTextWriterWriteBase64 (xmlTextWriter *writer, const char *data, int start, int len) |
| Write an base64 encoded xml text. | |
| int | xmlTextWriterWriteBinHex (xmlTextWriter *writer, const char *data, int start, int len) |
| Write a BinHex encoded xml text. | |
| int | xmlTextWriterStartAttribute (xmlTextWriter *writer, const xmlChar *name) |
| Start an xml attribute. | |
| int | xmlTextWriterStartAttributeNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI) |
| Start an xml attribute with namespace support. | |
| int | xmlTextWriterEndAttribute (xmlTextWriter *writer) |
| End the current xml element. | |
| int | xmlTextWriterWriteFormatAttribute (xmlTextWriter *writer, const xmlChar *name, const char *format,...) |
| Write a formatted xml attribute. | |
| int | xmlTextWriterWriteVFormatAttribute (xmlTextWriter *writer, const xmlChar *name, const char *format, va_list argptr) |
| Write a formatted xml attribute. | |
| int | xmlTextWriterWriteAttribute (xmlTextWriter *writer, const xmlChar *name, const xmlChar *content) |
| Write an xml attribute. | |
| int | xmlTextWriterWriteFormatAttributeNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format,...) |
| Write a formatted xml attribute.with namespace support. | |
| int | xmlTextWriterWriteVFormatAttributeNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, va_list argptr) |
| Write a formatted xml attribute.with namespace support. | |
| int | xmlTextWriterWriteAttributeNS (xmlTextWriter *writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content) |
| Write an xml attribute. | |
| int | xmlTextWriterStartPI (xmlTextWriter *writer, const xmlChar *target) |
| Start an xml PI. | |
| int | xmlTextWriterEndPI (xmlTextWriter *writer) |
| End the current xml PI. | |
| int | xmlTextWriterWriteFormatPI (xmlTextWriter *writer, const xmlChar *target, const char *format,...) |
| Write a formatted PI. | |
| int | xmlTextWriterWriteVFormatPI (xmlTextWriter *writer, const xmlChar *target, const char *format, va_list argptr) |
| Write a formatted xml PI. | |
| int | xmlTextWriterWritePI (xmlTextWriter *writer, const xmlChar *target, const xmlChar *content) |
| Write an xml PI. | |
| int | xmlTextWriterStartCDATA (xmlTextWriter *writer) |
| Start an xml CDATA section. | |
| int | xmlTextWriterEndCDATA (xmlTextWriter *writer) |
| End an xml CDATA section. | |
| int | xmlTextWriterWriteFormatCDATA (xmlTextWriter *writer, const char *format,...) |
| Write a formatted xml CDATA. | |
| int | xmlTextWriterWriteVFormatCDATA (xmlTextWriter *writer, const char *format, va_list argptr) |
| Write a formatted xml CDATA. | |
| int | xmlTextWriterWriteCDATA (xmlTextWriter *writer, const xmlChar *content) |
| Write an xml CDATA. | |
| int | xmlTextWriterStartDTD (xmlTextWriter *writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid) |
| Start an xml DTD. | |
| int | xmlTextWriterEndDTD (xmlTextWriter *writer) |
| End an xml DTD. | |
| int | xmlTextWriterWriteFormatDTD (xmlTextWriter *writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const char *format,...) |
| Write a DTD with a formatted markup declarations part. | |
| int | xmlTextWriterWriteVFormatDTD (xmlTextWriter *writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const char *format, va_list argptr) |
| Write a DTD with a formatted markup declarations part. | |
| int | xmlTextWriterWriteDTD (xmlTextWriter *writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *subset) |
| Write a DTD. | |
| int | xmlTextWriterStartDTDElement (xmlTextWriter *writer, const xmlChar *name) |
| Start an xml DTD element. | |
| int | xmlTextWriterEndDTDElement (xmlTextWriter *writer) |
| End an xml DTD element. | |
| int | xmlTextWriterWriteFormatDTDElement (xmlTextWriter *writer, const xmlChar *name, const char *format,...) |
| Write a formatted DTD element. | |
| int | xmlTextWriterWriteVFormatDTDElement (xmlTextWriter *writer, const xmlChar *name, const char *format, va_list argptr) |
| Write a formatted DTD element. | |
| int | xmlTextWriterWriteDTDElement (xmlTextWriter *writer, const xmlChar *name, const xmlChar *content) |
| Write a DTD element. | |
| int | xmlTextWriterStartDTDAttlist (xmlTextWriter *writer, const xmlChar *name) |
| Start an xml DTD ATTLIST. | |
| int | xmlTextWriterEndDTDAttlist (xmlTextWriter *writer) |
| End an xml DTD attribute list. | |
| int | xmlTextWriterWriteFormatDTDAttlist (xmlTextWriter *writer, const xmlChar *name, const char *format,...) |
| Write a formatted DTD ATTLIST. | |
| int | xmlTextWriterWriteVFormatDTDAttlist (xmlTextWriter *writer, const xmlChar *name, const char *format, va_list argptr) |
| Write a formatted DTD ATTLIST. | |
| int | xmlTextWriterWriteDTDAttlist (xmlTextWriter *writer, const xmlChar *name, const xmlChar *content) |
| Write a DTD ATTLIST. | |
| int | xmlTextWriterStartDTDEntity (xmlTextWriter *writer, int pe, const xmlChar *name) |
| Start an xml DTD ATTLIST. | |
| int | xmlTextWriterEndDTDEntity (xmlTextWriter *writer) |
| End an xml DTD entity. | |
| int | xmlTextWriterWriteFormatDTDInternalEntity (xmlTextWriter *writer, int pe, const xmlChar *name, const char *format,...) |
| Write a formatted DTD internal entity. | |
| int | xmlTextWriterWriteVFormatDTDInternalEntity (xmlTextWriter *writer, int pe, const xmlChar *name, const char *format, va_list argptr) |
| Write a formatted DTD internal entity. | |
| int | xmlTextWriterWriteDTDInternalEntity (xmlTextWriter *writer, int pe, const xmlChar *name, const xmlChar *content) |
| Write a DTD internal entity. | |
| int | xmlTextWriterWriteDTDExternalEntity (xmlTextWriter *writer, int pe, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid) |
| Write a DTD external entity. | |
| int | xmlTextWriterWriteDTDExternalEntityContents (xmlTextWriter *writer, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid) |
| Write the contents of a DTD external entity. | |
| int | xmlTextWriterWriteDTDEntity (xmlTextWriter *writer, int pe, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid, const xmlChar *content) |
| Write a DTD entity. | |
| int | xmlTextWriterWriteDTDNotation (xmlTextWriter *writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid) |
| Write a DTD entity. | |
| int | xmlTextWriterSetIndent (xmlTextWriter *writer, int indent) |
| Set indentation output. | |
| int | xmlTextWriterSetIndentString (xmlTextWriter *writer, const xmlChar *str) |
| Set string indentation. | |
| int | xmlTextWriterSetQuoteChar (xmlTextWriter *writer, xmlChar quotechar) |
| Set the character used for quoting attributes. | |
| int | xmlTextWriterFlush (xmlTextWriter *writer) |
| Flush the output buffer. | |
| int | xmlTextWriterClose (xmlTextWriter *writer) |
| Flushes and closes the output buffer. | |
text writing API for XML
text writing API for XML
| void xmlFreeTextWriter | ( | xmlTextWriter * | writer | ) |
Deallocate all the resources associated to the writer.
| writer | the xmlTextWriter |
| xmlTextWriter * xmlNewTextWriter | ( | xmlOutputBuffer * | out | ) |
Create a new xmlTextWriter structure using an xmlOutputBuffer NOTE: the out parameter will be deallocated when the writer is closed (if the call succeed.)
| out | an xmlOutputBuffer |
| xmlTextWriter * xmlNewTextWriterDoc | ( | xmlDoc ** | doc, |
| int | compression ) |
Create a new xmlTextWriter structure with doc as output.
| doc | address of a xmlDoc to hold the new XML document tree |
| compression | compress the output? |
| xmlTextWriter * xmlNewTextWriterFilename | ( | const char * | uri, |
| int | compression ) |
Create a new xmlTextWriter structure with uri as output.
| uri | the URI of the resource for the output |
| compression | compress the output? |
| xmlTextWriter * xmlNewTextWriterMemory | ( | xmlBuffer * | buf, |
| int | compression ) |
Create a new xmlTextWriter structure with buf as output TODO: handle compression.
| buf | xmlBuffer |
| compression | compress the output? |
| xmlTextWriter * xmlNewTextWriterPushParser | ( | xmlParserCtxt * | ctxt, |
| int | compression ) |
Create a new xmlTextWriter structure with ctxt as output NOTE: the ctxt context will be freed with the resulting writer (if the call succeeds).
TODO: handle compression
| ctxt | xmlParserCtxt to hold the new XML document tree |
| compression | compress the output? |
| xmlTextWriter * xmlNewTextWriterTree | ( | xmlDoc * | doc, |
| xmlNode * | node, | ||
| int | compression ) |
Create a new xmlTextWriter structure with doc as output starting at node
| int xmlTextWriterClose | ( | xmlTextWriter * | writer | ) |
Flushes and closes the output buffer.
| writer | the xmlTextWriter |
| int xmlTextWriterEndAttribute | ( | xmlTextWriter * | writer | ) |
End the current xml element.
| writer | the xmlTextWriter |
| int xmlTextWriterEndCDATA | ( | xmlTextWriter * | writer | ) |
End an xml CDATA section.
| writer | the xmlTextWriter |
| int xmlTextWriterEndComment | ( | xmlTextWriter * | writer | ) |
End the current xml comment.
| writer | the xmlTextWriter |
| int xmlTextWriterEndDocument | ( | xmlTextWriter * | writer | ) |
End an xml document.
All open elements are closed, and the content is flushed to the output.
| writer | the xmlTextWriter |
| int xmlTextWriterEndDTD | ( | xmlTextWriter * | writer | ) |
End an xml DTD.
| writer | the xmlTextWriter |
| int xmlTextWriterEndDTDAttlist | ( | xmlTextWriter * | writer | ) |
End an xml DTD attribute list.
| writer | the xmlTextWriter |
| int xmlTextWriterEndDTDElement | ( | xmlTextWriter * | writer | ) |
End an xml DTD element.
| writer | the xmlTextWriter |
| int xmlTextWriterEndDTDEntity | ( | xmlTextWriter * | writer | ) |
End an xml DTD entity.
| writer | the xmlTextWriter |
| int xmlTextWriterEndElement | ( | xmlTextWriter * | writer | ) |
End the current xml element.
| writer | the xmlTextWriter |
| int xmlTextWriterEndPI | ( | xmlTextWriter * | writer | ) |
End the current xml PI.
| writer | the xmlTextWriter |
| int xmlTextWriterFlush | ( | xmlTextWriter * | writer | ) |
Flush the output buffer.
| writer | the xmlTextWriter |
| int xmlTextWriterFullEndElement | ( | xmlTextWriter * | writer | ) |
End the current xml element.
Writes an end tag even if the element is empty
| writer | the xmlTextWriter |
| int xmlTextWriterSetIndent | ( | xmlTextWriter * | writer, |
| int | indent ) |
Set indentation output.
indent = 0 do not indentation. indent > 0 do indentation.
| writer | the xmlTextWriter |
| indent | do indentation? |
| int xmlTextWriterSetIndentString | ( | xmlTextWriter * | writer, |
| const xmlChar * | str ) |
Set string indentation.
| writer | the xmlTextWriter |
| str | the xmlChar string |
| int xmlTextWriterSetQuoteChar | ( | xmlTextWriter * | writer, |
| xmlChar | quotechar ) |
Set the character used for quoting attributes.
| writer | the xmlTextWriter |
| quotechar | the quote character |
| int xmlTextWriterStartAttribute | ( | xmlTextWriter * | writer, |
| const xmlChar * | name ) |
Start an xml attribute.
| writer | the xmlTextWriter |
| name | element name |
| int xmlTextWriterStartAttributeNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI ) |
Start an xml attribute with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix or NULL |
| name | element local name |
| namespaceURI | namespace URI or NULL |
| int xmlTextWriterStartCDATA | ( | xmlTextWriter * | writer | ) |
Start an xml CDATA section.
| writer | the xmlTextWriter |
| int xmlTextWriterStartComment | ( | xmlTextWriter * | writer | ) |
Start an xml comment.
| writer | the xmlTextWriter |
| int xmlTextWriterStartDocument | ( | xmlTextWriter * | writer, |
| const char * | version, | ||
| const char * | encoding, | ||
| const char * | standalone ) |
Start a new xml document.
| writer | the xmlTextWriter |
| version | the xml version ("1.0") or NULL for default ("1.0") |
| encoding | the encoding or NULL for default |
| standalone | "yes" or "no" or NULL for default |
| int xmlTextWriterStartDTD | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid ) |
Start an xml DTD.
| writer | the xmlTextWriter |
| name | the name of the DTD |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| int xmlTextWriterStartDTDAttlist | ( | xmlTextWriter * | writer, |
| const xmlChar * | name ) |
Start an xml DTD ATTLIST.
| writer | the xmlTextWriter |
| name | the name of the DTD ATTLIST |
| int xmlTextWriterStartDTDElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name ) |
Start an xml DTD element.
| writer | the xmlTextWriter |
| name | the name of the DTD element |
| int xmlTextWriterStartDTDEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name ) |
Start an xml DTD ATTLIST.
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD ATTLIST |
| int xmlTextWriterStartElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name ) |
Start an xml element.
| writer | the xmlTextWriter |
| name | element name |
| int xmlTextWriterStartElementNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI ) |
Start an xml element with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix or NULL |
| name | element local name |
| namespaceURI | namespace URI or NULL |
| int xmlTextWriterStartPI | ( | xmlTextWriter * | writer, |
| const xmlChar * | target ) |
Start an xml PI.
| writer | the xmlTextWriter |
| target | PI target |
| int xmlTextWriterWriteAttribute | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | content ) |
Write an xml attribute.
| writer | the xmlTextWriter |
| name | attribute name |
| content | attribute content |
| int xmlTextWriterWriteAttributeNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const xmlChar * | content ) |
Write an xml attribute.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | attribute local name |
| namespaceURI | namespace URI |
| content | attribute content |
| int xmlTextWriterWriteBase64 | ( | xmlTextWriter * | writer, |
| const char * | data, | ||
| int | start, | ||
| int | len ) |
Write an base64 encoded xml text.
| writer | the xmlTextWriter |
| data | binary data |
| start | the position within the data of the first byte to encode |
| len | the number of bytes to encode |
| int xmlTextWriterWriteBinHex | ( | xmlTextWriter * | writer, |
| const char * | data, | ||
| int | start, | ||
| int | len ) |
Write a BinHex encoded xml text.
| writer | the xmlTextWriter |
| data | binary data |
| start | the position within the data of the first byte to encode |
| len | the number of bytes to encode |
| int xmlTextWriterWriteCDATA | ( | xmlTextWriter * | writer, |
| const xmlChar * | content ) |
Write an xml CDATA.
| writer | the xmlTextWriter |
| content | CDATA content |
| int xmlTextWriterWriteComment | ( | xmlTextWriter * | writer, |
| const xmlChar * | content ) |
Write an xml comment.
| writer | the xmlTextWriter |
| content | comment string |
| int xmlTextWriterWriteDTD | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const xmlChar * | subset ) |
Write a DTD.
| writer | the xmlTextWriter |
| name | the name of the DTD |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| subset | string content of the DTD |
| int xmlTextWriterWriteDTDAttlist | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | content ) |
Write a DTD ATTLIST.
| writer | the xmlTextWriter |
| name | the name of the DTD ATTLIST |
| content | content of the ATTLIST |
| int xmlTextWriterWriteDTDElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | content ) |
Write a DTD element.
| writer | the xmlTextWriter |
| name | the name of the DTD element |
| content | content of the element |
| int xmlTextWriterWriteDTDEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const xmlChar * | ndataid, | ||
| const xmlChar * | content ) |
Write a DTD entity.
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD entity |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| ndataid | the xml notation name. |
| content | content of the entity |
| int xmlTextWriterWriteDTDExternalEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const xmlChar * | ndataid ) |
Write a DTD external entity.
The entity must have been started with xmlTextWriterStartDTDEntity
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD entity |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| ndataid | the xml notation name. |
| int xmlTextWriterWriteDTDExternalEntityContents | ( | xmlTextWriter * | writer, |
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const xmlChar * | ndataid ) |
Write the contents of a DTD external entity.
| writer | the xmlTextWriter |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| ndataid | the xml notation name. |
| int xmlTextWriterWriteDTDInternalEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name, | ||
| const xmlChar * | content ) |
Write a DTD internal entity.
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD entity |
| content | content of the entity |
| int xmlTextWriterWriteDTDNotation | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid ) |
Write a DTD entity.
| writer | the xmlTextWriter |
| name | the name of the xml notation |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| int xmlTextWriterWriteElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | content ) |
Write an xml element.
| writer | the xmlTextWriter |
| name | element name |
| content | element content |
| int xmlTextWriterWriteElementNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const xmlChar * | content ) |
Write an xml element with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | element local name |
| namespaceURI | namespace URI |
| content | element content |
| int xmlTextWriterWriteFormatAttribute | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| ... ) |
Write a formatted xml attribute.
| writer | the xmlTextWriter |
| name | attribute name |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatAttributeNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const char * | format, | ||
| ... ) |
Write a formatted xml attribute.with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | attribute local name |
| namespaceURI | namespace URI |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatCDATA | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| ... ) |
Write a formatted xml CDATA.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatComment | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| ... ) |
Write an xml comment.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatDTD | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const char * | format, | ||
| ... ) |
Write a DTD with a formatted markup declarations part.
| writer | the xmlTextWriter |
| name | the name of the DTD |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatDTDAttlist | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| ... ) |
Write a formatted DTD ATTLIST.
| writer | the xmlTextWriter |
| name | the name of the DTD ATTLIST |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatDTDElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| ... ) |
Write a formatted DTD element.
| writer | the xmlTextWriter |
| name | the name of the DTD element |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatDTDInternalEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name, | ||
| const char * | format, | ||
| ... ) |
Write a formatted DTD internal entity.
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD entity |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| ... ) |
Write a formatted xml element.
| writer | the xmlTextWriter |
| name | element name |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatElementNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const char * | format, | ||
| ... ) |
Write a formatted xml element with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | element local name |
| namespaceURI | namespace URI |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatPI | ( | xmlTextWriter * | writer, |
| const xmlChar * | target, | ||
| const char * | format, | ||
| ... ) |
Write a formatted PI.
| writer | the xmlTextWriter |
| target | PI target |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatRaw | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| ... ) |
Write a formatted raw xml text.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWriteFormatString | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| ... ) |
Write a formatted xml text.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| ... | extra parameters for the format |
| int xmlTextWriterWritePI | ( | xmlTextWriter * | writer, |
| const xmlChar * | target, | ||
| const xmlChar * | content ) |
Write an xml PI.
| writer | the xmlTextWriter |
| target | PI target |
| content | PI content |
| int xmlTextWriterWriteRaw | ( | xmlTextWriter * | writer, |
| const xmlChar * | content ) |
Write a raw xml text.
| writer | the xmlTextWriter |
| content | text string |
| int xmlTextWriterWriteRawLen | ( | xmlTextWriter * | writer, |
| const xmlChar * | content, | ||
| int | len ) |
Write an xml text.
TODO: what about entities and special chars??
| writer | the xmlTextWriter |
| content | text string |
| len | length of the text string |
| int xmlTextWriterWriteString | ( | xmlTextWriter * | writer, |
| const xmlChar * | content ) |
Write an xml text.
| writer | the xmlTextWriter |
| content | text string |
| int xmlTextWriterWriteVFormatAttribute | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml attribute.
| writer | the xmlTextWriter |
| name | attribute name |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatAttributeNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml attribute.with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | attribute local name |
| namespaceURI | namespace URI |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatCDATA | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml CDATA.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatComment | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| va_list | argptr ) |
Write an xml comment.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatDTD | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const xmlChar * | pubid, | ||
| const xmlChar * | sysid, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a DTD with a formatted markup declarations part.
| writer | the xmlTextWriter |
| name | the name of the DTD |
| pubid | the public identifier, which is an alternative to the system identifier |
| sysid | the system identifier, which is the URI of the DTD |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatDTDAttlist | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted DTD ATTLIST.
| writer | the xmlTextWriter |
| name | the name of the DTD ATTLIST |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatDTDElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted DTD element.
| writer | the xmlTextWriter |
| name | the name of the DTD element |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatDTDInternalEntity | ( | xmlTextWriter * | writer, |
| int | pe, | ||
| const xmlChar * | name, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted DTD internal entity.
| writer | the xmlTextWriter |
| pe | TRUE if this is a parameter entity, FALSE if not |
| name | the name of the DTD entity |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatElement | ( | xmlTextWriter * | writer, |
| const xmlChar * | name, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml element.
| writer | the xmlTextWriter |
| name | element name |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatElementNS | ( | xmlTextWriter * | writer, |
| const xmlChar * | prefix, | ||
| const xmlChar * | name, | ||
| const xmlChar * | namespaceURI, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml element with namespace support.
| writer | the xmlTextWriter |
| prefix | namespace prefix |
| name | element local name |
| namespaceURI | namespace URI |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatPI | ( | xmlTextWriter * | writer, |
| const xmlChar * | target, | ||
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml PI.
| writer | the xmlTextWriter |
| target | PI target |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatRaw | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted raw xml text.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |
| int xmlTextWriterWriteVFormatString | ( | xmlTextWriter * | writer, |
| const char * | format, | ||
| va_list | argptr ) |
Write a formatted xml text.
| writer | the xmlTextWriter |
| format | format string (see printf) |
| argptr | pointer to the first member of the variable argument list. |