blob: df39d26454b9279258ec7618ecb5ef82cc5675e5 [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 Veillard3bff2b02000-10-01 20:33:47 +0000118NAME="AEN6862"
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 Veillard3bff2b02000-10-01 20:33:47 +0000126NAME="AEN6865"
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 Veillard3bff2b02000-10-01 20:33:47 +0000165void <A
166HREF="gnome-xml-entities.html#XMLINITIALIZEPREDEFINEDENTITIES"
167>xmlInitializePredefinedEntities</A
168> (void);
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000169<A
170HREF="gnome-xml-entities.html#XMLENTITYPTR"
171>xmlEntityPtr</A
172> <A
Daniel Veillard35925471999-02-25 08:46:07 +0000173HREF="gnome-xml-entities.html#XMLADDDOCENTITY"
174>xmlAddDocEntity</A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000175> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000176HREF="gnome-xml-tree.html#XMLDOCPTR"
177>xmlDocPtr</A
178> doc,
179 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000180HREF="gnome-xml-tree.html#XMLCHAR"
181>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000182> *name,
183 int type,
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> *ExternalID,
188 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> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000192 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000193HREF="gnome-xml-tree.html#XMLCHAR"
194>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000195> *content);
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000196<A
197HREF="gnome-xml-entities.html#XMLENTITYPTR"
198>xmlEntityPtr</A
199> <A
Daniel Veillard35925471999-02-25 08:46:07 +0000200HREF="gnome-xml-entities.html#XMLADDDTDENTITY"
201>xmlAddDtdEntity</A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000202> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000203HREF="gnome-xml-tree.html#XMLDOCPTR"
204>xmlDocPtr</A
205> doc,
206 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000207HREF="gnome-xml-tree.html#XMLCHAR"
208>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000209> *name,
210 int type,
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> *ExternalID,
215 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> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000219 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000220HREF="gnome-xml-tree.html#XMLCHAR"
221>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000222> *content);
223<A
224HREF="gnome-xml-entities.html#XMLENTITYPTR"
225>xmlEntityPtr</A
226> <A
227HREF="gnome-xml-entities.html#XMLGETPREDEFINEDENTITY"
228>xmlGetPredefinedEntity</A
229> (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000230HREF="gnome-xml-tree.html#XMLCHAR"
231>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000232> *name);
233<A
234HREF="gnome-xml-entities.html#XMLENTITYPTR"
235>xmlEntityPtr</A
236> <A
237HREF="gnome-xml-entities.html#XMLGETDOCENTITY"
238>xmlGetDocEntity</A
239> (<A
240HREF="gnome-xml-tree.html#XMLDOCPTR"
241>xmlDocPtr</A
242> doc,
243 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000244HREF="gnome-xml-tree.html#XMLCHAR"
245>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000246> *name);
247<A
248HREF="gnome-xml-entities.html#XMLENTITYPTR"
249>xmlEntityPtr</A
250> <A
251HREF="gnome-xml-entities.html#XMLGETDTDENTITY"
252>xmlGetDtdEntity</A
253> (<A
254HREF="gnome-xml-tree.html#XMLDOCPTR"
255>xmlDocPtr</A
256> doc,
257 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000258HREF="gnome-xml-tree.html#XMLCHAR"
259>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000260> *name);
Daniel Veillardb05deb71999-08-10 19:04:08 +0000261<A
262HREF="gnome-xml-entities.html#XMLENTITYPTR"
263>xmlEntityPtr</A
264> <A
265HREF="gnome-xml-entities.html#XMLGETPARAMETERENTITY"
266>xmlGetParameterEntity</A
267> (<A
268HREF="gnome-xml-tree.html#XMLDOCPTR"
269>xmlDocPtr</A
270> doc,
271 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000272HREF="gnome-xml-tree.html#XMLCHAR"
273>xmlChar</A
Daniel Veillardb05deb71999-08-10 19:04:08 +0000274> *name);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000275const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000276HREF="gnome-xml-tree.html#XMLCHAR"
277>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000278>* <A
279HREF="gnome-xml-entities.html#XMLENCODEENTITIES"
280>xmlEncodeEntities</A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000281> (<A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000282HREF="gnome-xml-tree.html#XMLDOCPTR"
283>xmlDocPtr</A
284> doc,
285 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000286HREF="gnome-xml-tree.html#XMLCHAR"
287>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000288> *input);
Daniel Veillard35925471999-02-25 08:46:07 +0000289<A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000290HREF="gnome-xml-tree.html#XMLCHAR"
291>xmlChar</A
292>* <A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000293HREF="gnome-xml-entities.html#XMLENCODEENTITIESREENTRANT"
294>xmlEncodeEntitiesReentrant</A
295> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000296HREF="gnome-xml-tree.html#XMLDOCPTR"
297>xmlDocPtr</A
298> doc,
299 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000300HREF="gnome-xml-tree.html#XMLCHAR"
301>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000302> *input);
303<A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000304HREF="gnome-xml-tree.html#XMLCHAR"
305>xmlChar</A
306>* <A
307HREF="gnome-xml-entities.html#XMLENCODESPECIALCHARS"
308>xmlEncodeSpecialChars</A
309> (<A
310HREF="gnome-xml-tree.html#XMLDOCPTR"
311>xmlDocPtr</A
312> doc,
313 const <A
314HREF="gnome-xml-tree.html#XMLCHAR"
315>xmlChar</A
316> *input);
317<A
Daniel Veillard35925471999-02-25 08:46:07 +0000318HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
319>xmlEntitiesTablePtr</A
320> <A
321HREF="gnome-xml-entities.html#XMLCREATEENTITIESTABLE"
322>xmlCreateEntitiesTable</A
323> (void);
324<A
325HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
326>xmlEntitiesTablePtr</A
327> <A
328HREF="gnome-xml-entities.html#XMLCOPYENTITIESTABLE"
329>xmlCopyEntitiesTable</A
330> (<A
331HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
332>xmlEntitiesTablePtr</A
333> table);
334void <A
335HREF="gnome-xml-entities.html#XMLFREEENTITIESTABLE"
336>xmlFreeEntitiesTable</A
337> (<A
338HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
339>xmlEntitiesTablePtr</A
340> table);
341void <A
342HREF="gnome-xml-entities.html#XMLDUMPENTITIESTABLE"
343>xmlDumpEntitiesTable</A
344> (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +0000345HREF="gnome-xml-tree.html#XMLBUFFERPTR"
346>xmlBufferPtr</A
347> buf,
348 <A
Daniel Veillard35925471999-02-25 08:46:07 +0000349HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
350>xmlEntitiesTablePtr</A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000351> table);
352void <A
353HREF="gnome-xml-entities.html#XMLDUMPENTITYDECL"
354>xmlDumpEntityDecl</A
355> (<A
356HREF="gnome-xml-tree.html#XMLBUFFERPTR"
357>xmlBufferPtr</A
358> buf,
359 <A
360HREF="gnome-xml-entities.html#XMLENTITYPTR"
361>xmlEntityPtr</A
362> ent);
363void <A
364HREF="gnome-xml-entities.html#XMLCLEANUPPREDEFINEDENTITIES"
365>xmlCleanupPredefinedEntities</A
366> (void);
367int <A
368HREF="gnome-xml-entities.html#XMLENTITYADDREFERENCE"
369>xmlEntityAddReference</A
370> (<A
371HREF="gnome-xml-entities.html#XMLENTITYPTR"
372>xmlEntityPtr</A
373> ent,
374 const <A
375HREF="gnome-xml-tree.html#XMLCHAR"
376>xmlChar</A
377> *to);</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000378></TD
379></TR
380></TABLE
381></DIV
382><DIV
383CLASS="REFSECT1"
384><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000385NAME="AEN6933"
Daniel Veillard35925471999-02-25 08:46:07 +0000386></A
387><H2
388>Description</H2
389><P
390></P
391></DIV
392><DIV
393CLASS="REFSECT1"
394><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000395NAME="AEN6936"
Daniel Veillard35925471999-02-25 08:46:07 +0000396></A
397><H2
398>Details</H2
Daniel Veillard14fff061999-06-22 21:49:07 +0000399><DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000400CLASS="REFSECT2"
401><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000402NAME="AEN6938"
Daniel Veillard35925471999-02-25 08:46:07 +0000403></A
404><H3
405><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000406NAME="XMLENTITYTYPE"
Daniel Veillard35925471999-02-25 08:46:07 +0000407></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000408>enum xmlEntityType</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000409><TABLE
410BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000411BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000412WIDTH="100%"
413CELLPADDING="6"
414><TR
415><TD
416><PRE
417CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000418>typedef enum {
419 XML_INTERNAL_GENERAL_ENTITY = 1,
420 XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2,
421 XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3,
422 XML_INTERNAL_PARAMETER_ENTITY = 4,
423 XML_EXTERNAL_PARAMETER_ENTITY = 5,
424 XML_INTERNAL_PREDEFINED_ENTITY = 6
425} xmlEntityType;</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000426></TD
427></TR
428></TABLE
429><P
430></P
431></DIV
432><HR><DIV
433CLASS="REFSECT2"
434><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000435NAME="AEN6943"
Daniel Veillard35925471999-02-25 08:46:07 +0000436></A
437><H3
438><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000439NAME="XMLENTITY"
Daniel Veillard35925471999-02-25 08:46:07 +0000440></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000441>struct xmlEntity</H3
Daniel Veillardf3a73582000-01-05 14:58:39 +0000442><TABLE
443BORDER="0"
444BGCOLOR="#D6E8FF"
445WIDTH="100%"
446CELLPADDING="6"
447><TR
448><TD
449><PRE
450CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000451>struct xmlEntity {
452#ifndef XML_WITHOUT_CORBA
453 void *_private; /* for Corba, must be first ! */
454#endif
455 xmlElementType type; /* XML_ENTITY_DECL, must be second ! */
456 const xmlChar *name; /* Attribute name */
457 struct _xmlNode *children; /* NULL */
458 struct _xmlNode *last; /* NULL */
459 struct _xmlDtd *parent; /* -&gt; DTD */
460 struct _xmlNode *next; /* next sibling link */
461 struct _xmlNode *prev; /* previous sibling link */
462 struct _xmlDoc *doc; /* the containing document */
463
464 xmlChar *orig; /* content without ref substitution */
465 xmlChar *content; /* content or ndata if unparsed */
466 int length; /* the content length */
467 xmlEntityType etype; /* The entity type */
468 const xmlChar *ExternalID; /* External identifier for PUBLIC */
469 const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC Entity */
470
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000471 struct _xmlEntity *nexte; /* next entity in the hash table */
472 const xmlChar *URI; /* the full URI as computed */
473
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000474#ifdef WITH_EXTRA_ENT_DETECT
475 /* Referenced entities name stack */
476 xmlChar *ent; /* Current parsed Node */
477 int entNr; /* Depth of the parsing stack */
478 int entMax; /* Max depth of the parsing stack */
479 xmlChar * *entTab; /* array of nodes */
480#endif
481};</PRE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000482></TD
483></TR
484></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000485><P
486></P
487></DIV
488><HR><DIV
489CLASS="REFSECT2"
490><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000491NAME="AEN6948"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000492></A
493><H3
494><A
495NAME="XMLENTITYPTR"
496></A
497>xmlEntityPtr</H3
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000498><TABLE
499BORDER="0"
500BGCOLOR="#D6E8FF"
501WIDTH="100%"
502CELLPADDING="6"
503><TR
504><TD
505><PRE
506CLASS="PROGRAMLISTING"
507>typedef xmlEntity *xmlEntityPtr;</PRE
508></TD
509></TR
510></TABLE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000511><P
512></P
513></DIV
514><HR><DIV
515CLASS="REFSECT2"
516><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000517NAME="AEN6953"
Daniel Veillard35925471999-02-25 08:46:07 +0000518></A
519><H3
520><A
521NAME="XML-MIN-ENTITIES-TABLE"
522></A
523>XML_MIN_ENTITIES_TABLE</H3
524><TABLE
525BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000526BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000527WIDTH="100%"
528CELLPADDING="6"
529><TR
530><TD
531><PRE
532CLASS="PROGRAMLISTING"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000533>#define XML_MIN_ENTITIES_TABLE 32</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000534></TD
535></TR
536></TABLE
537><P
538></P
539></DIV
540><HR><DIV
541CLASS="REFSECT2"
542><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000543NAME="AEN6958"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000544></A
545><H3
546><A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000547NAME="XMLENTITIESTABLE"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000548></A
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000549>struct xmlEntitiesTable</H3
550><TABLE
551BORDER="0"
552BGCOLOR="#D6E8FF"
553WIDTH="100%"
554CELLPADDING="6"
555><TR
556><TD
557><PRE
558CLASS="PROGRAMLISTING"
559>struct xmlEntitiesTable {
560 int nb_entities; /* number of elements stored */
561 int max_entities; /* maximum number of elements */
562 xmlEntityPtr *table; /* the table of entities */
563};</PRE
564></TD
565></TR
566></TABLE
Daniel Veillardf3a73582000-01-05 14:58:39 +0000567><P
568></P
569></DIV
570><HR><DIV
571CLASS="REFSECT2"
572><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000573NAME="AEN6963"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000574></A
575><H3
576><A
577NAME="XMLENTITIESTABLEPTR"
578></A
579>xmlEntitiesTablePtr</H3
580><TABLE
581BORDER="0"
582BGCOLOR="#D6E8FF"
583WIDTH="100%"
584CELLPADDING="6"
585><TR
586><TD
587><PRE
588CLASS="PROGRAMLISTING"
589>typedef xmlEntitiesTable *xmlEntitiesTablePtr;</PRE
590></TD
591></TR
592></TABLE
593><P
594></P
595></DIV
596><HR><DIV
597CLASS="REFSECT2"
598><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000599NAME="AEN6968"
600></A
601><H3
602><A
603NAME="XMLINITIALIZEPREDEFINEDENTITIES"
604></A
605>xmlInitializePredefinedEntities ()</H3
606><TABLE
607BORDER="0"
608BGCOLOR="#D6E8FF"
609WIDTH="100%"
610CELLPADDING="6"
611><TR
612><TD
613><PRE
614CLASS="PROGRAMLISTING"
615>void xmlInitializePredefinedEntities (void);</PRE
616></TD
617></TR
618></TABLE
619><P
620>Set up the predefined entities.</P
621><P
622></P
623></DIV
624><HR><DIV
625CLASS="REFSECT2"
626><A
627NAME="AEN6974"
Daniel Veillard35925471999-02-25 08:46:07 +0000628></A
629><H3
630><A
631NAME="XMLADDDOCENTITY"
632></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000633>xmlAddDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000634><TABLE
635BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000636BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000637WIDTH="100%"
638CELLPADDING="6"
639><TR
640><TD
641><PRE
642CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000643><A
644HREF="gnome-xml-entities.html#XMLENTITYPTR"
645>xmlEntityPtr</A
646> xmlAddDocEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000647HREF="gnome-xml-tree.html#XMLDOCPTR"
648>xmlDocPtr</A
649> doc,
650 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000651HREF="gnome-xml-tree.html#XMLCHAR"
652>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000653> *name,
654 int type,
655 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000656HREF="gnome-xml-tree.html#XMLCHAR"
657>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000658> *ExternalID,
659 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000660HREF="gnome-xml-tree.html#XMLCHAR"
661>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000662> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000663 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000664HREF="gnome-xml-tree.html#XMLCHAR"
665>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000666> *content);</PRE
667></TD
668></TR
669></TABLE
670><P
671>Register a new entity for this document.</P
672><P
673></P
674><DIV
675CLASS="INFORMALTABLE"
676><P
677></P
678><TABLE
679BORDER="0"
680WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000681BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000682CELLSPACING="0"
683CELLPADDING="4"
684CLASS="CALSTABLE"
685><TR
686><TD
687WIDTH="20%"
688ALIGN="RIGHT"
689VALIGN="TOP"
690><TT
691CLASS="PARAMETER"
692><I
693>doc</I
694></TT
695>&nbsp;:</TD
696><TD
697WIDTH="80%"
698ALIGN="LEFT"
699VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000700> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000701></TR
702><TR
703><TD
704WIDTH="20%"
705ALIGN="RIGHT"
706VALIGN="TOP"
707><TT
708CLASS="PARAMETER"
709><I
710>name</I
711></TT
712>&nbsp;:</TD
713><TD
714WIDTH="80%"
715ALIGN="LEFT"
716VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000717> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000718></TR
719><TR
720><TD
721WIDTH="20%"
722ALIGN="RIGHT"
723VALIGN="TOP"
724><TT
725CLASS="PARAMETER"
726><I
727>type</I
728></TT
729>&nbsp;:</TD
730><TD
731WIDTH="80%"
732ALIGN="LEFT"
733VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000734> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000735></TR
736><TR
737><TD
738WIDTH="20%"
739ALIGN="RIGHT"
740VALIGN="TOP"
741><TT
742CLASS="PARAMETER"
743><I
744>ExternalID</I
745></TT
746>&nbsp;:</TD
747><TD
748WIDTH="80%"
749ALIGN="LEFT"
750VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000751> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000752></TR
753><TR
754><TD
755WIDTH="20%"
756ALIGN="RIGHT"
757VALIGN="TOP"
758><TT
759CLASS="PARAMETER"
760><I
761>SystemID</I
762></TT
763>&nbsp;:</TD
764><TD
765WIDTH="80%"
766ALIGN="LEFT"
767VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000768> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000769></TR
770><TR
771><TD
772WIDTH="20%"
773ALIGN="RIGHT"
774VALIGN="TOP"
775><TT
776CLASS="PARAMETER"
777><I
778>content</I
779></TT
780>&nbsp;:</TD
781><TD
782WIDTH="80%"
783ALIGN="LEFT"
784VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000785> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000786></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000787><TR
788><TD
789WIDTH="20%"
790ALIGN="RIGHT"
791VALIGN="TOP"
792><I
793CLASS="EMPHASIS"
794>Returns</I
795> :</TD
796><TD
797WIDTH="80%"
798ALIGN="LEFT"
799VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000800>a pointer to the entity or NULL in case of error</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000801></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000802></TABLE
803><P
804></P
805></DIV
806></DIV
807><HR><DIV
808CLASS="REFSECT2"
809><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000810NAME="AEN7019"
Daniel Veillard35925471999-02-25 08:46:07 +0000811></A
812><H3
813><A
814NAME="XMLADDDTDENTITY"
815></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000816>xmlAddDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000817><TABLE
818BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000819BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000820WIDTH="100%"
821CELLPADDING="6"
822><TR
823><TD
824><PRE
825CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000826><A
827HREF="gnome-xml-entities.html#XMLENTITYPTR"
828>xmlEntityPtr</A
829> xmlAddDtdEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000830HREF="gnome-xml-tree.html#XMLDOCPTR"
831>xmlDocPtr</A
832> doc,
833 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000834HREF="gnome-xml-tree.html#XMLCHAR"
835>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000836> *name,
837 int type,
838 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000839HREF="gnome-xml-tree.html#XMLCHAR"
840>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000841> *ExternalID,
842 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000843HREF="gnome-xml-tree.html#XMLCHAR"
844>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000845> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000846 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000847HREF="gnome-xml-tree.html#XMLCHAR"
848>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000849> *content);</PRE
850></TD
851></TR
852></TABLE
853><P
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000854>Register a new entity for this document DTD external subset.</P
Daniel Veillard35925471999-02-25 08:46:07 +0000855><P
856></P
857><DIV
858CLASS="INFORMALTABLE"
859><P
860></P
861><TABLE
862BORDER="0"
863WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000864BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000865CELLSPACING="0"
866CELLPADDING="4"
867CLASS="CALSTABLE"
868><TR
869><TD
870WIDTH="20%"
871ALIGN="RIGHT"
872VALIGN="TOP"
873><TT
874CLASS="PARAMETER"
875><I
876>doc</I
877></TT
878>&nbsp;:</TD
879><TD
880WIDTH="80%"
881ALIGN="LEFT"
882VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000883> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000884></TR
885><TR
886><TD
887WIDTH="20%"
888ALIGN="RIGHT"
889VALIGN="TOP"
890><TT
891CLASS="PARAMETER"
892><I
893>name</I
894></TT
895>&nbsp;:</TD
896><TD
897WIDTH="80%"
898ALIGN="LEFT"
899VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000900> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000901></TR
902><TR
903><TD
904WIDTH="20%"
905ALIGN="RIGHT"
906VALIGN="TOP"
907><TT
908CLASS="PARAMETER"
909><I
910>type</I
911></TT
912>&nbsp;:</TD
913><TD
914WIDTH="80%"
915ALIGN="LEFT"
916VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000917> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000918></TR
919><TR
920><TD
921WIDTH="20%"
922ALIGN="RIGHT"
923VALIGN="TOP"
924><TT
925CLASS="PARAMETER"
926><I
927>ExternalID</I
928></TT
929>&nbsp;:</TD
930><TD
931WIDTH="80%"
932ALIGN="LEFT"
933VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000934> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000935></TR
936><TR
937><TD
938WIDTH="20%"
939ALIGN="RIGHT"
940VALIGN="TOP"
941><TT
942CLASS="PARAMETER"
943><I
944>SystemID</I
945></TT
946>&nbsp;:</TD
947><TD
948WIDTH="80%"
949ALIGN="LEFT"
950VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000951> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000952></TR
953><TR
954><TD
955WIDTH="20%"
956ALIGN="RIGHT"
957VALIGN="TOP"
958><TT
959CLASS="PARAMETER"
960><I
961>content</I
962></TT
963>&nbsp;:</TD
964><TD
965WIDTH="80%"
966ALIGN="LEFT"
967VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000968> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000969></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000970><TR
971><TD
972WIDTH="20%"
973ALIGN="RIGHT"
974VALIGN="TOP"
975><I
976CLASS="EMPHASIS"
977>Returns</I
978> :</TD
979><TD
980WIDTH="80%"
981ALIGN="LEFT"
982VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +0000983>a pointer to the entity or NULL in case of error</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000984></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000985></TABLE
986><P
987></P
988></DIV
989></DIV
990><HR><DIV
991CLASS="REFSECT2"
992><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +0000993NAME="AEN7064"
Daniel Veillard35925471999-02-25 08:46:07 +0000994></A
995><H3
996><A
997NAME="XMLGETPREDEFINEDENTITY"
998></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000999>xmlGetPredefinedEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001000><TABLE
1001BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001002BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001003WIDTH="100%"
1004CELLPADDING="6"
1005><TR
1006><TD
1007><PRE
1008CLASS="PROGRAMLISTING"
1009><A
1010HREF="gnome-xml-entities.html#XMLENTITYPTR"
1011>xmlEntityPtr</A
1012> xmlGetPredefinedEntity (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001013HREF="gnome-xml-tree.html#XMLCHAR"
1014>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001015> *name);</PRE
1016></TD
1017></TR
1018></TABLE
1019><P
1020>Check whether this name is an predefined entity.</P
1021><P
1022></P
1023><DIV
1024CLASS="INFORMALTABLE"
1025><P
1026></P
1027><TABLE
1028BORDER="0"
1029WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001030BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001031CELLSPACING="0"
1032CELLPADDING="4"
1033CLASS="CALSTABLE"
1034><TR
1035><TD
1036WIDTH="20%"
1037ALIGN="RIGHT"
1038VALIGN="TOP"
1039><TT
1040CLASS="PARAMETER"
1041><I
1042>name</I
1043></TT
1044>&nbsp;:</TD
1045><TD
1046WIDTH="80%"
1047ALIGN="LEFT"
1048VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001049> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001050></TR
1051><TR
1052><TD
1053WIDTH="20%"
1054ALIGN="RIGHT"
1055VALIGN="TOP"
1056><I
1057CLASS="EMPHASIS"
1058>Returns</I
1059> :</TD
1060><TD
1061WIDTH="80%"
1062ALIGN="LEFT"
1063VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001064>NULL if not, othervise the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001065></TR
1066></TABLE
1067><P
1068></P
1069></DIV
1070></DIV
1071><HR><DIV
1072CLASS="REFSECT2"
1073><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001074NAME="AEN7085"
Daniel Veillard35925471999-02-25 08:46:07 +00001075></A
1076><H3
1077><A
1078NAME="XMLGETDOCENTITY"
1079></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001080>xmlGetDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001081><TABLE
1082BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001083BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001084WIDTH="100%"
1085CELLPADDING="6"
1086><TR
1087><TD
1088><PRE
1089CLASS="PROGRAMLISTING"
1090><A
1091HREF="gnome-xml-entities.html#XMLENTITYPTR"
1092>xmlEntityPtr</A
1093> xmlGetDocEntity (<A
1094HREF="gnome-xml-tree.html#XMLDOCPTR"
1095>xmlDocPtr</A
1096> doc,
1097 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001098HREF="gnome-xml-tree.html#XMLCHAR"
1099>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001100> *name);</PRE
1101></TD
1102></TR
1103></TABLE
1104><P
1105>Do an entity lookup in the document entity hash table and
1106returns the corrsponding entity, otherwise a lookup is done
1107in the predefined entities too.</P
1108><P
1109></P
1110><DIV
1111CLASS="INFORMALTABLE"
1112><P
1113></P
1114><TABLE
1115BORDER="0"
1116WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001117BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001118CELLSPACING="0"
1119CELLPADDING="4"
1120CLASS="CALSTABLE"
1121><TR
1122><TD
1123WIDTH="20%"
1124ALIGN="RIGHT"
1125VALIGN="TOP"
1126><TT
1127CLASS="PARAMETER"
1128><I
1129>doc</I
1130></TT
1131>&nbsp;:</TD
1132><TD
1133WIDTH="80%"
1134ALIGN="LEFT"
1135VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001136> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001137></TR
1138><TR
1139><TD
1140WIDTH="20%"
1141ALIGN="RIGHT"
1142VALIGN="TOP"
1143><TT
1144CLASS="PARAMETER"
1145><I
1146>name</I
1147></TT
1148>&nbsp;:</TD
1149><TD
1150WIDTH="80%"
1151ALIGN="LEFT"
1152VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001153> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001154></TR
1155><TR
1156><TD
1157WIDTH="20%"
1158ALIGN="RIGHT"
1159VALIGN="TOP"
1160><I
1161CLASS="EMPHASIS"
1162>Returns</I
1163> :</TD
1164><TD
1165WIDTH="80%"
1166ALIGN="LEFT"
1167VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001168>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001169></TR
1170></TABLE
1171><P
1172></P
1173></DIV
1174></DIV
1175><HR><DIV
1176CLASS="REFSECT2"
1177><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001178NAME="AEN7111"
Daniel Veillard35925471999-02-25 08:46:07 +00001179></A
1180><H3
1181><A
1182NAME="XMLGETDTDENTITY"
1183></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001184>xmlGetDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001185><TABLE
1186BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001187BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001188WIDTH="100%"
1189CELLPADDING="6"
1190><TR
1191><TD
1192><PRE
1193CLASS="PROGRAMLISTING"
1194><A
1195HREF="gnome-xml-entities.html#XMLENTITYPTR"
1196>xmlEntityPtr</A
1197> xmlGetDtdEntity (<A
1198HREF="gnome-xml-tree.html#XMLDOCPTR"
1199>xmlDocPtr</A
1200> doc,
1201 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001202HREF="gnome-xml-tree.html#XMLCHAR"
1203>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001204> *name);</PRE
1205></TD
1206></TR
1207></TABLE
1208><P
1209>Do an entity lookup in the Dtd entity hash table and
1210returns the corresponding entity, if found.</P
1211><P
1212></P
1213><DIV
1214CLASS="INFORMALTABLE"
1215><P
1216></P
1217><TABLE
1218BORDER="0"
1219WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001220BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001221CELLSPACING="0"
1222CELLPADDING="4"
1223CLASS="CALSTABLE"
1224><TR
1225><TD
1226WIDTH="20%"
1227ALIGN="RIGHT"
1228VALIGN="TOP"
1229><TT
1230CLASS="PARAMETER"
1231><I
1232>doc</I
1233></TT
1234>&nbsp;:</TD
1235><TD
1236WIDTH="80%"
1237ALIGN="LEFT"
1238VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001239> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001240></TR
1241><TR
1242><TD
1243WIDTH="20%"
1244ALIGN="RIGHT"
1245VALIGN="TOP"
1246><TT
1247CLASS="PARAMETER"
1248><I
1249>name</I
1250></TT
1251>&nbsp;:</TD
1252><TD
1253WIDTH="80%"
1254ALIGN="LEFT"
1255VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001256> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001257></TR
1258><TR
1259><TD
1260WIDTH="20%"
1261ALIGN="RIGHT"
1262VALIGN="TOP"
1263><I
1264CLASS="EMPHASIS"
1265>Returns</I
1266> :</TD
1267><TD
1268WIDTH="80%"
1269ALIGN="LEFT"
1270VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001271>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001272></TR
1273></TABLE
1274><P
1275></P
1276></DIV
1277></DIV
1278><HR><DIV
1279CLASS="REFSECT2"
1280><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001281NAME="AEN7137"
Daniel Veillardb05deb71999-08-10 19:04:08 +00001282></A
1283><H3
1284><A
1285NAME="XMLGETPARAMETERENTITY"
1286></A
1287>xmlGetParameterEntity ()</H3
1288><TABLE
1289BORDER="0"
1290BGCOLOR="#D6E8FF"
1291WIDTH="100%"
1292CELLPADDING="6"
1293><TR
1294><TD
1295><PRE
1296CLASS="PROGRAMLISTING"
1297><A
1298HREF="gnome-xml-entities.html#XMLENTITYPTR"
1299>xmlEntityPtr</A
1300> xmlGetParameterEntity (<A
1301HREF="gnome-xml-tree.html#XMLDOCPTR"
1302>xmlDocPtr</A
1303> doc,
1304 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001305HREF="gnome-xml-tree.html#XMLCHAR"
1306>xmlChar</A
Daniel Veillardb05deb71999-08-10 19:04:08 +00001307> *name);</PRE
1308></TD
1309></TR
1310></TABLE
1311><P
1312>Do an entity lookup in the internal and external subsets and
1313returns the corresponding parameter entity, if found.</P
1314><P
1315></P
1316><DIV
1317CLASS="INFORMALTABLE"
1318><P
1319></P
1320><TABLE
1321BORDER="0"
1322WIDTH="100%"
1323BGCOLOR="#FFD0D0"
1324CELLSPACING="0"
1325CELLPADDING="4"
1326CLASS="CALSTABLE"
1327><TR
1328><TD
1329WIDTH="20%"
1330ALIGN="RIGHT"
1331VALIGN="TOP"
1332><TT
1333CLASS="PARAMETER"
1334><I
1335>doc</I
1336></TT
1337>&nbsp;:</TD
1338><TD
1339WIDTH="80%"
1340ALIGN="LEFT"
1341VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001342> the document referencing the entity</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001343></TR
1344><TR
1345><TD
1346WIDTH="20%"
1347ALIGN="RIGHT"
1348VALIGN="TOP"
1349><TT
1350CLASS="PARAMETER"
1351><I
1352>name</I
1353></TT
1354>&nbsp;:</TD
1355><TD
1356WIDTH="80%"
1357ALIGN="LEFT"
1358VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001359> the entity name</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001360></TR
1361><TR
1362><TD
1363WIDTH="20%"
1364ALIGN="RIGHT"
1365VALIGN="TOP"
1366><I
1367CLASS="EMPHASIS"
1368>Returns</I
1369> :</TD
1370><TD
1371WIDTH="80%"
1372ALIGN="LEFT"
1373VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001374>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001375></TR
1376></TABLE
1377><P
1378></P
1379></DIV
1380></DIV
1381><HR><DIV
1382CLASS="REFSECT2"
1383><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001384NAME="AEN7163"
Daniel Veillard35925471999-02-25 08:46:07 +00001385></A
1386><H3
1387><A
1388NAME="XMLENCODEENTITIES"
1389></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001390>xmlEncodeEntities ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001391><TABLE
1392BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001393BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001394WIDTH="100%"
1395CELLPADDING="6"
1396><TR
1397><TD
1398><PRE
1399CLASS="PROGRAMLISTING"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001400>const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001401HREF="gnome-xml-tree.html#XMLCHAR"
1402>xmlChar</A
1403>* xmlEncodeEntities (<A
Daniel Veillard35925471999-02-25 08:46:07 +00001404HREF="gnome-xml-tree.html#XMLDOCPTR"
1405>xmlDocPtr</A
1406> doc,
1407 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001408HREF="gnome-xml-tree.html#XMLCHAR"
1409>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001410> *input);</PRE
1411></TD
1412></TR
1413></TABLE
1414><P
1415>Do a global encoding of a string, replacing the predefined entities
1416and non ASCII values with their entities and CharRef counterparts.</P
1417><P
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001418>TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary
1419compatibility</P
Daniel Veillard35925471999-02-25 08:46:07 +00001420><P
Daniel Veillardb05deb71999-08-10 19:04:08 +00001421>People must migrate their code to xmlEncodeEntitiesReentrant !
1422This routine will issue a warning when encountered.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001423><P
1424></P
1425><DIV
1426CLASS="INFORMALTABLE"
1427><P
1428></P
1429><TABLE
1430BORDER="0"
1431WIDTH="100%"
1432BGCOLOR="#FFD0D0"
1433CELLSPACING="0"
1434CELLPADDING="4"
1435CLASS="CALSTABLE"
1436><TR
1437><TD
1438WIDTH="20%"
1439ALIGN="RIGHT"
1440VALIGN="TOP"
1441><TT
1442CLASS="PARAMETER"
1443><I
1444>doc</I
1445></TT
1446>&nbsp;:</TD
1447><TD
1448WIDTH="80%"
1449ALIGN="LEFT"
1450VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001451> the document containing the string</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001452></TR
1453><TR
1454><TD
1455WIDTH="20%"
1456ALIGN="RIGHT"
1457VALIGN="TOP"
1458><TT
1459CLASS="PARAMETER"
1460><I
1461>input</I
1462></TT
1463>&nbsp;:</TD
1464><TD
1465WIDTH="80%"
1466ALIGN="LEFT"
1467VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001468> A string to convert to XML.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001469></TR
1470><TR
1471><TD
1472WIDTH="20%"
1473ALIGN="RIGHT"
1474VALIGN="TOP"
1475><I
1476CLASS="EMPHASIS"
1477>Returns</I
1478> :</TD
1479><TD
1480WIDTH="80%"
1481ALIGN="LEFT"
1482VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001483>A newly allocated string with the substitution done.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001484></TR
1485></TABLE
1486><P
1487></P
1488></DIV
1489></DIV
1490><HR><DIV
1491CLASS="REFSECT2"
1492><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001493NAME="AEN7191"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001494></A
1495><H3
1496><A
1497NAME="XMLENCODEENTITIESREENTRANT"
1498></A
1499>xmlEncodeEntitiesReentrant ()</H3
1500><TABLE
1501BORDER="0"
1502BGCOLOR="#D6E8FF"
1503WIDTH="100%"
1504CELLPADDING="6"
1505><TR
1506><TD
1507><PRE
1508CLASS="PROGRAMLISTING"
1509><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001510HREF="gnome-xml-tree.html#XMLCHAR"
1511>xmlChar</A
1512>* xmlEncodeEntitiesReentrant (<A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001513HREF="gnome-xml-tree.html#XMLDOCPTR"
1514>xmlDocPtr</A
1515> doc,
1516 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001517HREF="gnome-xml-tree.html#XMLCHAR"
1518>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001519> *input);</PRE
1520></TD
1521></TR
1522></TABLE
1523><P
1524>Do a global encoding of a string, replacing the predefined entities
1525and non ASCII values with their entities and CharRef counterparts.
1526Contrary to xmlEncodeEntities, this routine is reentrant, and result
1527must be deallocated.</P
1528><P
Daniel Veillard35925471999-02-25 08:46:07 +00001529></P
1530><DIV
1531CLASS="INFORMALTABLE"
1532><P
1533></P
1534><TABLE
1535BORDER="0"
1536WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001537BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001538CELLSPACING="0"
1539CELLPADDING="4"
1540CLASS="CALSTABLE"
1541><TR
1542><TD
1543WIDTH="20%"
1544ALIGN="RIGHT"
1545VALIGN="TOP"
1546><TT
1547CLASS="PARAMETER"
1548><I
1549>doc</I
1550></TT
1551>&nbsp;:</TD
1552><TD
1553WIDTH="80%"
1554ALIGN="LEFT"
1555VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001556> the document containing the string</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001557></TR
1558><TR
1559><TD
1560WIDTH="20%"
1561ALIGN="RIGHT"
1562VALIGN="TOP"
1563><TT
1564CLASS="PARAMETER"
1565><I
1566>input</I
1567></TT
1568>&nbsp;:</TD
1569><TD
1570WIDTH="80%"
1571ALIGN="LEFT"
1572VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001573> A string to convert to XML.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001574></TR
1575><TR
1576><TD
1577WIDTH="20%"
1578ALIGN="RIGHT"
1579VALIGN="TOP"
1580><I
1581CLASS="EMPHASIS"
1582>Returns</I
1583> :</TD
1584><TD
1585WIDTH="80%"
1586ALIGN="LEFT"
1587VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001588>A newly allocated string with the substitution done.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001589></TR
1590></TABLE
1591><P
1592></P
1593></DIV
1594></DIV
1595><HR><DIV
1596CLASS="REFSECT2"
1597><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001598NAME="AEN7217"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001599></A
1600><H3
1601><A
1602NAME="XMLENCODESPECIALCHARS"
1603></A
1604>xmlEncodeSpecialChars ()</H3
1605><TABLE
1606BORDER="0"
1607BGCOLOR="#D6E8FF"
1608WIDTH="100%"
1609CELLPADDING="6"
1610><TR
1611><TD
1612><PRE
1613CLASS="PROGRAMLISTING"
1614><A
1615HREF="gnome-xml-tree.html#XMLCHAR"
1616>xmlChar</A
1617>* xmlEncodeSpecialChars (<A
1618HREF="gnome-xml-tree.html#XMLDOCPTR"
1619>xmlDocPtr</A
1620> doc,
1621 const <A
1622HREF="gnome-xml-tree.html#XMLCHAR"
1623>xmlChar</A
1624> *input);</PRE
1625></TD
1626></TR
1627></TABLE
1628><P
1629>Do a global encoding of a string, replacing the predefined entities
1630this routine is reentrant, and result must be deallocated.</P
1631><P
1632></P
1633><DIV
1634CLASS="INFORMALTABLE"
1635><P
1636></P
1637><TABLE
1638BORDER="0"
1639WIDTH="100%"
1640BGCOLOR="#FFD0D0"
1641CELLSPACING="0"
1642CELLPADDING="4"
1643CLASS="CALSTABLE"
1644><TR
1645><TD
1646WIDTH="20%"
1647ALIGN="RIGHT"
1648VALIGN="TOP"
1649><TT
1650CLASS="PARAMETER"
1651><I
1652>doc</I
1653></TT
1654>&nbsp;:</TD
1655><TD
1656WIDTH="80%"
1657ALIGN="LEFT"
1658VALIGN="TOP"
1659> the document containing the string</TD
1660></TR
1661><TR
1662><TD
1663WIDTH="20%"
1664ALIGN="RIGHT"
1665VALIGN="TOP"
1666><TT
1667CLASS="PARAMETER"
1668><I
1669>input</I
1670></TT
1671>&nbsp;:</TD
1672><TD
1673WIDTH="80%"
1674ALIGN="LEFT"
1675VALIGN="TOP"
1676> A string to convert to XML.</TD
1677></TR
1678><TR
1679><TD
1680WIDTH="20%"
1681ALIGN="RIGHT"
1682VALIGN="TOP"
1683><I
1684CLASS="EMPHASIS"
1685>Returns</I
1686> :</TD
1687><TD
1688WIDTH="80%"
1689ALIGN="LEFT"
1690VALIGN="TOP"
1691>A newly allocated string with the substitution done.</TD
1692></TR
1693></TABLE
1694><P
1695></P
1696></DIV
1697></DIV
1698><HR><DIV
1699CLASS="REFSECT2"
1700><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001701NAME="AEN7243"
Daniel Veillard35925471999-02-25 08:46:07 +00001702></A
1703><H3
1704><A
1705NAME="XMLCREATEENTITIESTABLE"
1706></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001707>xmlCreateEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001708><TABLE
1709BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001710BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001711WIDTH="100%"
1712CELLPADDING="6"
1713><TR
1714><TD
1715><PRE
1716CLASS="PROGRAMLISTING"
1717><A
1718HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1719>xmlEntitiesTablePtr</A
1720> xmlCreateEntitiesTable (void);</PRE
1721></TD
1722></TR
1723></TABLE
1724><P
1725>create and initialize an empty entities hash table.</P
1726><P
1727></P
1728><DIV
1729CLASS="INFORMALTABLE"
1730><P
1731></P
1732><TABLE
1733BORDER="0"
1734WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001735BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001736CELLSPACING="0"
1737CELLPADDING="4"
1738CLASS="CALSTABLE"
1739><TR
1740><TD
1741WIDTH="20%"
1742ALIGN="RIGHT"
1743VALIGN="TOP"
1744><I
1745CLASS="EMPHASIS"
1746>Returns</I
1747> :</TD
1748><TD
1749WIDTH="80%"
1750ALIGN="LEFT"
1751VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001752>the xmlEntitiesTablePtr just created or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001753></TR
1754></TABLE
1755><P
1756></P
1757></DIV
1758></DIV
1759><HR><DIV
1760CLASS="REFSECT2"
1761><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001762NAME="AEN7259"
Daniel Veillard35925471999-02-25 08:46:07 +00001763></A
1764><H3
1765><A
1766NAME="XMLCOPYENTITIESTABLE"
1767></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001768>xmlCopyEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001769><TABLE
1770BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001771BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001772WIDTH="100%"
1773CELLPADDING="6"
1774><TR
1775><TD
1776><PRE
1777CLASS="PROGRAMLISTING"
1778><A
1779HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1780>xmlEntitiesTablePtr</A
1781> xmlCopyEntitiesTable (<A
1782HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1783>xmlEntitiesTablePtr</A
1784> table);</PRE
1785></TD
1786></TR
1787></TABLE
1788><P
1789>Build a copy of an entity table.</P
1790><P
1791></P
1792><DIV
1793CLASS="INFORMALTABLE"
1794><P
1795></P
1796><TABLE
1797BORDER="0"
1798WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001799BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001800CELLSPACING="0"
1801CELLPADDING="4"
1802CLASS="CALSTABLE"
1803><TR
1804><TD
1805WIDTH="20%"
1806ALIGN="RIGHT"
1807VALIGN="TOP"
1808><TT
1809CLASS="PARAMETER"
1810><I
1811>table</I
1812></TT
1813>&nbsp;:</TD
1814><TD
1815WIDTH="80%"
1816ALIGN="LEFT"
1817VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001818> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001819></TR
1820><TR
1821><TD
1822WIDTH="20%"
1823ALIGN="RIGHT"
1824VALIGN="TOP"
1825><I
1826CLASS="EMPHASIS"
1827>Returns</I
1828> :</TD
1829><TD
1830WIDTH="80%"
1831ALIGN="LEFT"
1832VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001833>the new xmlEntitiesTablePtr or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001834></TR
1835></TABLE
1836><P
1837></P
1838></DIV
1839></DIV
1840><HR><DIV
1841CLASS="REFSECT2"
1842><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001843NAME="AEN7280"
Daniel Veillard35925471999-02-25 08:46:07 +00001844></A
1845><H3
1846><A
1847NAME="XMLFREEENTITIESTABLE"
1848></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001849>xmlFreeEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001850><TABLE
1851BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001852BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001853WIDTH="100%"
1854CELLPADDING="6"
1855><TR
1856><TD
1857><PRE
1858CLASS="PROGRAMLISTING"
1859>void xmlFreeEntitiesTable (<A
1860HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1861>xmlEntitiesTablePtr</A
1862> table);</PRE
1863></TD
1864></TR
1865></TABLE
1866><P
1867>Deallocate the memory used by an entities hash table.</P
1868><P
1869></P
1870><DIV
1871CLASS="INFORMALTABLE"
1872><P
1873></P
1874><TABLE
1875BORDER="0"
1876WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001877BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001878CELLSPACING="0"
1879CELLPADDING="4"
1880CLASS="CALSTABLE"
1881><TR
1882><TD
1883WIDTH="20%"
1884ALIGN="RIGHT"
1885VALIGN="TOP"
1886><TT
1887CLASS="PARAMETER"
1888><I
1889>table</I
1890></TT
1891>&nbsp;:</TD
1892><TD
1893WIDTH="80%"
1894ALIGN="LEFT"
1895VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001896> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001897></TR
1898></TABLE
1899><P
1900></P
1901></DIV
1902></DIV
1903><HR><DIV
1904CLASS="REFSECT2"
1905><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001906NAME="AEN7296"
Daniel Veillard35925471999-02-25 08:46:07 +00001907></A
1908><H3
1909><A
1910NAME="XMLDUMPENTITIESTABLE"
1911></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001912>xmlDumpEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001913><TABLE
1914BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001915BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001916WIDTH="100%"
1917CELLPADDING="6"
1918><TR
1919><TD
1920><PRE
1921CLASS="PROGRAMLISTING"
1922>void xmlDumpEntitiesTable (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +00001923HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1924>xmlBufferPtr</A
1925> buf,
1926 <A
Daniel Veillard35925471999-02-25 08:46:07 +00001927HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1928>xmlEntitiesTablePtr</A
1929> table);</PRE
1930></TD
1931></TR
1932></TABLE
1933><P
1934>This will dump the content of the entity table as an XML DTD definition</P
1935><P
Daniel Veillard35925471999-02-25 08:46:07 +00001936></P
1937><DIV
1938CLASS="INFORMALTABLE"
1939><P
1940></P
1941><TABLE
1942BORDER="0"
1943WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001944BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001945CELLSPACING="0"
1946CELLPADDING="4"
1947CLASS="CALSTABLE"
1948><TR
1949><TD
1950WIDTH="20%"
1951ALIGN="RIGHT"
1952VALIGN="TOP"
1953><TT
1954CLASS="PARAMETER"
1955><I
Daniel Veillard5099ae81999-04-21 20:12:07 +00001956>buf</I
1957></TT
1958>&nbsp;:</TD
1959><TD
1960WIDTH="80%"
1961ALIGN="LEFT"
1962VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001963> An XML buffer.</TD
Daniel Veillard5099ae81999-04-21 20:12:07 +00001964></TR
1965><TR
1966><TD
1967WIDTH="20%"
1968ALIGN="RIGHT"
1969VALIGN="TOP"
1970><TT
1971CLASS="PARAMETER"
1972><I
Daniel Veillard35925471999-02-25 08:46:07 +00001973>table</I
1974></TT
1975>&nbsp;:</TD
1976><TD
1977WIDTH="80%"
1978ALIGN="LEFT"
1979VALIGN="TOP"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001980> An entity table</TD
1981></TR
1982></TABLE
1983><P
1984></P
1985></DIV
1986></DIV
1987><HR><DIV
1988CLASS="REFSECT2"
1989><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00001990NAME="AEN7317"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00001991></A
1992><H3
1993><A
1994NAME="XMLDUMPENTITYDECL"
1995></A
1996>xmlDumpEntityDecl ()</H3
1997><TABLE
1998BORDER="0"
1999BGCOLOR="#D6E8FF"
2000WIDTH="100%"
2001CELLPADDING="6"
2002><TR
2003><TD
2004><PRE
2005CLASS="PROGRAMLISTING"
2006>void xmlDumpEntityDecl (<A
2007HREF="gnome-xml-tree.html#XMLBUFFERPTR"
2008>xmlBufferPtr</A
2009> buf,
2010 <A
2011HREF="gnome-xml-entities.html#XMLENTITYPTR"
2012>xmlEntityPtr</A
2013> ent);</PRE
2014></TD
2015></TR
2016></TABLE
2017><P
2018>This will dump the content of the entity table as an XML DTD definition</P
2019><P
2020></P
2021><DIV
2022CLASS="INFORMALTABLE"
2023><P
2024></P
2025><TABLE
2026BORDER="0"
2027WIDTH="100%"
2028BGCOLOR="#FFD0D0"
2029CELLSPACING="0"
2030CELLPADDING="4"
2031CLASS="CALSTABLE"
2032><TR
2033><TD
2034WIDTH="20%"
2035ALIGN="RIGHT"
2036VALIGN="TOP"
2037><TT
2038CLASS="PARAMETER"
2039><I
2040>buf</I
2041></TT
2042>&nbsp;:</TD
2043><TD
2044WIDTH="80%"
2045ALIGN="LEFT"
2046VALIGN="TOP"
2047> An XML buffer.</TD
2048></TR
2049><TR
2050><TD
2051WIDTH="20%"
2052ALIGN="RIGHT"
2053VALIGN="TOP"
2054><TT
2055CLASS="PARAMETER"
2056><I
2057>ent</I
2058></TT
2059>&nbsp;:</TD
2060><TD
2061WIDTH="80%"
2062ALIGN="LEFT"
2063VALIGN="TOP"
2064> An entity table</TD
2065></TR
2066></TABLE
2067><P
2068></P
2069></DIV
2070></DIV
2071><HR><DIV
2072CLASS="REFSECT2"
2073><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002074NAME="AEN7338"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002075></A
2076><H3
2077><A
2078NAME="XMLCLEANUPPREDEFINEDENTITIES"
2079></A
2080>xmlCleanupPredefinedEntities ()</H3
2081><TABLE
2082BORDER="0"
2083BGCOLOR="#D6E8FF"
2084WIDTH="100%"
2085CELLPADDING="6"
2086><TR
2087><TD
2088><PRE
2089CLASS="PROGRAMLISTING"
2090>void xmlCleanupPredefinedEntities (void);</PRE
2091></TD
2092></TR
2093></TABLE
2094><P
2095>Cleanup up the predefined entities table.</P
2096><P
2097></P
2098></DIV
2099><HR><DIV
2100CLASS="REFSECT2"
2101><A
Daniel Veillard3bff2b02000-10-01 20:33:47 +00002102NAME="AEN7344"
Daniel Veillard3f6f7f62000-06-30 17:58:25 +00002103></A
2104><H3
2105><A
2106NAME="XMLENTITYADDREFERENCE"
2107></A
2108>xmlEntityAddReference ()</H3
2109><TABLE
2110BORDER="0"
2111BGCOLOR="#D6E8FF"
2112WIDTH="100%"
2113CELLPADDING="6"
2114><TR
2115><TD
2116><PRE
2117CLASS="PROGRAMLISTING"
2118>int xmlEntityAddReference (<A
2119HREF="gnome-xml-entities.html#XMLENTITYPTR"
2120>xmlEntityPtr</A
2121> ent,
2122 const <A
2123HREF="gnome-xml-tree.html#XMLCHAR"
2124>xmlChar</A
2125> *to);</PRE
2126></TD
2127></TR
2128></TABLE
2129><P
2130>Function to register reuse of an existing entity from a (new) one
2131Used to keep track of references and detect cycles (well formedness
2132errors !).</P
2133><P
2134></P
2135><DIV
2136CLASS="INFORMALTABLE"
2137><P
2138></P
2139><TABLE
2140BORDER="0"
2141WIDTH="100%"
2142BGCOLOR="#FFD0D0"
2143CELLSPACING="0"
2144CELLPADDING="4"
2145CLASS="CALSTABLE"
2146><TR
2147><TD
2148WIDTH="20%"
2149ALIGN="RIGHT"
2150VALIGN="TOP"
2151><TT
2152CLASS="PARAMETER"
2153><I
2154>ent</I
2155></TT
2156>&nbsp;:</TD
2157><TD
2158WIDTH="80%"
2159ALIGN="LEFT"
2160VALIGN="TOP"
2161> an existing entity</TD
2162></TR
2163><TR
2164><TD
2165WIDTH="20%"
2166ALIGN="RIGHT"
2167VALIGN="TOP"
2168><TT
2169CLASS="PARAMETER"
2170><I
2171>to</I
2172></TT
2173>&nbsp;:</TD
2174><TD
2175WIDTH="80%"
2176ALIGN="LEFT"
2177VALIGN="TOP"
2178> the entity name it's referencing</TD
2179></TR
2180><TR
2181><TD
2182WIDTH="20%"
2183ALIGN="RIGHT"
2184VALIGN="TOP"
2185><I
2186CLASS="EMPHASIS"
2187>Returns</I
2188> :</TD
2189><TD
2190WIDTH="80%"
2191ALIGN="LEFT"
2192VALIGN="TOP"
2193> 0 if Okay, -1 in case of general error, 1 in case of loop
2194detection.</TD
Daniel Veillardedfb29b2000-03-14 19:59:05 +00002195></TR
2196></TABLE
2197><P
2198></P
2199></DIV
2200></DIV
Daniel Veillard35925471999-02-25 08:46:07 +00002201></DIV
2202><DIV
2203CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002204><BR
2205CLEAR="all"><BR><TABLE
Daniel Veillard35925471999-02-25 08:46:07 +00002206WIDTH="100%"
2207BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00002208BGCOLOR="#000000"
2209CELLPADDING="1"
Daniel Veillard35925471999-02-25 08:46:07 +00002210CELLSPACING="0"
2211><TR
2212><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002213WIDTH="25%"
2214BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002215ALIGN="left"
Daniel Veillard35925471999-02-25 08:46:07 +00002216><A
2217HREF="gnome-xml-tree.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002218><FONT
2219COLOR="#FFFFFF"
2220SIZE="3"
2221><B
2222>&#60;&#60;&#60; Previous Page</B
2223></FONT
2224></A
Daniel Veillard35925471999-02-25 08:46:07 +00002225></TD
2226><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002227WIDTH="25%"
2228BGCOLOR="#0000C0"
Daniel Veillard35925471999-02-25 08:46:07 +00002229ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +00002230><FONT
2231COLOR="#FFFFFF"
2232SIZE="3"
2233><B
Daniel Veillard35925471999-02-25 08:46:07 +00002234><A
2235HREF="book1.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002236><FONT
2237COLOR="#FFFFFF"
2238SIZE="3"
2239><B
2240>Home</B
2241></FONT
2242></A
2243></B
2244></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002245></TD
2246><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002247WIDTH="25%"
2248BGCOLOR="#00C000"
2249ALIGN="center"
2250><FONT
2251COLOR="#FFFFFF"
2252SIZE="3"
2253><B
2254><A
Daniel Veillard35008381999-10-25 13:15:52 +00002255HREF="libxml-lib.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002256><FONT
2257COLOR="#FFFFFF"
2258SIZE="3"
2259><B
2260>Up</B
2261></FONT
2262></A
2263></B
2264></FONT
2265></TD
2266><TD
2267WIDTH="25%"
2268BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002269ALIGN="right"
Daniel Veillard35925471999-02-25 08:46:07 +00002270><A
2271HREF="gnome-xml-valid.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002272><FONT
2273COLOR="#FFFFFF"
2274SIZE="3"
2275><B
2276>Next Page &#62;&#62;&#62;</B
2277></FONT
2278></A
Daniel Veillard35925471999-02-25 08:46:07 +00002279></TD
2280></TR
2281><TR
2282><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002283COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002284ALIGN="left"
Daniel Veillard14fff061999-06-22 21:49:07 +00002285><FONT
2286COLOR="#FFFFFF"
2287SIZE="3"
2288><B
2289>tree</B
2290></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002291></TD
2292><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002293COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002294ALIGN="right"
Daniel Veillard14fff061999-06-22 21:49:07 +00002295><FONT
2296COLOR="#FFFFFF"
2297SIZE="3"
2298><B
2299>valid</B
2300></FONT
2301></TD
Daniel Veillard35925471999-02-25 08:46:07 +00002302></TR
2303></TABLE
2304></DIV
2305></BODY
2306></HTML
2307>