blob: 3f620f5145a702888db167e98e77538afcdc61f9 [file] [log] [blame]
Daniel Veillard35925471999-02-25 08:46:07 +00001<HTML
2><HEAD
3><TITLE
4>entities</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillardf3a73582000-01-05 14:58:39 +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 Veillardf3a73582000-01-05 14:58:39 +0000114>entities</H1
Daniel Veillard35925471999-02-25 08:46:07 +0000115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000118NAME="AEN6147"
Daniel Veillard35925471999-02-25 08:46:07 +0000119></A
120><H2
121>Name</H2
Daniel Veillardf3a73582000-01-05 14:58:39 +0000122>entities &#8212; </DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000126NAME="AEN6150"
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 Veillardedfb29b2000-03-14 19:59:05 +0000141enum <A
142HREF="gnome-xml-entities.html#XMLENTITYTYPE"
143>xmlEntityType</A
144>;
Daniel Veillardf3a73582000-01-05 14:58:39 +0000145struct <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 Veillardf3a73582000-01-05 14:58:39 +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
300HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
301>xmlEntitiesTablePtr</A
302> <A
303HREF="gnome-xml-entities.html#XMLCREATEENTITIESTABLE"
304>xmlCreateEntitiesTable</A
305> (void);
306<A
307HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
308>xmlEntitiesTablePtr</A
309> <A
310HREF="gnome-xml-entities.html#XMLCOPYENTITIESTABLE"
311>xmlCopyEntitiesTable</A
312> (<A
313HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
314>xmlEntitiesTablePtr</A
315> table);
316void <A
317HREF="gnome-xml-entities.html#XMLFREEENTITIESTABLE"
318>xmlFreeEntitiesTable</A
319> (<A
320HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
321>xmlEntitiesTablePtr</A
322> table);
323void <A
324HREF="gnome-xml-entities.html#XMLDUMPENTITIESTABLE"
325>xmlDumpEntitiesTable</A
326> (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +0000327HREF="gnome-xml-tree.html#XMLBUFFERPTR"
328>xmlBufferPtr</A
329> buf,
330 <A
Daniel Veillard35925471999-02-25 08:46:07 +0000331HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
332>xmlEntitiesTablePtr</A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000333> table);
334void <A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000335HREF="gnome-xml-entities.html#XMLDUMPENTITYDECL"
336>xmlDumpEntityDecl</A
337> (<A
338HREF="gnome-xml-tree.html#XMLBUFFERPTR"
339>xmlBufferPtr</A
340> buf,
341 <A
342HREF="gnome-xml-entities.html#XMLENTITYPTR"
343>xmlEntityPtr</A
344> ent);
345void <A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000346HREF="gnome-xml-entities.html#XMLCLEANUPPREDEFINEDENTITIES"
347>xmlCleanupPredefinedEntities</A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000348> (void);
349int <A
350HREF="gnome-xml-entities.html#XMLENTITYADDREFERENCE"
351>xmlEntityAddReference</A
352> (<A
353HREF="gnome-xml-entities.html#XMLENTITYPTR"
354>xmlEntityPtr</A
355> ent,
356 const <A
357HREF="gnome-xml-tree.html#XMLCHAR"
358>xmlChar</A
359> *to);</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000360></TD
361></TR
362></TABLE
363></DIV
364><DIV
365CLASS="REFSECT1"
366><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000367NAME="AEN6213"
Daniel Veillard35925471999-02-25 08:46:07 +0000368></A
369><H2
370>Description</H2
371><P
372></P
373></DIV
374><DIV
375CLASS="REFSECT1"
376><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000377NAME="AEN6216"
Daniel Veillard35925471999-02-25 08:46:07 +0000378></A
379><H2
380>Details</H2
Daniel Veillard14fff061999-06-22 21:49:07 +0000381><DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000382CLASS="REFSECT2"
383><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000384NAME="AEN6218"
Daniel Veillard35925471999-02-25 08:46:07 +0000385></A
386><H3
387><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000388NAME="XMLENTITYTYPE"
Daniel Veillard35925471999-02-25 08:46:07 +0000389></A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000390>enum xmlEntityType</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000391><TABLE
392BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000393BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000394WIDTH="100%"
395CELLPADDING="6"
396><TR
397><TD
398><PRE
399CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000400>typedef enum {
401 XML_INTERNAL_GENERAL_ENTITY = 1,
402 XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2,
403 XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3,
404 XML_INTERNAL_PARAMETER_ENTITY = 4,
405 XML_EXTERNAL_PARAMETER_ENTITY = 5,
406 XML_INTERNAL_PREDEFINED_ENTITY = 6
407} xmlEntityType;</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000408></TD
409></TR
410></TABLE
411><P
412></P
413></DIV
414><HR><DIV
415CLASS="REFSECT2"
416><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000417NAME="AEN6223"
Daniel Veillard35925471999-02-25 08:46:07 +0000418></A
419><H3
420><A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000421NAME="XMLENTITY"
Daniel Veillard35925471999-02-25 08:46:07 +0000422></A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000423>struct xmlEntity</H3
424><TABLE
425BORDER="0"
426BGCOLOR="#D6E8FF"
427WIDTH="100%"
428CELLPADDING="6"
429><TR
430><TD
431><PRE
432CLASS="PROGRAMLISTING"
433>struct xmlEntity {
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000434#ifndef XML_WITHOUT_CORBA
435 void *_private; /* for Corba, must be first ! */
436#endif
437 xmlElementType type; /* XML_ENTITY_DECL, must be second ! */
438 const xmlChar *name; /* Attribute name */
439 struct _xmlNode *children; /* NULL */
440 struct _xmlNode *last; /* NULL */
441 struct _xmlDtd *parent; /* -&gt; DTD */
442 struct _xmlNode *next; /* next sibling link */
443 struct _xmlNode *prev; /* previous sibling link */
444 struct _xmlDoc *doc; /* the containing document */
445
446 xmlChar *orig; /* content without ref substitution */
447 xmlChar *content; /* content or ndata if unparsed */
448 int length; /* the content length */
449 xmlEntityType etype; /* The entity type */
450 const xmlChar *ExternalID; /* External identifier for PUBLIC */
451 const xmlChar *SystemID; /* URI for a SYSTEM or PUBLIC Entity */
452
453#ifdef WITH_EXTRA_ENT_DETECT
454 /* Referenced entities name stack */
455 xmlChar *ent; /* Current parsed Node */
456 int entNr; /* Depth of the parsing stack */
457 int entMax; /* Max depth of the parsing stack */
458 xmlChar * *entTab; /* array of nodes */
459#endif
Daniel Veillardf3a73582000-01-05 14:58:39 +0000460};</PRE
461></TD
462></TR
463></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000464><P
465></P
466></DIV
467><HR><DIV
468CLASS="REFSECT2"
469><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000470NAME="AEN6228"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000471></A
472><H3
473><A
474NAME="XMLENTITYPTR"
475></A
476>xmlEntityPtr</H3
477><TABLE
478BORDER="0"
479BGCOLOR="#D6E8FF"
480WIDTH="100%"
481CELLPADDING="6"
482><TR
483><TD
484><PRE
485CLASS="PROGRAMLISTING"
486>typedef xmlEntity *xmlEntityPtr;</PRE
487></TD
488></TR
489></TABLE
490><P
491></P
492></DIV
493><HR><DIV
494CLASS="REFSECT2"
495><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000496NAME="AEN6233"
Daniel Veillard35925471999-02-25 08:46:07 +0000497></A
498><H3
499><A
500NAME="XML-MIN-ENTITIES-TABLE"
501></A
502>XML_MIN_ENTITIES_TABLE</H3
503><TABLE
504BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000505BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000506WIDTH="100%"
507CELLPADDING="6"
508><TR
509><TD
510><PRE
511CLASS="PROGRAMLISTING"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000512>#define XML_MIN_ENTITIES_TABLE 32</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000513></TD
514></TR
515></TABLE
516><P
517></P
518></DIV
519><HR><DIV
520CLASS="REFSECT2"
521><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000522NAME="AEN6238"
Daniel Veillard35925471999-02-25 08:46:07 +0000523></A
524><H3
525><A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000526NAME="XMLENTITIESTABLE"
Daniel Veillard35925471999-02-25 08:46:07 +0000527></A
Daniel Veillardf3a73582000-01-05 14:58:39 +0000528>struct xmlEntitiesTable</H3
529><TABLE
530BORDER="0"
531BGCOLOR="#D6E8FF"
532WIDTH="100%"
533CELLPADDING="6"
534><TR
535><TD
536><PRE
537CLASS="PROGRAMLISTING"
538>struct xmlEntitiesTable {
539 int nb_entities; /* number of elements stored */
540 int max_entities; /* maximum number of elements */
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000541 xmlEntityPtr *table; /* the table of entities */
Daniel Veillardf3a73582000-01-05 14:58:39 +0000542};</PRE
543></TD
544></TR
545></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000546><P
547></P
548></DIV
549><HR><DIV
550CLASS="REFSECT2"
551><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000552NAME="AEN6243"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000553></A
554><H3
555><A
556NAME="XMLENTITIESTABLEPTR"
557></A
558>xmlEntitiesTablePtr</H3
559><TABLE
560BORDER="0"
561BGCOLOR="#D6E8FF"
562WIDTH="100%"
563CELLPADDING="6"
564><TR
565><TD
566><PRE
567CLASS="PROGRAMLISTING"
568>typedef xmlEntitiesTable *xmlEntitiesTablePtr;</PRE
569></TD
570></TR
571></TABLE
572><P
573></P
574></DIV
575><HR><DIV
576CLASS="REFSECT2"
577><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000578NAME="AEN6248"
Daniel Veillard35925471999-02-25 08:46:07 +0000579></A
580><H3
581><A
582NAME="XMLADDDOCENTITY"
583></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000584>xmlAddDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000585><TABLE
586BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000587BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000588WIDTH="100%"
589CELLPADDING="6"
590><TR
591><TD
592><PRE
593CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000594><A
595HREF="gnome-xml-entities.html#XMLENTITYPTR"
596>xmlEntityPtr</A
597> xmlAddDocEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000598HREF="gnome-xml-tree.html#XMLDOCPTR"
599>xmlDocPtr</A
600> doc,
601 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000602HREF="gnome-xml-tree.html#XMLCHAR"
603>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000604> *name,
605 int type,
606 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000607HREF="gnome-xml-tree.html#XMLCHAR"
608>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000609> *ExternalID,
610 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000611HREF="gnome-xml-tree.html#XMLCHAR"
612>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000613> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000614 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000615HREF="gnome-xml-tree.html#XMLCHAR"
616>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000617> *content);</PRE
618></TD
619></TR
620></TABLE
621><P
622>Register a new entity for this document.</P
623><P
624></P
625><DIV
626CLASS="INFORMALTABLE"
627><P
628></P
629><TABLE
630BORDER="0"
631WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000632BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000633CELLSPACING="0"
634CELLPADDING="4"
635CLASS="CALSTABLE"
636><TR
637><TD
638WIDTH="20%"
639ALIGN="RIGHT"
640VALIGN="TOP"
641><TT
642CLASS="PARAMETER"
643><I
644>doc</I
645></TT
646>&nbsp;:</TD
647><TD
648WIDTH="80%"
649ALIGN="LEFT"
650VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000651> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000652></TR
653><TR
654><TD
655WIDTH="20%"
656ALIGN="RIGHT"
657VALIGN="TOP"
658><TT
659CLASS="PARAMETER"
660><I
661>name</I
662></TT
663>&nbsp;:</TD
664><TD
665WIDTH="80%"
666ALIGN="LEFT"
667VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000668> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000669></TR
670><TR
671><TD
672WIDTH="20%"
673ALIGN="RIGHT"
674VALIGN="TOP"
675><TT
676CLASS="PARAMETER"
677><I
678>type</I
679></TT
680>&nbsp;:</TD
681><TD
682WIDTH="80%"
683ALIGN="LEFT"
684VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000685> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000686></TR
687><TR
688><TD
689WIDTH="20%"
690ALIGN="RIGHT"
691VALIGN="TOP"
692><TT
693CLASS="PARAMETER"
694><I
695>ExternalID</I
696></TT
697>&nbsp;:</TD
698><TD
699WIDTH="80%"
700ALIGN="LEFT"
701VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000702> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000703></TR
704><TR
705><TD
706WIDTH="20%"
707ALIGN="RIGHT"
708VALIGN="TOP"
709><TT
710CLASS="PARAMETER"
711><I
712>SystemID</I
713></TT
714>&nbsp;:</TD
715><TD
716WIDTH="80%"
717ALIGN="LEFT"
718VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000719> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000720></TR
721><TR
722><TD
723WIDTH="20%"
724ALIGN="RIGHT"
725VALIGN="TOP"
726><TT
727CLASS="PARAMETER"
728><I
729>content</I
730></TT
731>&nbsp;:</TD
732><TD
733WIDTH="80%"
734ALIGN="LEFT"
735VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000736> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000737></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000738><TR
739><TD
740WIDTH="20%"
741ALIGN="RIGHT"
742VALIGN="TOP"
743><I
744CLASS="EMPHASIS"
745>Returns</I
746> :</TD
747><TD
748WIDTH="80%"
749ALIGN="LEFT"
750VALIGN="TOP"
751>a pointer to the entity or NULL in case of error</TD
752></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000753></TABLE
754><P
755></P
756></DIV
757></DIV
758><HR><DIV
759CLASS="REFSECT2"
760><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000761NAME="AEN6293"
Daniel Veillard35925471999-02-25 08:46:07 +0000762></A
763><H3
764><A
765NAME="XMLADDDTDENTITY"
766></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000767>xmlAddDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000768><TABLE
769BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000770BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000771WIDTH="100%"
772CELLPADDING="6"
773><TR
774><TD
775><PRE
776CLASS="PROGRAMLISTING"
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000777><A
778HREF="gnome-xml-entities.html#XMLENTITYPTR"
779>xmlEntityPtr</A
780> xmlAddDtdEntity (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000781HREF="gnome-xml-tree.html#XMLDOCPTR"
782>xmlDocPtr</A
783> doc,
784 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000785HREF="gnome-xml-tree.html#XMLCHAR"
786>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000787> *name,
788 int type,
789 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000790HREF="gnome-xml-tree.html#XMLCHAR"
791>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000792> *ExternalID,
793 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000794HREF="gnome-xml-tree.html#XMLCHAR"
795>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000796> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000797 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000798HREF="gnome-xml-tree.html#XMLCHAR"
799>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000800> *content);</PRE
801></TD
802></TR
803></TABLE
804><P
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000805>Register a new entity for this document DTD external subset.</P
Daniel Veillard35925471999-02-25 08:46:07 +0000806><P
807></P
808><DIV
809CLASS="INFORMALTABLE"
810><P
811></P
812><TABLE
813BORDER="0"
814WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000815BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000816CELLSPACING="0"
817CELLPADDING="4"
818CLASS="CALSTABLE"
819><TR
820><TD
821WIDTH="20%"
822ALIGN="RIGHT"
823VALIGN="TOP"
824><TT
825CLASS="PARAMETER"
826><I
827>doc</I
828></TT
829>&nbsp;:</TD
830><TD
831WIDTH="80%"
832ALIGN="LEFT"
833VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000834> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000835></TR
836><TR
837><TD
838WIDTH="20%"
839ALIGN="RIGHT"
840VALIGN="TOP"
841><TT
842CLASS="PARAMETER"
843><I
844>name</I
845></TT
846>&nbsp;:</TD
847><TD
848WIDTH="80%"
849ALIGN="LEFT"
850VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000851> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000852></TR
853><TR
854><TD
855WIDTH="20%"
856ALIGN="RIGHT"
857VALIGN="TOP"
858><TT
859CLASS="PARAMETER"
860><I
861>type</I
862></TT
863>&nbsp;:</TD
864><TD
865WIDTH="80%"
866ALIGN="LEFT"
867VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000868> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000869></TR
870><TR
871><TD
872WIDTH="20%"
873ALIGN="RIGHT"
874VALIGN="TOP"
875><TT
876CLASS="PARAMETER"
877><I
878>ExternalID</I
879></TT
880>&nbsp;:</TD
881><TD
882WIDTH="80%"
883ALIGN="LEFT"
884VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000885> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000886></TR
887><TR
888><TD
889WIDTH="20%"
890ALIGN="RIGHT"
891VALIGN="TOP"
892><TT
893CLASS="PARAMETER"
894><I
895>SystemID</I
896></TT
897>&nbsp;:</TD
898><TD
899WIDTH="80%"
900ALIGN="LEFT"
901VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000902> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000903></TR
904><TR
905><TD
906WIDTH="20%"
907ALIGN="RIGHT"
908VALIGN="TOP"
909><TT
910CLASS="PARAMETER"
911><I
912>content</I
913></TT
914>&nbsp;:</TD
915><TD
916WIDTH="80%"
917ALIGN="LEFT"
918VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +0000919> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000920></TR
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000921><TR
922><TD
923WIDTH="20%"
924ALIGN="RIGHT"
925VALIGN="TOP"
926><I
927CLASS="EMPHASIS"
928>Returns</I
929> :</TD
930><TD
931WIDTH="80%"
932ALIGN="LEFT"
933VALIGN="TOP"
934>a pointer to the entity or NULL in case of error</TD
935></TR
Daniel Veillard35925471999-02-25 08:46:07 +0000936></TABLE
937><P
938></P
939></DIV
940></DIV
941><HR><DIV
942CLASS="REFSECT2"
943><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +0000944NAME="AEN6338"
Daniel Veillard35925471999-02-25 08:46:07 +0000945></A
946><H3
947><A
948NAME="XMLGETPREDEFINEDENTITY"
949></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000950>xmlGetPredefinedEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000951><TABLE
952BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000953BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000954WIDTH="100%"
955CELLPADDING="6"
956><TR
957><TD
958><PRE
959CLASS="PROGRAMLISTING"
960><A
961HREF="gnome-xml-entities.html#XMLENTITYPTR"
962>xmlEntityPtr</A
963> xmlGetPredefinedEntity (const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +0000964HREF="gnome-xml-tree.html#XMLCHAR"
965>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +0000966> *name);</PRE
967></TD
968></TR
969></TABLE
970><P
971>Check whether this name is an predefined entity.</P
972><P
973></P
974><DIV
975CLASS="INFORMALTABLE"
976><P
977></P
978><TABLE
979BORDER="0"
980WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000981BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000982CELLSPACING="0"
983CELLPADDING="4"
984CLASS="CALSTABLE"
985><TR
986><TD
987WIDTH="20%"
988ALIGN="RIGHT"
989VALIGN="TOP"
990><TT
991CLASS="PARAMETER"
992><I
993>name</I
994></TT
995>&nbsp;:</TD
996><TD
997WIDTH="80%"
998ALIGN="LEFT"
999VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001000> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001001></TR
1002><TR
1003><TD
1004WIDTH="20%"
1005ALIGN="RIGHT"
1006VALIGN="TOP"
1007><I
1008CLASS="EMPHASIS"
1009>Returns</I
1010> :</TD
1011><TD
1012WIDTH="80%"
1013ALIGN="LEFT"
1014VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001015>NULL if not, othervise the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001016></TR
1017></TABLE
1018><P
1019></P
1020></DIV
1021></DIV
1022><HR><DIV
1023CLASS="REFSECT2"
1024><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001025NAME="AEN6359"
Daniel Veillard35925471999-02-25 08:46:07 +00001026></A
1027><H3
1028><A
1029NAME="XMLGETDOCENTITY"
1030></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001031>xmlGetDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001032><TABLE
1033BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001034BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001035WIDTH="100%"
1036CELLPADDING="6"
1037><TR
1038><TD
1039><PRE
1040CLASS="PROGRAMLISTING"
1041><A
1042HREF="gnome-xml-entities.html#XMLENTITYPTR"
1043>xmlEntityPtr</A
1044> xmlGetDocEntity (<A
1045HREF="gnome-xml-tree.html#XMLDOCPTR"
1046>xmlDocPtr</A
1047> doc,
1048 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001049HREF="gnome-xml-tree.html#XMLCHAR"
1050>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001051> *name);</PRE
1052></TD
1053></TR
1054></TABLE
1055><P
1056>Do an entity lookup in the document entity hash table and
1057returns the corrsponding entity, otherwise a lookup is done
1058in the predefined entities too.</P
1059><P
1060></P
1061><DIV
1062CLASS="INFORMALTABLE"
1063><P
1064></P
1065><TABLE
1066BORDER="0"
1067WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001068BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001069CELLSPACING="0"
1070CELLPADDING="4"
1071CLASS="CALSTABLE"
1072><TR
1073><TD
1074WIDTH="20%"
1075ALIGN="RIGHT"
1076VALIGN="TOP"
1077><TT
1078CLASS="PARAMETER"
1079><I
1080>doc</I
1081></TT
1082>&nbsp;:</TD
1083><TD
1084WIDTH="80%"
1085ALIGN="LEFT"
1086VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001087> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001088></TR
1089><TR
1090><TD
1091WIDTH="20%"
1092ALIGN="RIGHT"
1093VALIGN="TOP"
1094><TT
1095CLASS="PARAMETER"
1096><I
1097>name</I
1098></TT
1099>&nbsp;:</TD
1100><TD
1101WIDTH="80%"
1102ALIGN="LEFT"
1103VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001104> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001105></TR
1106><TR
1107><TD
1108WIDTH="20%"
1109ALIGN="RIGHT"
1110VALIGN="TOP"
1111><I
1112CLASS="EMPHASIS"
1113>Returns</I
1114> :</TD
1115><TD
1116WIDTH="80%"
1117ALIGN="LEFT"
1118VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001119>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001120></TR
1121></TABLE
1122><P
1123></P
1124></DIV
1125></DIV
1126><HR><DIV
1127CLASS="REFSECT2"
1128><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001129NAME="AEN6385"
Daniel Veillard35925471999-02-25 08:46:07 +00001130></A
1131><H3
1132><A
1133NAME="XMLGETDTDENTITY"
1134></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001135>xmlGetDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001136><TABLE
1137BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001138BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001139WIDTH="100%"
1140CELLPADDING="6"
1141><TR
1142><TD
1143><PRE
1144CLASS="PROGRAMLISTING"
1145><A
1146HREF="gnome-xml-entities.html#XMLENTITYPTR"
1147>xmlEntityPtr</A
1148> xmlGetDtdEntity (<A
1149HREF="gnome-xml-tree.html#XMLDOCPTR"
1150>xmlDocPtr</A
1151> doc,
1152 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001153HREF="gnome-xml-tree.html#XMLCHAR"
1154>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001155> *name);</PRE
1156></TD
1157></TR
1158></TABLE
1159><P
1160>Do an entity lookup in the Dtd entity hash table and
1161returns the corresponding entity, if found.</P
1162><P
1163></P
1164><DIV
1165CLASS="INFORMALTABLE"
1166><P
1167></P
1168><TABLE
1169BORDER="0"
1170WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001171BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001172CELLSPACING="0"
1173CELLPADDING="4"
1174CLASS="CALSTABLE"
1175><TR
1176><TD
1177WIDTH="20%"
1178ALIGN="RIGHT"
1179VALIGN="TOP"
1180><TT
1181CLASS="PARAMETER"
1182><I
1183>doc</I
1184></TT
1185>&nbsp;:</TD
1186><TD
1187WIDTH="80%"
1188ALIGN="LEFT"
1189VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001190> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001191></TR
1192><TR
1193><TD
1194WIDTH="20%"
1195ALIGN="RIGHT"
1196VALIGN="TOP"
1197><TT
1198CLASS="PARAMETER"
1199><I
1200>name</I
1201></TT
1202>&nbsp;:</TD
1203><TD
1204WIDTH="80%"
1205ALIGN="LEFT"
1206VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001207> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001208></TR
1209><TR
1210><TD
1211WIDTH="20%"
1212ALIGN="RIGHT"
1213VALIGN="TOP"
1214><I
1215CLASS="EMPHASIS"
1216>Returns</I
1217> :</TD
1218><TD
1219WIDTH="80%"
1220ALIGN="LEFT"
1221VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001222>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001223></TR
1224></TABLE
1225><P
1226></P
1227></DIV
1228></DIV
1229><HR><DIV
1230CLASS="REFSECT2"
1231><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001232NAME="AEN6411"
Daniel Veillardb05deb71999-08-10 19:04:08 +00001233></A
1234><H3
1235><A
1236NAME="XMLGETPARAMETERENTITY"
1237></A
1238>xmlGetParameterEntity ()</H3
1239><TABLE
1240BORDER="0"
1241BGCOLOR="#D6E8FF"
1242WIDTH="100%"
1243CELLPADDING="6"
1244><TR
1245><TD
1246><PRE
1247CLASS="PROGRAMLISTING"
1248><A
1249HREF="gnome-xml-entities.html#XMLENTITYPTR"
1250>xmlEntityPtr</A
1251> xmlGetParameterEntity (<A
1252HREF="gnome-xml-tree.html#XMLDOCPTR"
1253>xmlDocPtr</A
1254> doc,
1255 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001256HREF="gnome-xml-tree.html#XMLCHAR"
1257>xmlChar</A
Daniel Veillardb05deb71999-08-10 19:04:08 +00001258> *name);</PRE
1259></TD
1260></TR
1261></TABLE
1262><P
1263>Do an entity lookup in the internal and external subsets and
1264returns the corresponding parameter entity, if found.</P
1265><P
1266></P
1267><DIV
1268CLASS="INFORMALTABLE"
1269><P
1270></P
1271><TABLE
1272BORDER="0"
1273WIDTH="100%"
1274BGCOLOR="#FFD0D0"
1275CELLSPACING="0"
1276CELLPADDING="4"
1277CLASS="CALSTABLE"
1278><TR
1279><TD
1280WIDTH="20%"
1281ALIGN="RIGHT"
1282VALIGN="TOP"
1283><TT
1284CLASS="PARAMETER"
1285><I
1286>doc</I
1287></TT
1288>&nbsp;:</TD
1289><TD
1290WIDTH="80%"
1291ALIGN="LEFT"
1292VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001293> the document referencing the entity</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001294></TR
1295><TR
1296><TD
1297WIDTH="20%"
1298ALIGN="RIGHT"
1299VALIGN="TOP"
1300><TT
1301CLASS="PARAMETER"
1302><I
1303>name</I
1304></TT
1305>&nbsp;:</TD
1306><TD
1307WIDTH="80%"
1308ALIGN="LEFT"
1309VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001310> the entity name</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001311></TR
1312><TR
1313><TD
1314WIDTH="20%"
1315ALIGN="RIGHT"
1316VALIGN="TOP"
1317><I
1318CLASS="EMPHASIS"
1319>Returns</I
1320> :</TD
1321><TD
1322WIDTH="80%"
1323ALIGN="LEFT"
1324VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001325>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001326></TR
1327></TABLE
1328><P
1329></P
1330></DIV
1331></DIV
1332><HR><DIV
1333CLASS="REFSECT2"
1334><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001335NAME="AEN6437"
Daniel Veillard35925471999-02-25 08:46:07 +00001336></A
1337><H3
1338><A
1339NAME="XMLENCODEENTITIES"
1340></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001341>xmlEncodeEntities ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001342><TABLE
1343BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001344BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001345WIDTH="100%"
1346CELLPADDING="6"
1347><TR
1348><TD
1349><PRE
1350CLASS="PROGRAMLISTING"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001351>const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001352HREF="gnome-xml-tree.html#XMLCHAR"
1353>xmlChar</A
1354>* xmlEncodeEntities (<A
Daniel Veillard35925471999-02-25 08:46:07 +00001355HREF="gnome-xml-tree.html#XMLDOCPTR"
1356>xmlDocPtr</A
1357> doc,
1358 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001359HREF="gnome-xml-tree.html#XMLCHAR"
1360>xmlChar</A
Daniel Veillard35925471999-02-25 08:46:07 +00001361> *input);</PRE
1362></TD
1363></TR
1364></TABLE
1365><P
1366>Do a global encoding of a string, replacing the predefined entities
1367and non ASCII values with their entities and CharRef counterparts.</P
1368><P
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001369>TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary
1370compatibility</P
Daniel Veillard35925471999-02-25 08:46:07 +00001371><P
Daniel Veillardb05deb71999-08-10 19:04:08 +00001372>People must migrate their code to xmlEncodeEntitiesReentrant !
1373This routine will issue a warning when encountered.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001374><P
1375></P
1376><DIV
1377CLASS="INFORMALTABLE"
1378><P
1379></P
1380><TABLE
1381BORDER="0"
1382WIDTH="100%"
1383BGCOLOR="#FFD0D0"
1384CELLSPACING="0"
1385CELLPADDING="4"
1386CLASS="CALSTABLE"
1387><TR
1388><TD
1389WIDTH="20%"
1390ALIGN="RIGHT"
1391VALIGN="TOP"
1392><TT
1393CLASS="PARAMETER"
1394><I
1395>doc</I
1396></TT
1397>&nbsp;:</TD
1398><TD
1399WIDTH="80%"
1400ALIGN="LEFT"
1401VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001402> the document containing the string</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001403></TR
1404><TR
1405><TD
1406WIDTH="20%"
1407ALIGN="RIGHT"
1408VALIGN="TOP"
1409><TT
1410CLASS="PARAMETER"
1411><I
1412>input</I
1413></TT
1414>&nbsp;:</TD
1415><TD
1416WIDTH="80%"
1417ALIGN="LEFT"
1418VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001419> A string to convert to XML.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001420></TR
1421><TR
1422><TD
1423WIDTH="20%"
1424ALIGN="RIGHT"
1425VALIGN="TOP"
1426><I
1427CLASS="EMPHASIS"
1428>Returns</I
1429> :</TD
1430><TD
1431WIDTH="80%"
1432ALIGN="LEFT"
1433VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001434>A newly allocated string with the substitution done.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001435></TR
1436></TABLE
1437><P
1438></P
1439></DIV
1440></DIV
1441><HR><DIV
1442CLASS="REFSECT2"
1443><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001444NAME="AEN6465"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001445></A
1446><H3
1447><A
1448NAME="XMLENCODEENTITIESREENTRANT"
1449></A
1450>xmlEncodeEntitiesReentrant ()</H3
1451><TABLE
1452BORDER="0"
1453BGCOLOR="#D6E8FF"
1454WIDTH="100%"
1455CELLPADDING="6"
1456><TR
1457><TD
1458><PRE
1459CLASS="PROGRAMLISTING"
1460><A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001461HREF="gnome-xml-tree.html#XMLCHAR"
1462>xmlChar</A
1463>* xmlEncodeEntitiesReentrant (<A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001464HREF="gnome-xml-tree.html#XMLDOCPTR"
1465>xmlDocPtr</A
1466> doc,
1467 const <A
Daniel Veillarddd6b3671999-09-23 22:19:22 +00001468HREF="gnome-xml-tree.html#XMLCHAR"
1469>xmlChar</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001470> *input);</PRE
1471></TD
1472></TR
1473></TABLE
1474><P
1475>Do a global encoding of a string, replacing the predefined entities
1476and non ASCII values with their entities and CharRef counterparts.
1477Contrary to xmlEncodeEntities, this routine is reentrant, and result
1478must be deallocated.</P
1479><P
1480>TODO !!!! Once moved to UTF-8 internal encoding, the encoding of non-ascii
1481get erroneous.</P
1482><P
Daniel Veillard35925471999-02-25 08:46:07 +00001483></P
1484><DIV
1485CLASS="INFORMALTABLE"
1486><P
1487></P
1488><TABLE
1489BORDER="0"
1490WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001491BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001492CELLSPACING="0"
1493CELLPADDING="4"
1494CLASS="CALSTABLE"
1495><TR
1496><TD
1497WIDTH="20%"
1498ALIGN="RIGHT"
1499VALIGN="TOP"
1500><TT
1501CLASS="PARAMETER"
1502><I
1503>doc</I
1504></TT
1505>&nbsp;:</TD
1506><TD
1507WIDTH="80%"
1508ALIGN="LEFT"
1509VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001510> the document containing the string</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001511></TR
1512><TR
1513><TD
1514WIDTH="20%"
1515ALIGN="RIGHT"
1516VALIGN="TOP"
1517><TT
1518CLASS="PARAMETER"
1519><I
1520>input</I
1521></TT
1522>&nbsp;:</TD
1523><TD
1524WIDTH="80%"
1525ALIGN="LEFT"
1526VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001527> A string to convert to XML.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001528></TR
1529><TR
1530><TD
1531WIDTH="20%"
1532ALIGN="RIGHT"
1533VALIGN="TOP"
1534><I
1535CLASS="EMPHASIS"
1536>Returns</I
1537> :</TD
1538><TD
1539WIDTH="80%"
1540ALIGN="LEFT"
1541VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001542>A newly allocated string with the substitution done.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001543></TR
1544></TABLE
1545><P
1546></P
1547></DIV
1548></DIV
1549><HR><DIV
1550CLASS="REFSECT2"
1551><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001552NAME="AEN6492"
Daniel Veillard35925471999-02-25 08:46:07 +00001553></A
1554><H3
1555><A
1556NAME="XMLCREATEENTITIESTABLE"
1557></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001558>xmlCreateEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001559><TABLE
1560BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001561BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001562WIDTH="100%"
1563CELLPADDING="6"
1564><TR
1565><TD
1566><PRE
1567CLASS="PROGRAMLISTING"
1568><A
1569HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1570>xmlEntitiesTablePtr</A
1571> xmlCreateEntitiesTable (void);</PRE
1572></TD
1573></TR
1574></TABLE
1575><P
1576>create and initialize an empty entities hash table.</P
1577><P
1578></P
1579><DIV
1580CLASS="INFORMALTABLE"
1581><P
1582></P
1583><TABLE
1584BORDER="0"
1585WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001586BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001587CELLSPACING="0"
1588CELLPADDING="4"
1589CLASS="CALSTABLE"
1590><TR
1591><TD
1592WIDTH="20%"
1593ALIGN="RIGHT"
1594VALIGN="TOP"
1595><I
1596CLASS="EMPHASIS"
1597>Returns</I
1598> :</TD
1599><TD
1600WIDTH="80%"
1601ALIGN="LEFT"
1602VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001603>the xmlEntitiesTablePtr just created or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001604></TR
1605></TABLE
1606><P
1607></P
1608></DIV
1609></DIV
1610><HR><DIV
1611CLASS="REFSECT2"
1612><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001613NAME="AEN6508"
Daniel Veillard35925471999-02-25 08:46:07 +00001614></A
1615><H3
1616><A
1617NAME="XMLCOPYENTITIESTABLE"
1618></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001619>xmlCopyEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001620><TABLE
1621BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001622BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001623WIDTH="100%"
1624CELLPADDING="6"
1625><TR
1626><TD
1627><PRE
1628CLASS="PROGRAMLISTING"
1629><A
1630HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1631>xmlEntitiesTablePtr</A
1632> xmlCopyEntitiesTable (<A
1633HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1634>xmlEntitiesTablePtr</A
1635> table);</PRE
1636></TD
1637></TR
1638></TABLE
1639><P
1640>Build a copy of an entity table.</P
1641><P
1642></P
1643><DIV
1644CLASS="INFORMALTABLE"
1645><P
1646></P
1647><TABLE
1648BORDER="0"
1649WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001650BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001651CELLSPACING="0"
1652CELLPADDING="4"
1653CLASS="CALSTABLE"
1654><TR
1655><TD
1656WIDTH="20%"
1657ALIGN="RIGHT"
1658VALIGN="TOP"
1659><TT
1660CLASS="PARAMETER"
1661><I
1662>table</I
1663></TT
1664>&nbsp;:</TD
1665><TD
1666WIDTH="80%"
1667ALIGN="LEFT"
1668VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001669> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001670></TR
1671><TR
1672><TD
1673WIDTH="20%"
1674ALIGN="RIGHT"
1675VALIGN="TOP"
1676><I
1677CLASS="EMPHASIS"
1678>Returns</I
1679> :</TD
1680><TD
1681WIDTH="80%"
1682ALIGN="LEFT"
1683VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001684>the new xmlEntitiesTablePtr or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001685></TR
1686></TABLE
1687><P
1688></P
1689></DIV
1690></DIV
1691><HR><DIV
1692CLASS="REFSECT2"
1693><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001694NAME="AEN6529"
Daniel Veillard35925471999-02-25 08:46:07 +00001695></A
1696><H3
1697><A
1698NAME="XMLFREEENTITIESTABLE"
1699></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001700>xmlFreeEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001701><TABLE
1702BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001703BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001704WIDTH="100%"
1705CELLPADDING="6"
1706><TR
1707><TD
1708><PRE
1709CLASS="PROGRAMLISTING"
1710>void xmlFreeEntitiesTable (<A
1711HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1712>xmlEntitiesTablePtr</A
1713> table);</PRE
1714></TD
1715></TR
1716></TABLE
1717><P
1718>Deallocate the memory used by an entities hash table.</P
1719><P
1720></P
1721><DIV
1722CLASS="INFORMALTABLE"
1723><P
1724></P
1725><TABLE
1726BORDER="0"
1727WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001728BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001729CELLSPACING="0"
1730CELLPADDING="4"
1731CLASS="CALSTABLE"
1732><TR
1733><TD
1734WIDTH="20%"
1735ALIGN="RIGHT"
1736VALIGN="TOP"
1737><TT
1738CLASS="PARAMETER"
1739><I
1740>table</I
1741></TT
1742>&nbsp;:</TD
1743><TD
1744WIDTH="80%"
1745ALIGN="LEFT"
1746VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001747> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001748></TR
1749></TABLE
1750><P
1751></P
1752></DIV
1753></DIV
1754><HR><DIV
1755CLASS="REFSECT2"
1756><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001757NAME="AEN6545"
Daniel Veillard35925471999-02-25 08:46:07 +00001758></A
1759><H3
1760><A
1761NAME="XMLDUMPENTITIESTABLE"
1762></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001763>xmlDumpEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001764><TABLE
1765BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001766BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001767WIDTH="100%"
1768CELLPADDING="6"
1769><TR
1770><TD
1771><PRE
1772CLASS="PROGRAMLISTING"
1773>void xmlDumpEntitiesTable (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +00001774HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1775>xmlBufferPtr</A
1776> buf,
1777 <A
Daniel Veillard35925471999-02-25 08:46:07 +00001778HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1779>xmlEntitiesTablePtr</A
1780> table);</PRE
1781></TD
1782></TR
1783></TABLE
1784><P
1785>This will dump the content of the entity table as an XML DTD definition</P
1786><P
Daniel Veillard35925471999-02-25 08:46:07 +00001787></P
1788><DIV
1789CLASS="INFORMALTABLE"
1790><P
1791></P
1792><TABLE
1793BORDER="0"
1794WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001795BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001796CELLSPACING="0"
1797CELLPADDING="4"
1798CLASS="CALSTABLE"
1799><TR
1800><TD
1801WIDTH="20%"
1802ALIGN="RIGHT"
1803VALIGN="TOP"
1804><TT
1805CLASS="PARAMETER"
1806><I
Daniel Veillard5099ae81999-04-21 20:12:07 +00001807>buf</I
1808></TT
1809>&nbsp;:</TD
1810><TD
1811WIDTH="80%"
1812ALIGN="LEFT"
1813VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001814> An XML buffer.</TD
Daniel Veillard5099ae81999-04-21 20:12:07 +00001815></TR
1816><TR
1817><TD
1818WIDTH="20%"
1819ALIGN="RIGHT"
1820VALIGN="TOP"
1821><TT
1822CLASS="PARAMETER"
1823><I
Daniel Veillard35925471999-02-25 08:46:07 +00001824>table</I
1825></TT
1826>&nbsp;:</TD
1827><TD
1828WIDTH="80%"
1829ALIGN="LEFT"
1830VALIGN="TOP"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001831> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001832></TR
1833></TABLE
1834><P
1835></P
1836></DIV
1837></DIV
Daniel Veillardf3a73582000-01-05 14:58:39 +00001838><HR><DIV
1839CLASS="REFSECT2"
1840><A
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001841NAME="AEN6566"
1842></A
1843><H3
1844><A
1845NAME="XMLDUMPENTITYDECL"
1846></A
1847>xmlDumpEntityDecl ()</H3
1848><TABLE
1849BORDER="0"
1850BGCOLOR="#D6E8FF"
1851WIDTH="100%"
1852CELLPADDING="6"
1853><TR
1854><TD
1855><PRE
1856CLASS="PROGRAMLISTING"
1857>void xmlDumpEntityDecl (<A
1858HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1859>xmlBufferPtr</A
1860> buf,
1861 <A
1862HREF="gnome-xml-entities.html#XMLENTITYPTR"
1863>xmlEntityPtr</A
1864> ent);</PRE
1865></TD
1866></TR
1867></TABLE
1868><P
1869>This will dump the content of the entity table as an XML DTD definition</P
1870><P
1871></P
1872><DIV
1873CLASS="INFORMALTABLE"
1874><P
1875></P
1876><TABLE
1877BORDER="0"
1878WIDTH="100%"
1879BGCOLOR="#FFD0D0"
1880CELLSPACING="0"
1881CELLPADDING="4"
1882CLASS="CALSTABLE"
1883><TR
1884><TD
1885WIDTH="20%"
1886ALIGN="RIGHT"
1887VALIGN="TOP"
1888><TT
1889CLASS="PARAMETER"
1890><I
1891>buf</I
1892></TT
1893>&nbsp;:</TD
1894><TD
1895WIDTH="80%"
1896ALIGN="LEFT"
1897VALIGN="TOP"
1898> An XML buffer.</TD
1899></TR
1900><TR
1901><TD
1902WIDTH="20%"
1903ALIGN="RIGHT"
1904VALIGN="TOP"
1905><TT
1906CLASS="PARAMETER"
1907><I
1908>ent</I
1909></TT
1910>&nbsp;:</TD
1911><TD
1912WIDTH="80%"
1913ALIGN="LEFT"
1914VALIGN="TOP"
1915> An entity table</TD
1916></TR
1917></TABLE
1918><P
1919></P
1920></DIV
1921></DIV
1922><HR><DIV
1923CLASS="REFSECT2"
1924><A
1925NAME="AEN6587"
Daniel Veillardf3a73582000-01-05 14:58:39 +00001926></A
1927><H3
1928><A
1929NAME="XMLCLEANUPPREDEFINEDENTITIES"
1930></A
1931>xmlCleanupPredefinedEntities ()</H3
1932><TABLE
1933BORDER="0"
1934BGCOLOR="#D6E8FF"
1935WIDTH="100%"
1936CELLPADDING="6"
1937><TR
1938><TD
1939><PRE
1940CLASS="PROGRAMLISTING"
1941>void xmlCleanupPredefinedEntities (void);</PRE
1942></TD
1943></TR
1944></TABLE
1945><P
1946>Cleanup up the predefined entities table.</P
1947><P
1948></P
1949></DIV
Daniel Veillardedfb29b2000-03-14 19:59:05 +00001950><HR><DIV
1951CLASS="REFSECT2"
1952><A
1953NAME="AEN6593"
1954></A
1955><H3
1956><A
1957NAME="XMLENTITYADDREFERENCE"
1958></A
1959>xmlEntityAddReference ()</H3
1960><TABLE
1961BORDER="0"
1962BGCOLOR="#D6E8FF"
1963WIDTH="100%"
1964CELLPADDING="6"
1965><TR
1966><TD
1967><PRE
1968CLASS="PROGRAMLISTING"
1969>int xmlEntityAddReference (<A
1970HREF="gnome-xml-entities.html#XMLENTITYPTR"
1971>xmlEntityPtr</A
1972> ent,
1973 const <A
1974HREF="gnome-xml-tree.html#XMLCHAR"
1975>xmlChar</A
1976> *to);</PRE
1977></TD
1978></TR
1979></TABLE
1980><P
1981>Function to register reuse of an existing entity from a (new) one
1982Used to keep track of references and detect cycles (well formedness
1983errors !).</P
1984><P
1985></P
1986><DIV
1987CLASS="INFORMALTABLE"
1988><P
1989></P
1990><TABLE
1991BORDER="0"
1992WIDTH="100%"
1993BGCOLOR="#FFD0D0"
1994CELLSPACING="0"
1995CELLPADDING="4"
1996CLASS="CALSTABLE"
1997><TR
1998><TD
1999WIDTH="20%"
2000ALIGN="RIGHT"
2001VALIGN="TOP"
2002><TT
2003CLASS="PARAMETER"
2004><I
2005>ent</I
2006></TT
2007>&nbsp;:</TD
2008><TD
2009WIDTH="80%"
2010ALIGN="LEFT"
2011VALIGN="TOP"
2012> an existing entity</TD
2013></TR
2014><TR
2015><TD
2016WIDTH="20%"
2017ALIGN="RIGHT"
2018VALIGN="TOP"
2019><TT
2020CLASS="PARAMETER"
2021><I
2022>to</I
2023></TT
2024>&nbsp;:</TD
2025><TD
2026WIDTH="80%"
2027ALIGN="LEFT"
2028VALIGN="TOP"
2029> the entity name it's referencing</TD
2030></TR
2031><TR
2032><TD
2033WIDTH="20%"
2034ALIGN="RIGHT"
2035VALIGN="TOP"
2036><I
2037CLASS="EMPHASIS"
2038>Returns</I
2039> :</TD
2040><TD
2041WIDTH="80%"
2042ALIGN="LEFT"
2043VALIGN="TOP"
2044> 0 if Okay, -1 in case of general error, 1 in case of loop
2045detection.</TD
2046></TR
2047></TABLE
2048><P
2049></P
2050></DIV
2051></DIV
Daniel Veillard35925471999-02-25 08:46:07 +00002052></DIV
2053><DIV
2054CLASS="NAVFOOTER"
Daniel Veillard00fdf371999-10-08 09:40:39 +00002055><BR
2056CLEAR="all"><BR><TABLE
Daniel Veillard35925471999-02-25 08:46:07 +00002057WIDTH="100%"
2058BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00002059BGCOLOR="#000000"
2060CELLPADDING="1"
Daniel Veillard35925471999-02-25 08:46:07 +00002061CELLSPACING="0"
2062><TR
2063><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002064WIDTH="25%"
2065BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002066ALIGN="left"
Daniel Veillard35925471999-02-25 08:46:07 +00002067><A
2068HREF="gnome-xml-tree.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002069><FONT
2070COLOR="#FFFFFF"
2071SIZE="3"
2072><B
2073>&#60;&#60;&#60; Previous Page</B
2074></FONT
2075></A
Daniel Veillard35925471999-02-25 08:46:07 +00002076></TD
2077><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002078WIDTH="25%"
2079BGCOLOR="#0000C0"
Daniel Veillard35925471999-02-25 08:46:07 +00002080ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +00002081><FONT
2082COLOR="#FFFFFF"
2083SIZE="3"
2084><B
Daniel Veillard35925471999-02-25 08:46:07 +00002085><A
2086HREF="book1.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002087><FONT
2088COLOR="#FFFFFF"
2089SIZE="3"
2090><B
2091>Home</B
2092></FONT
2093></A
2094></B
2095></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002096></TD
2097><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002098WIDTH="25%"
2099BGCOLOR="#00C000"
2100ALIGN="center"
2101><FONT
2102COLOR="#FFFFFF"
2103SIZE="3"
2104><B
2105><A
Daniel Veillard35008381999-10-25 13:15:52 +00002106HREF="libxml-lib.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002107><FONT
2108COLOR="#FFFFFF"
2109SIZE="3"
2110><B
2111>Up</B
2112></FONT
2113></A
2114></B
2115></FONT
2116></TD
2117><TD
2118WIDTH="25%"
2119BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00002120ALIGN="right"
Daniel Veillard35925471999-02-25 08:46:07 +00002121><A
2122HREF="gnome-xml-valid.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00002123><FONT
2124COLOR="#FFFFFF"
2125SIZE="3"
2126><B
2127>Next Page &#62;&#62;&#62;</B
2128></FONT
2129></A
Daniel Veillard35925471999-02-25 08:46:07 +00002130></TD
2131></TR
2132><TR
2133><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002134COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002135ALIGN="left"
Daniel Veillard14fff061999-06-22 21:49:07 +00002136><FONT
2137COLOR="#FFFFFF"
2138SIZE="3"
2139><B
2140>tree</B
2141></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00002142></TD
2143><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00002144COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00002145ALIGN="right"
Daniel Veillard14fff061999-06-22 21:49:07 +00002146><FONT
2147COLOR="#FFFFFF"
2148SIZE="3"
2149><B
2150>valid</B
2151></FONT
2152></TD
Daniel Veillard35925471999-02-25 08:46:07 +00002153></TR
2154></TABLE
2155></DIV
2156></BODY
2157></HTML
2158>