| Gnome XML Library Reference Manual |
|---|
xmlwriter —
struct xmlTextWriter; typedef xmlTextWriterPtr; xmlTextWriterPtr xmlNewTextWriter (xmlOutputBufferPtr out); xmlTextWriterPtr xmlNewTextWriterFilename (const char *uri, int compression); xmlTextWriterPtr xmlNewTextWriterMemory (xmlBufferPtr buf, int compression); void xmlFreeTextWriter (xmlTextWriterPtr writer); int xmlTextWriterStartDocument (xmlTextWriterPtr writer, const char *version, const char *encoding, const char *standalone); int xmlTextWriterEndDocument (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatComment (xmlTextWriterPtr writer, const char *format, ...); int xmlTextWriterWriteVFormatComment (xmlTextWriterPtr writer, const char *format, va_list argptr); int xmlTextWriterWriteComment (xmlTextWriterPtr writer, const xmlChar *content); int xmlTextWriterStartElement (xmlTextWriterPtr writer, const xmlChar *name); int xmlTextWriterStartElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI); int xmlTextWriterEndElement (xmlTextWriterPtr writer); int xmlTextWriterFullEndElement (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatElement (xmlTextWriterPtr writer, const xmlChar *name, const char *format, ...); int xmlTextWriterWriteVFormatElement (xmlTextWriterPtr writer, const xmlChar *name, const char *format, va_list argptr); int xmlTextWriterWriteElement (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content); int xmlTextWriterWriteFormatElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, ...); int xmlTextWriterWriteVFormatElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, va_list argptr); int xmlTextWriterWriteElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content); int xmlTextWriterWriteFormatRaw (xmlTextWriterPtr writer, const char *format, ...); int xmlTextWriterWriteVFormatRaw (xmlTextWriterPtr writer, const char *format, va_list argptr); int xmlTextWriterWriteRawLen (xmlTextWriterPtr writer, const xmlChar *content, int len); int xmlTextWriterWriteRaw (xmlTextWriterPtr writer, const xmlChar *content); int xmlTextWriterWriteFormatString (xmlTextWriterPtr writer, const char *format, ...); int xmlTextWriterWriteVFormatString (xmlTextWriterPtr writer, const char *format, va_list argptr); int xmlTextWriterWriteString (xmlTextWriterPtr writer, const xmlChar *content); int xmlTextWriterWriteBase64 (xmlTextWriterPtr writer, const char *data, int start, int len); int xmlTextWriterWriteBinHex (xmlTextWriterPtr writer, const char *data, int start, int len); int xmlTextWriterStartAttribute (xmlTextWriterPtr writer, const xmlChar *name); int xmlTextWriterStartAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI); int xmlTextWriterEndAttribute (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatAttribute (xmlTextWriterPtr writer, const xmlChar *name, const char *format, ...); int xmlTextWriterWriteVFormatAttribute (xmlTextWriterPtr writer, const xmlChar *name, const char *format, va_list argptr); int xmlTextWriterWriteAttribute (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content); int xmlTextWriterWriteFormatAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, ...); int xmlTextWriterWriteVFormatAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const char *format, va_list argptr); int xmlTextWriterWriteAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content); int xmlTextWriterStartPI (xmlTextWriterPtr writer, const xmlChar *target); int xmlTextWriterEndPI (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatPI (xmlTextWriterPtr writer, const xmlChar *target, const char *format, ...); int xmlTextWriterWriteVFormatPI (xmlTextWriterPtr writer, const xmlChar *target, const char *format, va_list argptr); int xmlTextWriterWritePI (xmlTextWriterPtr writer, const xmlChar *target, const xmlChar *content); #define xmlTextWriterWriteProcessingInstruction int xmlTextWriterStartCDATA (xmlTextWriterPtr writer); int xmlTextWriterEndCDATA (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatCDATA (xmlTextWriterPtr writer, const char *format, ...); int xmlTextWriterWriteVFormatCDATA (xmlTextWriterPtr writer, const char *format, va_list argptr); int xmlTextWriterWriteCDATA (xmlTextWriterPtr writer, const xmlChar *content); int xmlTextWriterStartDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid); int xmlTextWriterEndDTD (xmlTextWriterPtr writer); int xmlTextWriterWriteFormatDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const char *format, ...); int xmlTextWriterWriteVFormatDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const char *format, va_list argptr); int xmlTextWriterWriteDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *subset); #define xmlTextWriterWriteDocType int xmlTextWriterStartDTDElement (xmlTextWriterPtr writer, const xmlChar *name); #define xmlTextWriterEndDTDElement int xmlTextWriterWriteFormatDTDElement (xmlTextWriterPtr writer, const xmlChar *name, const char *format, ...); int xmlTextWriterWriteVFormatDTDElement (xmlTextWriterPtr writer, const xmlChar *name, const char *format, va_list argptr); int xmlTextWriterWriteDTDElement (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content); int xmlTextWriterStartDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name); #define xmlTextWriterEndDTDAttlist int xmlTextWriterWriteFormatDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name, const char *format, ...); int xmlTextWriterWriteVFormatDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name, const char *format, va_list argptr); int xmlTextWriterWriteDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content); int xmlTextWriterStartDTDEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name); #define xmlTextWriterEndDTDEntity int xmlTextWriterWriteFormatDTDInternalEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const char *format, ...); int xmlTextWriterWriteVFormatDTDInternalEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const char *format, va_list argptr); int xmlTextWriterWriteDTDInternalEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const xmlChar *content); int xmlTextWriterWriteDTDExternalEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid); int xmlTextWriterWriteDTDEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid, const xmlChar *content); int xmlTextWriterWriteDTDNotation (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid); int xmlTextWriterFlush (xmlTextWriterPtr writer);
xmlTextWriterPtr xmlNewTextWriter (xmlOutputBufferPtr out);
Create a new xmlNewTextWriter structure using an xmlOutputBufferPtr
| out: | an xmlOutputBufferPtr |
| Returns : | the new xmlTextWriterPtr or NULL in case of error |
xmlTextWriterPtr xmlNewTextWriterFilename (const char *uri, int compression);
Create a new xmlNewTextWriter structure with uri as output
| uri: | the URI of the resource for the output |
| compression: | compress the output? |
| Returns : | the new xmlTextWriterPtr or NULL in case of error |
xmlTextWriterPtr xmlNewTextWriterMemory (xmlBufferPtr buf, int compression);
Create a new xmlNewTextWriter structure with buf as output TODO: handle compression
| buf: | xmlBufferPtr |
| compression: | compress the output? |
| Returns : | the new xmlTextWriterPtr or NULL in case of error |
void xmlFreeTextWriter (xmlTextWriterPtr writer);
Deallocate all the resources associated to the writer
| writer: | the xmlTextWriterPtr |
int xmlTextWriterStartDocument (xmlTextWriterPtr writer, const char *version, const char *encoding, const char *standalone);
Start a new xml document
| writer: | the xmlTextWriterPtr |
| 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 |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndDocument (xmlTextWriterPtr writer);
End an xml document. All open elements are closed
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatComment (xmlTextWriterPtr writer, const char *format, ...);
Write an xml comment.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatComment
(xmlTextWriterPtr writer,
const char *format,
va_list argptr);Write an xml comment.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| argptr: | pointer to the first member of the variable argument list. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteComment (xmlTextWriterPtr writer, const xmlChar *content);
Write an xml comment.
| writer: | the xmlTextWriterPtr |
| content: | comment string |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartElement (xmlTextWriterPtr writer, const xmlChar *name);
Start an xml element.
| writer: | the xmlTextWriterPtr |
| name: | element name |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI);
Start an xml element with namespace support.
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix or NULL |
| name: | element local name |
| namespaceURI: | namespace URI or NULL |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndElement (xmlTextWriterPtr writer);
End the current xml element.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterFullEndElement (xmlTextWriterPtr writer);
End the current xml element. Writes an end tag even if the element is empty
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatElement (xmlTextWriterPtr writer, const xmlChar *name, const char *format, ...);
Write a formatted xml element.
| writer: | the xmlTextWriterPtr |
| name: | element name |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatElement
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
va_list argptr);Write a formatted xml element.
| writer: | the xmlTextWriterPtr |
| name: | element name |
| format: | format string (see printf) |
| argptr: | pointer to the first member of the variable argument list. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteElement (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content);
Write an xml element.
| writer: | the xmlTextWriterPtr |
| name: | element name |
| content: | element content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatElementNS
(xmlTextWriterPtr writer,
const xmlChar *prefix,
const xmlChar *name,
const xmlChar *namespaceURI,
const char *format,
...);Write a formatted xml element with namespace support.
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix |
| name: | element local name |
| namespaceURI: | namespace URI |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatElementNS
(xmlTextWriterPtr 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 xmlTextWriterPtr |
| 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. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteElementNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content);
Write an xml element with namespace support.
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix |
| name: | element local name |
| namespaceURI: | namespace URI |
| content: | element content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatRaw (xmlTextWriterPtr writer, const char *format, ...);
Write a formatted raw xml text.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatRaw (xmlTextWriterPtr writer, const char *format, va_list argptr);
Write a formatted raw xml text.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| argptr: | pointer to the first member of the variable argument list. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteRawLen (xmlTextWriterPtr writer, const xmlChar *content, int len);
| writer: | |
| content: | |
| len: | |
| Returns : |
int xmlTextWriterWriteRaw (xmlTextWriterPtr writer, const xmlChar *content);
Write a raw xml text.
| writer: | the xmlTextWriterPtr |
| content: | text string |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatString (xmlTextWriterPtr writer, const char *format, ...);
Write a formatted xml text.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatString (xmlTextWriterPtr writer, const char *format, va_list argptr);
Write a formatted xml text.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| argptr: | pointer to the first member of the variable argument list. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteString (xmlTextWriterPtr writer, const xmlChar *content);
Write an xml text.
| writer: | the xmlTextWriterPtr |
| content: | text string |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteBase64 (xmlTextWriterPtr writer, const char *data, int start, int len);
Write an base64 encoded xml text.
| writer: | the xmlTextWriterPtr |
| data: | binary data |
| start: | the position within the data of the first byte to encode |
| len: | the number of bytes to encode |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteBinHex (xmlTextWriterPtr writer, const char *data, int start, int len);
Write a BinHex encoded xml text.
| writer: | the xmlTextWriterPtr |
| data: | binary data |
| start: | the position within the data of the first byte to encode |
| len: | the number of bytes to encode |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartAttribute (xmlTextWriterPtr writer, const xmlChar *name);
Start an xml attribute.
| writer: | the xmlTextWriterPtr |
| name: | element name |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI);
Start an xml attribute with namespace support.
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix or NULL |
| name: | element local name |
| namespaceURI: | namespace URI or NULL |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndAttribute (xmlTextWriterPtr writer);
End the current xml element.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatAttribute
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
...);Write a formatted xml attribute.
| writer: | the xmlTextWriterPtr |
| name: | attribute name |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatAttribute
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
va_list argptr);Write a formatted xml attribute.
| writer: | the xmlTextWriterPtr |
| name: | attribute name |
| format: | format string (see printf) |
| argptr: | pointer to the first member of the variable argument list. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteAttribute (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content);
Write an xml attribute.
| writer: | the xmlTextWriterPtr |
| name: | attribute name |
| content: | attribute content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatAttributeNS
(xmlTextWriterPtr writer,
const xmlChar *prefix,
const xmlChar *name,
const xmlChar *namespaceURI,
const char *format,
...);Write a formatted xml attribute.with namespace support
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix |
| name: | attribute local name |
| namespaceURI: | namespace URI |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatAttributeNS
(xmlTextWriterPtr 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 xmlTextWriterPtr |
| 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. |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteAttributeNS (xmlTextWriterPtr writer, const xmlChar *prefix, const xmlChar *name, const xmlChar *namespaceURI, const xmlChar *content);
Write an xml attribute.
| writer: | the xmlTextWriterPtr |
| prefix: | namespace prefix |
| name: | attribute local name |
| namespaceURI: | namespace URI |
| content: | attribute content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartPI (xmlTextWriterPtr writer, const xmlChar *target);
Start an xml PI.
| writer: | the xmlTextWriterPtr |
| target: | PI target |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndPI (xmlTextWriterPtr writer);
End the current xml PI.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatPI (xmlTextWriterPtr writer, const xmlChar *target, const char *format, ...);
Write a formatted PI.
| writer: | the xmlTextWriterPtr |
| target: | PI target |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatPI (xmlTextWriterPtr writer, const xmlChar *target, const char *format, va_list argptr);
Write a formatted xml PI.
| writer: | the xmlTextWriterPtr |
| target: | PI target |
| format: | format string (see printf) |
| argptr: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWritePI (xmlTextWriterPtr writer, const xmlChar *target, const xmlChar *content);
Write an xml PI.
| writer: | the xmlTextWriterPtr |
| target: | PI target |
| content: | PI content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
#define xmlTextWriterWriteProcessingInstruction xmlTextWriterWritePI
int xmlTextWriterStartCDATA (xmlTextWriterPtr writer);
Start an xml CDATA section.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndCDATA (xmlTextWriterPtr writer);
End an xml CDATA section.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatCDATA (xmlTextWriterPtr writer, const char *format, ...);
Write a formatted xml CDATA.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatCDATA (xmlTextWriterPtr writer, const char *format, va_list argptr);
Write a formatted xml CDATA.
| writer: | the xmlTextWriterPtr |
| format: | format string (see printf) |
| argptr: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteCDATA (xmlTextWriterPtr writer, const xmlChar *content);
Write an xml CDATA.
| writer: | the xmlTextWriterPtr |
| content: | CDATA content |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid);
Start an xml DTD.
| writer: | the xmlTextWriterPtr |
| 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 |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterEndDTD (xmlTextWriterPtr writer);
End an xml DTD.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteFormatDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const char *format, ...);
Write a DTD with a formatted markup declarations part.
| writer: | the xmlTextWriterPtr |
| 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) |
| ...: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteVFormatDTD (xmlTextWriterPtr 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 xmlTextWriterPtr |
| 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: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterWriteDTD (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *subset);
Write a DTD.
| writer: | the xmlTextWriterPtr |
| 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: | |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
int xmlTextWriterStartDTDElement (xmlTextWriterPtr writer, const xmlChar *name);
| writer: | |
| name: | |
| Returns : |
int xmlTextWriterWriteFormatDTDElement
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
...);
| writer: | |
| name: | |
| format: | |
| ...: | |
| Returns : |
int xmlTextWriterWriteVFormatDTDElement
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
va_list argptr);
| writer: | |
| name: | |
| format: | |
| argptr: | |
| Returns : |
int xmlTextWriterWriteDTDElement (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content);
| writer: | |
| name: | |
| content: | |
| Returns : |
int xmlTextWriterStartDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name);
| writer: | |
| name: | |
| Returns : |
int xmlTextWriterWriteFormatDTDAttlist
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
...);
| writer: | |
| name: | |
| format: | |
| ...: | |
| Returns : |
int xmlTextWriterWriteVFormatDTDAttlist
(xmlTextWriterPtr writer,
const xmlChar *name,
const char *format,
va_list argptr);
| writer: | |
| name: | |
| format: | |
| argptr: | |
| Returns : |
int xmlTextWriterWriteDTDAttlist (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *content);
| writer: | |
| name: | |
| content: | |
| Returns : |
int xmlTextWriterStartDTDEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name);
| writer: | |
| pe: | |
| name: | |
| Returns : |
int xmlTextWriterWriteFormatDTDInternalEntity
(xmlTextWriterPtr writer,
int pe,
const xmlChar *name,
const char *format,
...);
| writer: | |
| pe: | |
| name: | |
| format: | |
| ...: | |
| Returns : |
int xmlTextWriterWriteVFormatDTDInternalEntity
(xmlTextWriterPtr writer,
int pe,
const xmlChar *name,
const char *format,
va_list argptr);
| writer: | |
| pe: | |
| name: | |
| format: | |
| argptr: | |
| Returns : |
int xmlTextWriterWriteDTDInternalEntity
(xmlTextWriterPtr writer,
int pe,
const xmlChar *name,
const xmlChar *content);
| writer: | |
| pe: | |
| name: | |
| content: | |
| Returns : |
int xmlTextWriterWriteDTDExternalEntity
(xmlTextWriterPtr writer,
int pe,
const xmlChar *name,
const xmlChar *pubid,
const xmlChar *sysid,
const xmlChar *ndataid);
| writer: | |
| pe: | |
| name: | |
| pubid: | |
| sysid: | |
| ndataid: | |
| Returns : |
int xmlTextWriterWriteDTDEntity (xmlTextWriterPtr writer, int pe, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid, const xmlChar *ndataid, const xmlChar *content);
| writer: | |
| pe: | |
| name: | |
| pubid: | |
| sysid: | |
| ndataid: | |
| content: | |
| Returns : |
int xmlTextWriterWriteDTDNotation (xmlTextWriterPtr writer, const xmlChar *name, const xmlChar *pubid, const xmlChar *sysid);
| writer: | |
| name: | |
| pubid: | |
| sysid: | |
| Returns : |
int xmlTextWriterFlush (xmlTextWriterPtr writer);
Flush the output buffer.
| writer: | the xmlTextWriterPtr |
| Returns : | the bytes written (may be 0 because of buffering) or -1 in case of error |
| << debugXML | xmlschemas >> |