blob: e580459716fd3189fab5dbd7eb302c10219998fb [file] [log] [blame]
Daniel Veillard35925471999-02-25 08:46:07 +00001<HTML
2><HEAD
3><TITLE
4>entities</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
Daniel Veillard35925471999-02-25 08:46:07 +00008REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
Daniel Veillard35008381999-10-25 13:15:52 +000012TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
Daniel Veillard35925471999-02-25 08:46:07 +000014REL="PREVIOUS"
15TITLE="tree"
16HREF="gnome-xml-tree.html"><LINK
17REL="NEXT"
18TITLE="valid"
19HREF="gnome-xml-valid.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +000028BGCOLOR="#000000"
29CELLPADDING="1"
Daniel Veillard35925471999-02-25 08:46:07 +000030CELLSPACING="0"
31><TR
32><TH
Daniel Veillard14fff061999-06-22 21:49:07 +000033COLSPAN="4"
Daniel Veillard35925471999-02-25 08:46:07 +000034ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +000035><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
Daniel Veillard35925471999-02-25 08:46:07 +000040></TR
41><TR
42><TD
Daniel Veillard14fff061999-06-22 21:49:07 +000043WIDTH="25%"
44BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +000045ALIGN="left"
Daniel Veillard35925471999-02-25 08:46:07 +000046><A
47HREF="gnome-xml-tree.html"
Daniel Veillard14fff061999-06-22 21:49:07 +000048><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
Daniel Veillard35925471999-02-25 08:46:07 +000055></TD
56><TD
Daniel Veillard14fff061999-06-22 21:49:07 +000057WIDTH="25%"
58BGCOLOR="#0000C0"
Daniel Veillard35925471999-02-25 08:46:07 +000059ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +000060><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
Daniel Veillard35925471999-02-25 08:46:07 +000075></TD
76><TD
Daniel Veillard14fff061999-06-22 21:49:07 +000077WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
Daniel Veillard35008381999-10-25 13:15:52 +000085HREF="libxml-lib.html"
Daniel Veillard14fff061999-06-22 21:49:07 +000086><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +000099ALIGN="right"
Daniel Veillard35925471999-02-25 08:46:07 +0000100><A
101HREF="gnome-xml-valid.html"
Daniel Veillard14fff061999-06-22 21:49:07 +0000102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
Daniel Veillard35925471999-02-25 08:46:07 +0000109></TD
110></TR
111></TABLE
Daniel Veillard14fff061999-06-22 21:49:07 +0000112></DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000113><H1
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000114>entities</H1
Daniel Veillard35925471999-02-25 08:46:07 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000118NAME="AEN6387"
Daniel Veillard35925471999-02-25 08:46:07 +0000119></A
120><H2
121>Name</H2
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000122>entities &#8212; </DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000126NAME="AEN6390"
Daniel Veillard35925471999-02-25 08:46:07 +0000127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000132BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000141enum <A
142HREF="gnome-xml-entities.html#XMLENTITYTYPE"
143>xmlEntityType</A
144>;
145struct <A
146HREF="gnome-xml-entities.html#XMLENTITY"
147>xmlEntity</A
148>;
Daniel Veillard35925471999-02-25 08:46:07 +0000149typedef <A
150HREF="gnome-xml-entities.html#XMLENTITYPTR"
151>xmlEntityPtr</A
Daniel Veillard14fff061999-06-22 21:49:07 +0000152>;
Daniel Veillard35925471999-02-25 08:46:07 +0000153#define <A
154HREF="gnome-xml-entities.html#XML-MIN-ENTITIES-TABLE"
155>XML_MIN_ENTITIES_TABLE</A
156>
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000157struct <A
158HREF="gnome-xml-entities.html#XMLENTITIESTABLE"
159>xmlEntitiesTable</A
160>;
Daniel Veillard35925471999-02-25 08:46:07 +0000161typedef <A
162HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
163>xmlEntitiesTablePtr</A
Daniel Veillard14fff061999-06-22 21:49:07 +0000164>;
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000165<A
166HREF="gnome-xml-entities.html#XMLENTITYPTR"
167>xmlEntityPtr</A
168> <A
Daniel Veillard35925471999-02-25 08:46:07 +0000169HREF="gnome-xml-entities.html#XMLADDDOCENTITY"
170>xmlAddDocEntity</A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000171> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000172HREF="gnome-xml-tree.html#XMLDOCPTR"
173>xmlDocPtr</A
174> doc,
175 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000176HREF="gnome-xml-tree.html#XMLCHAR"
177>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000178> *name,
179 int type,
180 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000181HREF="gnome-xml-tree.html#XMLCHAR"
182>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000183> *ExternalID,
184 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000185HREF="gnome-xml-tree.html#XMLCHAR"
186>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000187> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000188 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000189HREF="gnome-xml-tree.html#XMLCHAR"
190>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000191> *content);
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000192<A
193HREF="gnome-xml-entities.html#XMLENTITYPTR"
194>xmlEntityPtr</A
195> <A
Daniel Veillard35925471999-02-25 08:46:07 +0000196HREF="gnome-xml-entities.html#XMLADDDTDENTITY"
197>xmlAddDtdEntity</A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000198> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000199HREF="gnome-xml-tree.html#XMLDOCPTR"
200>xmlDocPtr</A
201> doc,
202 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000203HREF="gnome-xml-tree.html#XMLCHAR"
204>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000205> *name,
206 int type,
207 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000208HREF="gnome-xml-tree.html#XMLCHAR"
209>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000210> *ExternalID,
211 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000212HREF="gnome-xml-tree.html#XMLCHAR"
213>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000214> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000215 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000216HREF="gnome-xml-tree.html#XMLCHAR"
217>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000218> *content);
219<A
220HREF="gnome-xml-entities.html#XMLENTITYPTR"
221>xmlEntityPtr</A
222> <A
223HREF="gnome-xml-entities.html#XMLGETPREDEFINEDENTITY"
224>xmlGetPredefinedEntity</A
225> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000226HREF="gnome-xml-tree.html#XMLCHAR"
227>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000228> *name);
229<A
230HREF="gnome-xml-entities.html#XMLENTITYPTR"
231>xmlEntityPtr</A
232> <A
233HREF="gnome-xml-entities.html#XMLGETDOCENTITY"
234>xmlGetDocEntity</A
235> (<A
236HREF="gnome-xml-tree.html#XMLDOCPTR"
237>xmlDocPtr</A
238> doc,
239 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000240HREF="gnome-xml-tree.html#XMLCHAR"
241>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000242> *name);
243<A
244HREF="gnome-xml-entities.html#XMLENTITYPTR"
245>xmlEntityPtr</A
246> <A
247HREF="gnome-xml-entities.html#XMLGETDTDENTITY"
248>xmlGetDtdEntity</A
249> (<A
250HREF="gnome-xml-tree.html#XMLDOCPTR"
251>xmlDocPtr</A
252> doc,
253 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000254HREF="gnome-xml-tree.html#XMLCHAR"
255>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000256> *name);
Daniel Veillardb05deb71999-08-10 19:04:08 +0000257<A
258HREF="gnome-xml-entities.html#XMLENTITYPTR"
259>xmlEntityPtr</A
260> <A
261HREF="gnome-xml-entities.html#XMLGETPARAMETERENTITY"
262>xmlGetParameterEntity</A
263> (<A
264HREF="gnome-xml-tree.html#XMLDOCPTR"
265>xmlDocPtr</A
266> doc,
267 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000268HREF="gnome-xml-tree.html#XMLCHAR"
269>xmlChar</A
Daniel Veillardb05deb71999-08-10 19:04:08 +0000270> *name);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000271const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000272HREF="gnome-xml-tree.html#XMLCHAR"
273>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000274>* <A
275HREF="gnome-xml-entities.html#XMLENCODEENTITIES"
276>xmlEncodeEntities</A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000277> (<A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000278HREF="gnome-xml-tree.html#XMLDOCPTR"
279>xmlDocPtr</A
280> doc,
281 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000282HREF="gnome-xml-tree.html#XMLCHAR"
283>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000284> *input);
Daniel Veillard35925471999-02-25 08:46:07 +0000285<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000286HREF="gnome-xml-tree.html#XMLCHAR"
287>xmlChar</A
288>* <A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000289HREF="gnome-xml-entities.html#XMLENCODEENTITIESREENTRANT"
290>xmlEncodeEntitiesReentrant</A
291> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000292HREF="gnome-xml-tree.html#XMLDOCPTR"
293>xmlDocPtr</A
294> doc,
295 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000296HREF="gnome-xml-tree.html#XMLCHAR"
297>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000298> *input);
299<A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000300HREF="gnome-xml-tree.html#XMLCHAR"
301>xmlChar</A
302>* <A
303HREF="gnome-xml-entities.html#XMLENCODESPECIALCHARS"
304>xmlEncodeSpecialChars</A
305> (<A
306HREF="gnome-xml-tree.html#XMLDOCPTR"
307>xmlDocPtr</A
308> doc,
309 const <A
310HREF="gnome-xml-tree.html#XMLCHAR"
311>xmlChar</A
312> *input);
313<A
Daniel Veillard35925471999-02-25 08:46:07 +0000314HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
315>xmlEntitiesTablePtr</A
316> <A
317HREF="gnome-xml-entities.html#XMLCREATEENTITIESTABLE"
318>xmlCreateEntitiesTable</A
319> (void);
320<A
321HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
322>xmlEntitiesTablePtr</A
323> <A
324HREF="gnome-xml-entities.html#XMLCOPYENTITIESTABLE"
325>xmlCopyEntitiesTable</A
326> (<A
327HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
328>xmlEntitiesTablePtr</A
329> table);
330void <A
331HREF="gnome-xml-entities.html#XMLFREEENTITIESTABLE"
332>xmlFreeEntitiesTable</A
333> (<A
334HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
335>xmlEntitiesTablePtr</A
336> table);
337void <A
338HREF="gnome-xml-entities.html#XMLDUMPENTITIESTABLE"
339>xmlDumpEntitiesTable</A
340> (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +0000341HREF="gnome-xml-tree.html#XMLBUFFERPTR"
342>xmlBufferPtr</A
343> buf,
344 <A
Daniel Veillard35925471999-02-25 08:46:07 +0000345HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
346>xmlEntitiesTablePtr</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000347> table);
348void <A
349HREF="gnome-xml-entities.html#XMLDUMPENTITYDECL"
350>xmlDumpEntityDecl</A
351> (<A
352HREF="gnome-xml-tree.html#XMLBUFFERPTR"
353>xmlBufferPtr</A
354> buf,
355 <A
356HREF="gnome-xml-entities.html#XMLENTITYPTR"
357>xmlEntityPtr</A
358> ent);
359void <A
360HREF="gnome-xml-entities.html#XMLCLEANUPPREDEFINEDENTITIES"
361>xmlCleanupPredefinedEntities</A
362> (void);
363int <A
364HREF="gnome-xml-entities.html#XMLENTITYADDREFERENCE"
365>xmlEntityAddReference</A
366> (<A
367HREF="gnome-xml-entities.html#XMLENTITYPTR"
368>xmlEntityPtr</A
369> ent,
370 const <A
371HREF="gnome-xml-tree.html#XMLCHAR"
372>xmlChar</A
373> *to);</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000374></TD
375></TR
376></TABLE
377></DIV
378><DIV
379CLASS="REFSECT1"
380><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000381NAME="AEN6457"
Daniel Veillard35925471999-02-25 08:46:07 +0000382></A
383><H2
384>Description</H2
385><P
386></P
387></DIV
388><DIV
389CLASS="REFSECT1"
390><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000391NAME="AEN6460"
Daniel Veillard35925471999-02-25 08:46:07 +0000392></A
393><H2
394>Details</H2
Daniel Veillard14fff061999-06-22 21:49:07 +0000395><DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000396CLASS="REFSECT2"
397><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000398NAME="AEN6462"
Daniel Veillard35925471999-02-25 08:46:07 +0000399></A
400><H3
401><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000402NAME="XMLENTITYTYPE"
Daniel Veillard35925471999-02-25 08:46:07 +0000403></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000404>enum xmlEntityType</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000405><TABLE
406BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000407BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000408WIDTH="100%"
409CELLPADDING="6"
410><TR
411><TD
412><PRE
413CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000414>typedef enum {
415 XML_INTERNAL_GENERAL_ENTITY = 1,
416 XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2,
417 XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3,
418 XML_INTERNAL_PARAMETER_ENTITY = 4,
419 XML_EXTERNAL_PARAMETER_ENTITY = 5,
420 XML_INTERNAL_PREDEFINED_ENTITY = 6
421} xmlEntityType;</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000422></TD
423></TR
424></TABLE
425><P
426></P
427></DIV
428><HR><DIV
429CLASS="REFSECT2"
430><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000431NAME="AEN6467"
Daniel Veillard35925471999-02-25 08:46:07 +0000432></A
433><H3
434><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000435NAME="XMLENTITY"
Daniel Veillard35925471999-02-25 08:46:07 +0000436></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000437>struct xmlEntity</H3
Daniel Veillardf3a73582000-01-05 14:58:39 +0000438><TABLE
439BORDER="0"
440BGCOLOR="#D6E8FF"
441WIDTH="100%"
442CELLPADDING="6"
443><TR
444><TD
445><PRE
446CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000447>struct xmlEntity {
448#ifndef XML_WITHOUT_CORBA
449 void *_private; /* for Corba, must be first ! */
450#endif
451 xmlElementType type; /* XML_ENTITY_DECL, must be second ! */
452 const xmlChar *name; /* Attribute name */
453 struct _xmlNode *children; /* NULL */
454 struct _xmlNode *last; /* NULL */
455 struct _xmlDtd *parent; /* -&gt; DTD */
456 struct _xmlNode *next; /* next sibling link */
457 struct _xmlNode *prev; /* previous sibling link */
458 struct _xmlDoc *doc; /* the containing document */
459
460 xmlChar *orig; /* content without ref substitution */
461 xmlChar *content; /* content or ndata if unparsed */
462 int length; /* the content length */
463 xmlEntityType etype; /* The entity type */
464 const xmlChar *ExternalID; /* External identifier for PUBLIC */
465 const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC Entity */
466
467#ifdef WITH_EXTRA_ENT_DETECT
468 /* Referenced entities name stack */
469 xmlChar *ent; /* Current parsed Node */
470 int entNr; /* Depth of the parsing stack */
471 int entMax; /* Max depth of the parsing stack */
472 xmlChar * *entTab; /* array of nodes */
473#endif
474};</PRE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000475></TD
476></TR
477></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000478><P
479></P
480></DIV
481><HR><DIV
482CLASS="REFSECT2"
483><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000484NAME="AEN6472"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000485></A
486><H3
487><A
488NAME="XMLENTITYPTR"
489></A
490>xmlEntityPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000491><TABLE
492BORDER="0"
493BGCOLOR="#D6E8FF"
494WIDTH="100%"
495CELLPADDING="6"
496><TR
497><TD
498><PRE
499CLASS="PROGRAMLISTING"
500>typedef xmlEntity *xmlEntityPtr;</PRE
501></TD
502></TR
503></TABLE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000504><P
505></P
506></DIV
507><HR><DIV
508CLASS="REFSECT2"
509><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000510NAME="AEN6477"
Daniel Veillard35925471999-02-25 08:46:07 +0000511></A
512><H3
513><A
514NAME="XML-MIN-ENTITIES-TABLE"
515></A
516>XML_MIN_ENTITIES_TABLE</H3
517><TABLE
518BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000519BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000520WIDTH="100%"
521CELLPADDING="6"
522><TR
523><TD
524><PRE
525CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000526>#define XML_MIN_ENTITIES_TABLE 32</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000527></TD
528></TR
529></TABLE
530><P
531></P
532></DIV
533><HR><DIV
534CLASS="REFSECT2"
535><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000536NAME="AEN6482"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000537></A
538><H3
539><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000540NAME="XMLENTITIESTABLE"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000541></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000542>struct xmlEntitiesTable</H3
543><TABLE
544BORDER="0"
545BGCOLOR="#D6E8FF"
546WIDTH="100%"
547CELLPADDING="6"
548><TR
549><TD
550><PRE
551CLASS="PROGRAMLISTING"
552>struct xmlEntitiesTable {
553 int nb_entities; /* number of elements stored */
554 int max_entities; /* maximum number of elements */
555 xmlEntityPtr *table; /* the table of entities */
556};</PRE
557></TD
558></TR
559></TABLE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000560><P
561></P
562></DIV
563><HR><DIV
564CLASS="REFSECT2"
565><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000566NAME="AEN6487"
567></A
568><H3
569><A
570NAME="XMLENTITIESTABLEPTR"
571></A
572>xmlEntitiesTablePtr</H3
573><TABLE
574BORDER="0"
575BGCOLOR="#D6E8FF"
576WIDTH="100%"
577CELLPADDING="6"
578><TR
579><TD
580><PRE
581CLASS="PROGRAMLISTING"
582>typedef xmlEntitiesTable *xmlEntitiesTablePtr;</PRE
583></TD
584></TR
585></TABLE
586><P
587></P
588></DIV
589><HR><DIV
590CLASS="REFSECT2"
591><A
592NAME="AEN6492"
Daniel Veillard35925471999-02-25 08:46:07 +0000593></A
594><H3
595><A
596NAME="XMLADDDOCENTITY"
597></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000598>xmlAddDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000599><TABLE
600BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000601BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000602WIDTH="100%"
603CELLPADDING="6"
604><TR
605><TD
606><PRE
607CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000608><A
609HREF="gnome-xml-entities.html#XMLENTITYPTR"
610>xmlEntityPtr</A
611> xmlAddDocEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000612HREF="gnome-xml-tree.html#XMLDOCPTR"
613>xmlDocPtr</A
614> doc,
615 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000616HREF="gnome-xml-tree.html#XMLCHAR"
617>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000618> *name,
619 int type,
620 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000621HREF="gnome-xml-tree.html#XMLCHAR"
622>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000623> *ExternalID,
624 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000625HREF="gnome-xml-tree.html#XMLCHAR"
626>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000627> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000628 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000629HREF="gnome-xml-tree.html#XMLCHAR"
630>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000631> *content);</PRE
632></TD
633></TR
634></TABLE
635><P
636>Register a new entity for this document.</P
637><P
638></P
639><DIV
640CLASS="INFORMALTABLE"
641><P
642></P
643><TABLE
644BORDER="0"
645WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000646BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000647CELLSPACING="0"
648CELLPADDING="4"
649CLASS="CALSTABLE"
650><TR
651><TD
652WIDTH="20%"
653ALIGN="RIGHT"
654VALIGN="TOP"
655><TT
656CLASS="PARAMETER"
657><I
658>doc</I
659></TT
660>&nbsp;:</TD
661><TD
662WIDTH="80%"
663ALIGN="LEFT"
664VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000665> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000666></TR
667><TR
668><TD
669WIDTH="20%"
670ALIGN="RIGHT"
671VALIGN="TOP"
672><TT
673CLASS="PARAMETER"
674><I
675>name</I
676></TT
677>&nbsp;:</TD
678><TD
679WIDTH="80%"
680ALIGN="LEFT"
681VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000682> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000683></TR
684><TR
685><TD
686WIDTH="20%"
687ALIGN="RIGHT"
688VALIGN="TOP"
689><TT
690CLASS="PARAMETER"
691><I
692>type</I
693></TT
694>&nbsp;:</TD
695><TD
696WIDTH="80%"
697ALIGN="LEFT"
698VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000699> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000700></TR
701><TR
702><TD
703WIDTH="20%"
704ALIGN="RIGHT"
705VALIGN="TOP"
706><TT
707CLASS="PARAMETER"
708><I
709>ExternalID</I
710></TT
711>&nbsp;:</TD
712><TD
713WIDTH="80%"
714ALIGN="LEFT"
715VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000716> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000717></TR
718><TR
719><TD
720WIDTH="20%"
721ALIGN="RIGHT"
722VALIGN="TOP"
723><TT
724CLASS="PARAMETER"
725><I
726>SystemID</I
727></TT
728>&nbsp;:</TD
729><TD
730WIDTH="80%"
731ALIGN="LEFT"
732VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000733> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000734></TR
735><TR
736><TD
737WIDTH="20%"
738ALIGN="RIGHT"
739VALIGN="TOP"
740><TT
741CLASS="PARAMETER"
742><I
743>content</I
744></TT
745>&nbsp;:</TD
746><TD
747WIDTH="80%"
748ALIGN="LEFT"
749VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000750> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000751></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000752><TR
753><TD
754WIDTH="20%"
755ALIGN="RIGHT"
756VALIGN="TOP"
757><I
758CLASS="EMPHASIS"
759>Returns</I
760> :</TD
761><TD
762WIDTH="80%"
763ALIGN="LEFT"
764VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000765>a pointer to the entity or NULL in case of error</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000766></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000767></TABLE
768><P
769></P
770></DIV
771></DIV
772><HR><DIV
773CLASS="REFSECT2"
774><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000775NAME="AEN6537"
Daniel Veillard35925471999-02-25 08:46:07 +0000776></A
777><H3
778><A
779NAME="XMLADDDTDENTITY"
780></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000781>xmlAddDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000782><TABLE
783BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000784BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000785WIDTH="100%"
786CELLPADDING="6"
787><TR
788><TD
789><PRE
790CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000791><A
792HREF="gnome-xml-entities.html#XMLENTITYPTR"
793>xmlEntityPtr</A
794> xmlAddDtdEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000795HREF="gnome-xml-tree.html#XMLDOCPTR"
796>xmlDocPtr</A
797> doc,
798 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000799HREF="gnome-xml-tree.html#XMLCHAR"
800>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000801> *name,
802 int type,
803 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000804HREF="gnome-xml-tree.html#XMLCHAR"
805>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000806> *ExternalID,
807 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000808HREF="gnome-xml-tree.html#XMLCHAR"
809>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000810> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000811 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000812HREF="gnome-xml-tree.html#XMLCHAR"
813>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000814> *content);</PRE
815></TD
816></TR
817></TABLE
818><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000819>Register a new entity for this document DTD external subset.</P
Daniel Veillard35925471999-02-25 08:46:07 +0000820><P
821></P
822><DIV
823CLASS="INFORMALTABLE"
824><P
825></P
826><TABLE
827BORDER="0"
828WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000829BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000830CELLSPACING="0"
831CELLPADDING="4"
832CLASS="CALSTABLE"
833><TR
834><TD
835WIDTH="20%"
836ALIGN="RIGHT"
837VALIGN="TOP"
838><TT
839CLASS="PARAMETER"
840><I
841>doc</I
842></TT
843>&nbsp;:</TD
844><TD
845WIDTH="80%"
846ALIGN="LEFT"
847VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000848> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000849></TR
850><TR
851><TD
852WIDTH="20%"
853ALIGN="RIGHT"
854VALIGN="TOP"
855><TT
856CLASS="PARAMETER"
857><I
858>name</I
859></TT
860>&nbsp;:</TD
861><TD
862WIDTH="80%"
863ALIGN="LEFT"
864VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000865> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000866></TR
867><TR
868><TD
869WIDTH="20%"
870ALIGN="RIGHT"
871VALIGN="TOP"
872><TT
873CLASS="PARAMETER"
874><I
875>type</I
876></TT
877>&nbsp;:</TD
878><TD
879WIDTH="80%"
880ALIGN="LEFT"
881VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000882> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000883></TR
884><TR
885><TD
886WIDTH="20%"
887ALIGN="RIGHT"
888VALIGN="TOP"
889><TT
890CLASS="PARAMETER"
891><I
892>ExternalID</I
893></TT
894>&nbsp;:</TD
895><TD
896WIDTH="80%"
897ALIGN="LEFT"
898VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000899> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000900></TR
901><TR
902><TD
903WIDTH="20%"
904ALIGN="RIGHT"
905VALIGN="TOP"
906><TT
907CLASS="PARAMETER"
908><I
909>SystemID</I
910></TT
911>&nbsp;:</TD
912><TD
913WIDTH="80%"
914ALIGN="LEFT"
915VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000916> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000917></TR
918><TR
919><TD
920WIDTH="20%"
921ALIGN="RIGHT"
922VALIGN="TOP"
923><TT
924CLASS="PARAMETER"
925><I
926>content</I
927></TT
928>&nbsp;:</TD
929><TD
930WIDTH="80%"
931ALIGN="LEFT"
932VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000933> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000934></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000935><TR
936><TD
937WIDTH="20%"
938ALIGN="RIGHT"
939VALIGN="TOP"
940><I
941CLASS="EMPHASIS"
942>Returns</I
943> :</TD
944><TD
945WIDTH="80%"
946ALIGN="LEFT"
947VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000948>a pointer to the entity or NULL in case of error</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000949></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000950></TABLE
951><P
952></P
953></DIV
954></DIV
955><HR><DIV
956CLASS="REFSECT2"
957><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000958NAME="AEN6582"
Daniel Veillard35925471999-02-25 08:46:07 +0000959></A
960><H3
961><A
962NAME="XMLGETPREDEFINEDENTITY"
963></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000964>xmlGetPredefinedEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000965><TABLE
966BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000967BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000968WIDTH="100%"
969CELLPADDING="6"
970><TR
971><TD
972><PRE
973CLASS="PROGRAMLISTING"
974><A
975HREF="gnome-xml-entities.html#XMLENTITYPTR"
976>xmlEntityPtr</A
977> xmlGetPredefinedEntity (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000978HREF="gnome-xml-tree.html#XMLCHAR"
979>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000980> *name);</PRE
981></TD
982></TR
983></TABLE
984><P
985>Check whether this name is an predefined entity.</P
986><P
987></P
988><DIV
989CLASS="INFORMALTABLE"
990><P
991></P
992><TABLE
993BORDER="0"
994WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000995BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000996CELLSPACING="0"
997CELLPADDING="4"
998CLASS="CALSTABLE"
999><TR
1000><TD
1001WIDTH="20%"
1002ALIGN="RIGHT"
1003VALIGN="TOP"
1004><TT
1005CLASS="PARAMETER"
1006><I
1007>name</I
1008></TT
1009>&nbsp;:</TD
1010><TD
1011WIDTH="80%"
1012ALIGN="LEFT"
1013VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001014> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001015></TR
1016><TR
1017><TD
1018WIDTH="20%"
1019ALIGN="RIGHT"
1020VALIGN="TOP"
1021><I
1022CLASS="EMPHASIS"
1023>Returns</I
1024> :</TD
1025><TD
1026WIDTH="80%"
1027ALIGN="LEFT"
1028VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001029>NULL if not, othervise the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001030></TR
1031></TABLE
1032><P
1033></P
1034></DIV
1035></DIV
1036><HR><DIV
1037CLASS="REFSECT2"
1038><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001039NAME="AEN6603"
Daniel Veillard35925471999-02-25 08:46:07 +00001040></A
1041><H3
1042><A
1043NAME="XMLGETDOCENTITY"
1044></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001045>xmlGetDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001046><TABLE
1047BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001048BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001049WIDTH="100%"
1050CELLPADDING="6"
1051><TR
1052><TD
1053><PRE
1054CLASS="PROGRAMLISTING"
1055><A
1056HREF="gnome-xml-entities.html#XMLENTITYPTR"
1057>xmlEntityPtr</A
1058> xmlGetDocEntity (<A
1059HREF="gnome-xml-tree.html#XMLDOCPTR"
1060>xmlDocPtr</A
1061> doc,
1062 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001063HREF="gnome-xml-tree.html#XMLCHAR"
1064>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001065> *name);</PRE
1066></TD
1067></TR
1068></TABLE
1069><P
1070>Do an entity lookup in the document entity hash table and
1071returns the corrsponding entity, otherwise a lookup is done
1072in the predefined entities too.</P
1073><P
1074></P
1075><DIV
1076CLASS="INFORMALTABLE"
1077><P
1078></P
1079><TABLE
1080BORDER="0"
1081WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001082BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001083CELLSPACING="0"
1084CELLPADDING="4"
1085CLASS="CALSTABLE"
1086><TR
1087><TD
1088WIDTH="20%"
1089ALIGN="RIGHT"
1090VALIGN="TOP"
1091><TT
1092CLASS="PARAMETER"
1093><I
1094>doc</I
1095></TT
1096>&nbsp;:</TD
1097><TD
1098WIDTH="80%"
1099ALIGN="LEFT"
1100VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001101> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001102></TR
1103><TR
1104><TD
1105WIDTH="20%"
1106ALIGN="RIGHT"
1107VALIGN="TOP"
1108><TT
1109CLASS="PARAMETER"
1110><I
1111>name</I
1112></TT
1113>&nbsp;:</TD
1114><TD
1115WIDTH="80%"
1116ALIGN="LEFT"
1117VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001118> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001119></TR
1120><TR
1121><TD
1122WIDTH="20%"
1123ALIGN="RIGHT"
1124VALIGN="TOP"
1125><I
1126CLASS="EMPHASIS"
1127>Returns</I
1128> :</TD
1129><TD
1130WIDTH="80%"
1131ALIGN="LEFT"
1132VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001133>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001134></TR
1135></TABLE
1136><P
1137></P
1138></DIV
1139></DIV
1140><HR><DIV
1141CLASS="REFSECT2"
1142><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001143NAME="AEN6629"
Daniel Veillard35925471999-02-25 08:46:07 +00001144></A
1145><H3
1146><A
1147NAME="XMLGETDTDENTITY"
1148></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001149>xmlGetDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001150><TABLE
1151BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001152BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001153WIDTH="100%"
1154CELLPADDING="6"
1155><TR
1156><TD
1157><PRE
1158CLASS="PROGRAMLISTING"
1159><A
1160HREF="gnome-xml-entities.html#XMLENTITYPTR"
1161>xmlEntityPtr</A
1162> xmlGetDtdEntity (<A
1163HREF="gnome-xml-tree.html#XMLDOCPTR"
1164>xmlDocPtr</A
1165> doc,
1166 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001167HREF="gnome-xml-tree.html#XMLCHAR"
1168>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001169> *name);</PRE
1170></TD
1171></TR
1172></TABLE
1173><P
1174>Do an entity lookup in the Dtd entity hash table and
1175returns the corresponding entity, if found.</P
1176><P
1177></P
1178><DIV
1179CLASS="INFORMALTABLE"
1180><P
1181></P
1182><TABLE
1183BORDER="0"
1184WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001185BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001186CELLSPACING="0"
1187CELLPADDING="4"
1188CLASS="CALSTABLE"
1189><TR
1190><TD
1191WIDTH="20%"
1192ALIGN="RIGHT"
1193VALIGN="TOP"
1194><TT
1195CLASS="PARAMETER"
1196><I
1197>doc</I
1198></TT
1199>&nbsp;:</TD
1200><TD
1201WIDTH="80%"
1202ALIGN="LEFT"
1203VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001204> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001205></TR
1206><TR
1207><TD
1208WIDTH="20%"
1209ALIGN="RIGHT"
1210VALIGN="TOP"
1211><TT
1212CLASS="PARAMETER"
1213><I
1214>name</I
1215></TT
1216>&nbsp;:</TD
1217><TD
1218WIDTH="80%"
1219ALIGN="LEFT"
1220VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001221> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001222></TR
1223><TR
1224><TD
1225WIDTH="20%"
1226ALIGN="RIGHT"
1227VALIGN="TOP"
1228><I
1229CLASS="EMPHASIS"
1230>Returns</I
1231> :</TD
1232><TD
1233WIDTH="80%"
1234ALIGN="LEFT"
1235VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001236>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001237></TR
1238></TABLE
1239><P
1240></P
1241></DIV
1242></DIV
1243><HR><DIV
1244CLASS="REFSECT2"
1245><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001246NAME="AEN6655"
Daniel Veillardb05deb71999-08-10 19:04:08 +00001247></A
1248><H3
1249><A
1250NAME="XMLGETPARAMETERENTITY"
1251></A
1252>xmlGetParameterEntity ()</H3
1253><TABLE
1254BORDER="0"
1255BGCOLOR="#D6E8FF"
1256WIDTH="100%"
1257CELLPADDING="6"
1258><TR
1259><TD
1260><PRE
1261CLASS="PROGRAMLISTING"
1262><A
1263HREF="gnome-xml-entities.html#XMLENTITYPTR"
1264>xmlEntityPtr</A
1265> xmlGetParameterEntity (<A
1266HREF="gnome-xml-tree.html#XMLDOCPTR"
1267>xmlDocPtr</A
1268> doc,
1269 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001270HREF="gnome-xml-tree.html#XMLCHAR"
1271>xmlChar</A
Daniel Veillardb05deb71999-08-10 19:04:08 +00001272> *name);</PRE
1273></TD
1274></TR
1275></TABLE
1276><P
1277>Do an entity lookup in the internal and external subsets and
1278returns the corresponding parameter entity, if found.</P
1279><P
1280></P
1281><DIV
1282CLASS="INFORMALTABLE"
1283><P
1284></P
1285><TABLE
1286BORDER="0"
1287WIDTH="100%"
1288BGCOLOR="#FFD0D0"
1289CELLSPACING="0"
1290CELLPADDING="4"
1291CLASS="CALSTABLE"
1292><TR
1293><TD
1294WIDTH="20%"
1295ALIGN="RIGHT"
1296VALIGN="TOP"
1297><TT
1298CLASS="PARAMETER"
1299><I
1300>doc</I
1301></TT
1302>&nbsp;:</TD
1303><TD
1304WIDTH="80%"
1305ALIGN="LEFT"
1306VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001307> the document referencing the entity</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001308></TR
1309><TR
1310><TD
1311WIDTH="20%"
1312ALIGN="RIGHT"
1313VALIGN="TOP"
1314><TT
1315CLASS="PARAMETER"
1316><I
1317>name</I
1318></TT
1319>&nbsp;:</TD
1320><TD
1321WIDTH="80%"
1322ALIGN="LEFT"
1323VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001324> the entity name</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001325></TR
1326><TR
1327><TD
1328WIDTH="20%"
1329ALIGN="RIGHT"
1330VALIGN="TOP"
1331><I
1332CLASS="EMPHASIS"
1333>Returns</I
1334> :</TD
1335><TD
1336WIDTH="80%"
1337ALIGN="LEFT"
1338VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001339>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001340></TR
1341></TABLE
1342><P
1343></P
1344></DIV
1345></DIV
1346><HR><DIV
1347CLASS="REFSECT2"
1348><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001349NAME="AEN6681"
Daniel Veillard35925471999-02-25 08:46:07 +00001350></A
1351><H3
1352><A
1353NAME="XMLENCODEENTITIES"
1354></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001355>xmlEncodeEntities ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001356><TABLE
1357BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001358BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001359WIDTH="100%"
1360CELLPADDING="6"
1361><TR
1362><TD
1363><PRE
1364CLASS="PROGRAMLISTING"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001365>const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001366HREF="gnome-xml-tree.html#XMLCHAR"
1367>xmlChar</A
1368>* xmlEncodeEntities (<A
Daniel Veillard35925471999-02-25 08:46:07 +00001369HREF="gnome-xml-tree.html#XMLDOCPTR"
1370>xmlDocPtr</A
1371> doc,
1372 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001373HREF="gnome-xml-tree.html#XMLCHAR"
1374>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001375> *input);</PRE
1376></TD
1377></TR
1378></TABLE
1379><P
1380>Do a global encoding of a string, replacing the predefined entities
1381and non ASCII values with their entities and CharRef counterparts.</P
1382><P
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001383>TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary
1384compatibility</P
Daniel Veillard35925471999-02-25 08:46:07 +00001385><P
Daniel Veillardb05deb71999-08-10 19:04:08 +00001386>People must migrate their code to xmlEncodeEntitiesReentrant !
1387This routine will issue a warning when encountered.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001388><P
1389></P
1390><DIV
1391CLASS="INFORMALTABLE"
1392><P
1393></P
1394><TABLE
1395BORDER="0"
1396WIDTH="100%"
1397BGCOLOR="#FFD0D0"
1398CELLSPACING="0"
1399CELLPADDING="4"
1400CLASS="CALSTABLE"
1401><TR
1402><TD
1403WIDTH="20%"
1404ALIGN="RIGHT"
1405VALIGN="TOP"
1406><TT
1407CLASS="PARAMETER"
1408><I
1409>doc</I
1410></TT
1411>&nbsp;:</TD
1412><TD
1413WIDTH="80%"
1414ALIGN="LEFT"
1415VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001416> the document containing the string</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001417></TR
1418><TR
1419><TD
1420WIDTH="20%"
1421ALIGN="RIGHT"
1422VALIGN="TOP"
1423><TT
1424CLASS="PARAMETER"
1425><I
1426>input</I
1427></TT
1428>&nbsp;:</TD
1429><TD
1430WIDTH="80%"
1431ALIGN="LEFT"
1432VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001433> A string to convert to XML.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001434></TR
1435><TR
1436><TD
1437WIDTH="20%"
1438ALIGN="RIGHT"
1439VALIGN="TOP"
1440><I
1441CLASS="EMPHASIS"
1442>Returns</I
1443> :</TD
1444><TD
1445WIDTH="80%"
1446ALIGN="LEFT"
1447VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001448>A newly allocated string with the substitution done.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001449></TR
1450></TABLE
1451><P
1452></P
1453></DIV
1454></DIV
1455><HR><DIV
1456CLASS="REFSECT2"
1457><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001458NAME="AEN6709"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001459></A
1460><H3
1461><A
1462NAME="XMLENCODEENTITIESREENTRANT"
1463></A
1464>xmlEncodeEntitiesReentrant ()</H3
1465><TABLE
1466BORDER="0"
1467BGCOLOR="#D6E8FF"
1468WIDTH="100%"
1469CELLPADDING="6"
1470><TR
1471><TD
1472><PRE
1473CLASS="PROGRAMLISTING"
1474><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001475HREF="gnome-xml-tree.html#XMLCHAR"
1476>xmlChar</A
1477>* xmlEncodeEntitiesReentrant (<A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001478HREF="gnome-xml-tree.html#XMLDOCPTR"
1479>xmlDocPtr</A
1480> doc,
1481 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001482HREF="gnome-xml-tree.html#XMLCHAR"
1483>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001484> *input);</PRE
1485></TD
1486></TR
1487></TABLE
1488><P
1489>Do a global encoding of a string, replacing the predefined entities
1490and non ASCII values with their entities and CharRef counterparts.
1491Contrary to xmlEncodeEntities, this routine is reentrant, and result
1492must be deallocated.</P
1493><P
1494>TODO !!!! Once moved to UTF-8 internal encoding, the encoding of non-ascii
1495get erroneous.</P
1496><P
Daniel Veillard35925471999-02-25 08:46:07 +00001497></P
1498><DIV
1499CLASS="INFORMALTABLE"
1500><P
1501></P
1502><TABLE
1503BORDER="0"
1504WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001505BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001506CELLSPACING="0"
1507CELLPADDING="4"
1508CLASS="CALSTABLE"
1509><TR
1510><TD
1511WIDTH="20%"
1512ALIGN="RIGHT"
1513VALIGN="TOP"
1514><TT
1515CLASS="PARAMETER"
1516><I
1517>doc</I
1518></TT
1519>&nbsp;:</TD
1520><TD
1521WIDTH="80%"
1522ALIGN="LEFT"
1523VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001524> the document containing the string</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001525></TR
1526><TR
1527><TD
1528WIDTH="20%"
1529ALIGN="RIGHT"
1530VALIGN="TOP"
1531><TT
1532CLASS="PARAMETER"
1533><I
1534>input</I
1535></TT
1536>&nbsp;:</TD
1537><TD
1538WIDTH="80%"
1539ALIGN="LEFT"
1540VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001541> A string to convert to XML.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001542></TR
1543><TR
1544><TD
1545WIDTH="20%"
1546ALIGN="RIGHT"
1547VALIGN="TOP"
1548><I
1549CLASS="EMPHASIS"
1550>Returns</I
1551> :</TD
1552><TD
1553WIDTH="80%"
1554ALIGN="LEFT"
1555VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001556>A newly allocated string with the substitution done.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001557></TR
1558></TABLE
1559><P
1560></P
1561></DIV
1562></DIV
1563><HR><DIV
1564CLASS="REFSECT2"
1565><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001566NAME="AEN6736"
1567></A
1568><H3
1569><A
1570NAME="XMLENCODESPECIALCHARS"
1571></A
1572>xmlEncodeSpecialChars ()</H3
1573><TABLE
1574BORDER="0"
1575BGCOLOR="#D6E8FF"
1576WIDTH="100%"
1577CELLPADDING="6"
1578><TR
1579><TD
1580><PRE
1581CLASS="PROGRAMLISTING"
1582><A
1583HREF="gnome-xml-tree.html#XMLCHAR"
1584>xmlChar</A
1585>* xmlEncodeSpecialChars (<A
1586HREF="gnome-xml-tree.html#XMLDOCPTR"
1587>xmlDocPtr</A
1588> doc,
1589 const <A
1590HREF="gnome-xml-tree.html#XMLCHAR"
1591>xmlChar</A
1592> *input);</PRE
1593></TD
1594></TR
1595></TABLE
1596><P
1597>Do a global encoding of a string, replacing the predefined entities
1598this routine is reentrant, and result must be deallocated.</P
1599><P
1600></P
1601><DIV
1602CLASS="INFORMALTABLE"
1603><P
1604></P
1605><TABLE
1606BORDER="0"
1607WIDTH="100%"
1608BGCOLOR="#FFD0D0"
1609CELLSPACING="0"
1610CELLPADDING="4"
1611CLASS="CALSTABLE"
1612><TR
1613><TD
1614WIDTH="20%"
1615ALIGN="RIGHT"
1616VALIGN="TOP"
1617><TT
1618CLASS="PARAMETER"
1619><I
1620>doc</I
1621></TT
1622>&nbsp;:</TD
1623><TD
1624WIDTH="80%"
1625ALIGN="LEFT"
1626VALIGN="TOP"
1627> the document containing the string</TD
1628></TR
1629><TR
1630><TD
1631WIDTH="20%"
1632ALIGN="RIGHT"
1633VALIGN="TOP"
1634><TT
1635CLASS="PARAMETER"
1636><I
1637>input</I
1638></TT
1639>&nbsp;:</TD
1640><TD
1641WIDTH="80%"
1642ALIGN="LEFT"
1643VALIGN="TOP"
1644> A string to convert to XML.</TD
1645></TR
1646><TR
1647><TD
1648WIDTH="20%"
1649ALIGN="RIGHT"
1650VALIGN="TOP"
1651><I
1652CLASS="EMPHASIS"
1653>Returns</I
1654> :</TD
1655><TD
1656WIDTH="80%"
1657ALIGN="LEFT"
1658VALIGN="TOP"
1659>A newly allocated string with the substitution done.</TD
1660></TR
1661></TABLE
1662><P
1663></P
1664></DIV
1665></DIV
1666><HR><DIV
1667CLASS="REFSECT2"
1668><A
1669NAME="AEN6762"
Daniel Veillard35925471999-02-25 08:46:07 +00001670></A
1671><H3
1672><A
1673NAME="XMLCREATEENTITIESTABLE"
1674></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001675>xmlCreateEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001676><TABLE
1677BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001678BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001679WIDTH="100%"
1680CELLPADDING="6"
1681><TR
1682><TD
1683><PRE
1684CLASS="PROGRAMLISTING"
1685><A
1686HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1687>xmlEntitiesTablePtr</A
1688> xmlCreateEntitiesTable (void);</PRE
1689></TD
1690></TR
1691></TABLE
1692><P
1693>create and initialize an empty entities hash table.</P
1694><P
1695></P
1696><DIV
1697CLASS="INFORMALTABLE"
1698><P
1699></P
1700><TABLE
1701BORDER="0"
1702WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001703BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001704CELLSPACING="0"
1705CELLPADDING="4"
1706CLASS="CALSTABLE"
1707><TR
1708><TD
1709WIDTH="20%"
1710ALIGN="RIGHT"
1711VALIGN="TOP"
1712><I
1713CLASS="EMPHASIS"
1714>Returns</I
1715> :</TD
1716><TD
1717WIDTH="80%"
1718ALIGN="LEFT"
1719VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001720>the xmlEntitiesTablePtr just created or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001721></TR
1722></TABLE
1723><P
1724></P
1725></DIV
1726></DIV
1727><HR><DIV
1728CLASS="REFSECT2"
1729><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001730NAME="AEN6778"
Daniel Veillard35925471999-02-25 08:46:07 +00001731></A
1732><H3
1733><A
1734NAME="XMLCOPYENTITIESTABLE"
1735></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001736>xmlCopyEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001737><TABLE
1738BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001739BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001740WIDTH="100%"
1741CELLPADDING="6"
1742><TR
1743><TD
1744><PRE
1745CLASS="PROGRAMLISTING"
1746><A
1747HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1748>xmlEntitiesTablePtr</A
1749> xmlCopyEntitiesTable (<A
1750HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1751>xmlEntitiesTablePtr</A
1752> table);</PRE
1753></TD
1754></TR
1755></TABLE
1756><P
1757>Build a copy of an entity table.</P
1758><P
1759></P
1760><DIV
1761CLASS="INFORMALTABLE"
1762><P
1763></P
1764><TABLE
1765BORDER="0"
1766WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001767BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001768CELLSPACING="0"
1769CELLPADDING="4"
1770CLASS="CALSTABLE"
1771><TR
1772><TD
1773WIDTH="20%"
1774ALIGN="RIGHT"
1775VALIGN="TOP"
1776><TT
1777CLASS="PARAMETER"
1778><I
1779>table</I
1780></TT
1781>&nbsp;:</TD
1782><TD
1783WIDTH="80%"
1784ALIGN="LEFT"
1785VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001786> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001787></TR
1788><TR
1789><TD
1790WIDTH="20%"
1791ALIGN="RIGHT"
1792VALIGN="TOP"
1793><I
1794CLASS="EMPHASIS"
1795>Returns</I
1796> :</TD
1797><TD
1798WIDTH="80%"
1799ALIGN="LEFT"
1800VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001801>the new xmlEntitiesTablePtr or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001802></TR
1803></TABLE
1804><P
1805></P
1806></DIV
1807></DIV
1808><HR><DIV
1809CLASS="REFSECT2"
1810><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001811NAME="AEN6799"
Daniel Veillard35925471999-02-25 08:46:07 +00001812></A
1813><H3
1814><A
1815NAME="XMLFREEENTITIESTABLE"
1816></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001817>xmlFreeEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001818><TABLE
1819BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001820BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001821WIDTH="100%"
1822CELLPADDING="6"
1823><TR
1824><TD
1825><PRE
1826CLASS="PROGRAMLISTING"
1827>void xmlFreeEntitiesTable (<A
1828HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1829>xmlEntitiesTablePtr</A
1830> table);</PRE
1831></TD
1832></TR
1833></TABLE
1834><P
1835>Deallocate the memory used by an entities hash table.</P
1836><P
1837></P
1838><DIV
1839CLASS="INFORMALTABLE"
1840><P
1841></P
1842><TABLE
1843BORDER="0"
1844WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001845BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001846CELLSPACING="0"
1847CELLPADDING="4"
1848CLASS="CALSTABLE"
1849><TR
1850><TD
1851WIDTH="20%"
1852ALIGN="RIGHT"
1853VALIGN="TOP"
1854><TT
1855CLASS="PARAMETER"
1856><I
1857>table</I
1858></TT
1859>&nbsp;:</TD
1860><TD
1861WIDTH="80%"
1862ALIGN="LEFT"
1863VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001864> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001865></TR
1866></TABLE
1867><P
1868></P
1869></DIV
1870></DIV
1871><HR><DIV
1872CLASS="REFSECT2"
1873><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001874NAME="AEN6815"
Daniel Veillard35925471999-02-25 08:46:07 +00001875></A
1876><H3
1877><A
1878NAME="XMLDUMPENTITIESTABLE"
1879></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001880>xmlDumpEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001881><TABLE
1882BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001883BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001884WIDTH="100%"
1885CELLPADDING="6"
1886><TR
1887><TD
1888><PRE
1889CLASS="PROGRAMLISTING"
1890>void xmlDumpEntitiesTable (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +00001891HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1892>xmlBufferPtr</A
1893> buf,
1894 <A
Daniel Veillard35925471999-02-25 08:46:07 +00001895HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1896>xmlEntitiesTablePtr</A
1897> table);</PRE
1898></TD
1899></TR
1900></TABLE
1901><P
1902>This will dump the content of the entity table as an XML DTD definition</P
1903><P
Daniel Veillard35925471999-02-25 08:46:07 +00001904></P
1905><DIV
1906CLASS="INFORMALTABLE"
1907><P
1908></P
1909><TABLE
1910BORDER="0"
1911WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001912BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001913CELLSPACING="0"
1914CELLPADDING="4"
1915CLASS="CALSTABLE"
1916><TR
1917><TD
1918WIDTH="20%"
1919ALIGN="RIGHT"
1920VALIGN="TOP"
1921><TT
1922CLASS="PARAMETER"
1923><I
Daniel Veillard5099ae81999-04-21 20:12:07 +00001924>buf</I
1925></TT
1926>&nbsp;:</TD
1927><TD
1928WIDTH="80%"
1929ALIGN="LEFT"
1930VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001931> An XML buffer.</TD
Daniel Veillard5099ae81999-04-21 20:12:07 +00001932></TR
1933><TR
1934><TD
1935WIDTH="20%"
1936ALIGN="RIGHT"
1937VALIGN="TOP"
1938><TT
1939CLASS="PARAMETER"
1940><I
Daniel Veillard35925471999-02-25 08:46:07 +00001941>table</I
1942></TT
1943>&nbsp;:</TD
1944><TD
1945WIDTH="80%"
1946ALIGN="LEFT"
1947VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001948> An entity table</TD
1949></TR
1950></TABLE
1951><P
1952></P
1953></DIV
1954></DIV
1955><HR><DIV
1956CLASS="REFSECT2"
1957><A
1958NAME="AEN6836"
1959></A
1960><H3
1961><A
1962NAME="XMLDUMPENTITYDECL"
1963></A
1964>xmlDumpEntityDecl ()</H3
1965><TABLE
1966BORDER="0"
1967BGCOLOR="#D6E8FF"
1968WIDTH="100%"
1969CELLPADDING="6"
1970><TR
1971><TD
1972><PRE
1973CLASS="PROGRAMLISTING"
1974>void xmlDumpEntityDecl (<A
1975HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1976>xmlBufferPtr</A
1977> buf,
1978 <A
1979HREF="gnome-xml-entities.html#XMLENTITYPTR"
1980>xmlEntityPtr</A
1981> ent);</PRE
1982></TD
1983></TR
1984></TABLE
1985><P
1986>This will dump the content of the entity table as an XML DTD definition</P
1987><P
1988></P
1989><DIV
1990CLASS="INFORMALTABLE"
1991><P
1992></P
1993><TABLE
1994BORDER="0"
1995WIDTH="100%"
1996BGCOLOR="#FFD0D0"
1997CELLSPACING="0"
1998CELLPADDING="4"
1999CLASS="CALSTABLE"
2000><TR
2001><TD
2002WIDTH="20%"
2003ALIGN="RIGHT"
2004VALIGN="TOP"
2005><TT
2006CLASS="PARAMETER"
2007><I
2008>buf</I
2009></TT
2010>&nbsp;:</TD
2011><TD
2012WIDTH="80%"
2013ALIGN="LEFT"
2014VALIGN="TOP"
2015> An XML buffer.</TD
2016></TR
2017><TR
2018><TD
2019WIDTH="20%"
2020ALIGN="RIGHT"
2021VALIGN="TOP"
2022><TT
2023CLASS="PARAMETER"
2024><I
2025>ent</I
2026></TT
2027>&nbsp;:</TD
2028><TD
2029WIDTH="80%"
2030ALIGN="LEFT"
2031VALIGN="TOP"
2032> An entity table</TD
2033></TR
2034></TABLE
2035><P
2036></P
2037></DIV
2038></DIV
2039><HR><DIV
2040CLASS="REFSECT2"
2041><A
2042NAME="AEN6857"
2043></A
2044><H3
2045><A
2046NAME="XMLCLEANUPPREDEFINEDENTITIES"
2047></A
2048>xmlCleanupPredefinedEntities ()</H3
2049><TABLE
2050BORDER="0"
2051BGCOLOR="#D6E8FF"
2052WIDTH="100%"
2053CELLPADDING="6"
2054><TR
2055><TD
2056><PRE
2057CLASS="PROGRAMLISTING"
2058>void xmlCleanupPredefinedEntities (void);</PRE
2059></TD
2060></TR
2061></TABLE
2062><P
2063>Cleanup up the predefined entities table.</P
2064><P
2065></P
2066></DIV
2067><HR><DIV
2068CLASS="REFSECT2"
2069><A
2070NAME="AEN6863"
2071></A
2072><H3
2073><A
2074NAME="XMLENTITYADDREFERENCE"
2075></A
2076>xmlEntityAddReference ()</H3
2077><TABLE
2078BORDER="0"
2079BGCOLOR="#D6E8FF"
2080WIDTH="100%"
2081CELLPADDING="6"
2082><TR
2083><TD
2084><PRE
2085CLASS="PROGRAMLISTING"
2086>int xmlEntityAddReference (<A
2087HREF="gnome-xml-entities.html#XMLENTITYPTR"
2088>xmlEntityPtr</A
2089> ent,
2090 const <A
2091HREF="gnome-xml-tree.html#XMLCHAR"
2092>xmlChar</A
2093> *to);</PRE
2094></TD
2095></TR
2096></TABLE
2097><P
2098>Function to register reuse of an existing entity from a (new) one
2099Used to keep track of references and detect cycles (well formedness
2100errors !).</P
2101><P
2102></P
2103><DIV
2104CLASS="INFORMALTABLE"
2105><P
2106></P
2107><TABLE
2108BORDER="0"
2109WIDTH="100%"
2110BGCOLOR="#FFD0D0"
2111CELLSPACING="0"
2112CELLPADDING="4"
2113CLASS="CALSTABLE"
2114><TR
2115><TD
2116WIDTH="20%"
2117ALIGN="RIGHT"
2118VALIGN="TOP"
2119><TT
2120CLASS="PARAMETER"
2121><I
2122>ent</I
2123></TT
2124>&nbsp;:</TD
2125><TD
2126WIDTH="80%"
2127ALIGN="LEFT"
2128VALIGN="TOP"
2129> an existing entity</TD
2130></TR
2131><TR
2132><TD
2133WIDTH="20%"
2134ALIGN="RIGHT"
2135VALIGN="TOP"
2136><TT
2137CLASS="PARAMETER"
2138><I
2139>to</I
2140></TT
2141>&nbsp;:</TD
2142><TD
2143WIDTH="80%"
2144ALIGN="LEFT"
2145VALIGN="TOP"
2146> the entity name it's referencing</TD
2147></TR
2148><TR
2149><TD
2150WIDTH="20%"
2151ALIGN="RIGHT"
2152VALIGN="TOP"
2153><I
2154CLASS="EMPHASIS"
2155>Returns</I
2156> :</TD
2157><TD
2158WIDTH="80%"
2159ALIGN="LEFT"
2160VALIGN="TOP"
2161> 0 if Okay, -1 in case of general error, 1 in case of loop
2162detection.</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +00002163></TR
2164></TABLE
2165><P
2166></P
2167></DIV
2168></DIV
Daniel Veillard35925471999-02-25 08:46:07 +00002169></DIV
2170><DIV
2171CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002172><BR
2173CLEAR="all"><BR><TABLE
Daniel Veillard35925471999-02-25 08:46:07 +00002174WIDTH="100%"
2175BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00002176BGCOLOR="#000000"
2177CELLPADDING="1"
Daniel Veillard35925471999-02-25 08:46:07 +00002178CELLSPACING="0"
2179><TR
2180><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002181WIDTH="25%"
2182BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002183ALIGN="left"
Daniel Veillard35925471999-02-25 08:46:07 +00002184><A
2185HREF="gnome-xml-tree.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002186><FONT
2187COLOR="#FFFFFF"
2188SIZE="3"
2189><B
2190>&#60;&#60;&#60; Previous Page</B
2191></FONT
2192></A
Daniel Veillard35925471999-02-25 08:46:07 +00002193></TD
2194><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002195WIDTH="25%"
2196BGCOLOR="#0000C0"
Daniel Veillard35925471999-02-25 08:46:07 +00002197ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +00002198><FONT
2199COLOR="#FFFFFF"
2200SIZE="3"
2201><B
Daniel Veillard35925471999-02-25 08:46:07 +00002202><A
2203HREF="book1.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002204><FONT
2205COLOR="#FFFFFF"
2206SIZE="3"
2207><B
2208>Home</B
2209></FONT
2210></A
2211></B
2212></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002213></TD
2214><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002215WIDTH="25%"
2216BGCOLOR="#00C000"
2217ALIGN="center"
2218><FONT
2219COLOR="#FFFFFF"
2220SIZE="3"
2221><B
2222><A
Daniel Veillard35008381999-10-25 13:15:52 +00002223HREF="libxml-lib.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002224><FONT
2225COLOR="#FFFFFF"
2226SIZE="3"
2227><B
2228>Up</B
2229></FONT
2230></A
2231></B
2232></FONT
2233></TD
2234><TD
2235WIDTH="25%"
2236BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002237ALIGN="right"
Daniel Veillard35925471999-02-25 08:46:07 +00002238><A
2239HREF="gnome-xml-valid.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002240><FONT
2241COLOR="#FFFFFF"
2242SIZE="3"
2243><B
2244>Next Page &#62;&#62;&#62;</B
2245></FONT
2246></A
Daniel Veillard35925471999-02-25 08:46:07 +00002247></TD
2248></TR
2249><TR
2250><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002251COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002252ALIGN="left"
Daniel Veillard14fff061999-06-22 21:49:07 +00002253><FONT
2254COLOR="#FFFFFF"
2255SIZE="3"
2256><B
2257>tree</B
2258></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002259></TD
2260><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002261COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002262ALIGN="right"
Daniel Veillard14fff061999-06-22 21:49:07 +00002263><FONT
2264COLOR="#FFFFFF"
2265SIZE="3"
2266><B
2267>valid</B
2268></FONT
2269></TD
Daniel Veillard35925471999-02-25 08:46:07 +00002270></TR
2271></TABLE
2272></DIV
2273></BODY
2274></HTML
2275>