blob: 71f29948ac1721600d6925f864a36dd48363fbe6 [file] [log] [blame]
Daniel Veillard35925471999-02-25 08:46:07 +00001<HTML
2><HEAD
3><TITLE
4>entities</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Gnome XML Library"
13HREF="libxml.html"><LINK
14REL="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
85HREF="libxml.html"
86><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
114>entities</H1
115><DIV
116CLASS="REFNAMEDIV"
117><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000118NAME="AEN4098"
Daniel Veillard35925471999-02-25 08:46:07 +0000119></A
120><H2
121>Name</H2
Daniel Veillard14fff061999-06-22 21:49:07 +0000122>entities &#8212; </DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000126NAME="AEN4101"
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
141#define <A
142HREF="gnome-xml-entities.html#XML-INTERNAL-GENERAL-ENTITY"
143>XML_INTERNAL_GENERAL_ENTITY</A
144>
145#define <A
146HREF="gnome-xml-entities.html#XML-EXTERNAL-GENERAL-PARSED-ENTITY"
147>XML_EXTERNAL_GENERAL_PARSED_ENTITY</A
148>
149#define <A
150HREF="gnome-xml-entities.html#XML-EXTERNAL-GENERAL-UNPARSED-ENTITY"
151>XML_EXTERNAL_GENERAL_UNPARSED_ENTITY</A
152>
153#define <A
154HREF="gnome-xml-entities.html#XML-INTERNAL-PARAMETER-ENTITY"
155>XML_INTERNAL_PARAMETER_ENTITY</A
156>
157#define <A
158HREF="gnome-xml-entities.html#XML-EXTERNAL-PARAMETER-ENTITY"
159>XML_EXTERNAL_PARAMETER_ENTITY</A
160>
161#define <A
162HREF="gnome-xml-entities.html#XML-INTERNAL-PREDEFINED-ENTITY"
163>XML_INTERNAL_PREDEFINED_ENTITY</A
164>
165typedef <A
166HREF="gnome-xml-entities.html#XMLENTITYPTR"
167>xmlEntityPtr</A
Daniel Veillard14fff061999-06-22 21:49:07 +0000168>;
Daniel Veillard35925471999-02-25 08:46:07 +0000169#define <A
170HREF="gnome-xml-entities.html#XML-MIN-ENTITIES-TABLE"
171>XML_MIN_ENTITIES_TABLE</A
172>
173typedef <A
174HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
175>xmlEntitiesTablePtr</A
Daniel Veillard14fff061999-06-22 21:49:07 +0000176>;
Daniel Veillard35925471999-02-25 08:46:07 +0000177void <A
178HREF="gnome-xml-entities.html#XMLADDDOCENTITY"
179>xmlAddDocEntity</A
180> (<A
181HREF="gnome-xml-tree.html#XMLDOCPTR"
182>xmlDocPtr</A
183> doc,
184 const <A
185HREF="gnome-xml-tree.html#CHAR"
186>CHAR</A
187> *name,
188 int type,
189 const <A
190HREF="gnome-xml-tree.html#CHAR"
191>CHAR</A
192> *ExternalID,
193 const <A
194HREF="gnome-xml-tree.html#CHAR"
195>CHAR</A
196> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000197 const <A
Daniel Veillard35925471999-02-25 08:46:07 +0000198HREF="gnome-xml-tree.html#CHAR"
199>CHAR</A
200> *content);
201void <A
202HREF="gnome-xml-entities.html#XMLADDDTDENTITY"
203>xmlAddDtdEntity</A
204> (<A
205HREF="gnome-xml-tree.html#XMLDOCPTR"
206>xmlDocPtr</A
207> doc,
208 const <A
209HREF="gnome-xml-tree.html#CHAR"
210>CHAR</A
211> *name,
212 int type,
213 const <A
214HREF="gnome-xml-tree.html#CHAR"
215>CHAR</A
216> *ExternalID,
217 const <A
218HREF="gnome-xml-tree.html#CHAR"
219>CHAR</A
220> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000221 const <A
Daniel Veillard35925471999-02-25 08:46:07 +0000222HREF="gnome-xml-tree.html#CHAR"
223>CHAR</A
224> *content);
225<A
226HREF="gnome-xml-entities.html#XMLENTITYPTR"
227>xmlEntityPtr</A
228> <A
229HREF="gnome-xml-entities.html#XMLGETPREDEFINEDENTITY"
230>xmlGetPredefinedEntity</A
231> (const <A
232HREF="gnome-xml-tree.html#CHAR"
233>CHAR</A
234> *name);
235<A
236HREF="gnome-xml-entities.html#XMLENTITYPTR"
237>xmlEntityPtr</A
238> <A
239HREF="gnome-xml-entities.html#XMLGETDOCENTITY"
240>xmlGetDocEntity</A
241> (<A
242HREF="gnome-xml-tree.html#XMLDOCPTR"
243>xmlDocPtr</A
244> doc,
245 const <A
246HREF="gnome-xml-tree.html#CHAR"
247>CHAR</A
248> *name);
249<A
250HREF="gnome-xml-entities.html#XMLENTITYPTR"
251>xmlEntityPtr</A
252> <A
253HREF="gnome-xml-entities.html#XMLGETDTDENTITY"
254>xmlGetDtdEntity</A
255> (<A
256HREF="gnome-xml-tree.html#XMLDOCPTR"
257>xmlDocPtr</A
258> doc,
259 const <A
260HREF="gnome-xml-tree.html#CHAR"
261>CHAR</A
262> *name);
Daniel Veillardb05deb71999-08-10 19:04:08 +0000263<A
264HREF="gnome-xml-entities.html#XMLENTITYPTR"
265>xmlEntityPtr</A
266> <A
267HREF="gnome-xml-entities.html#XMLGETPARAMETERENTITY"
268>xmlGetParameterEntity</A
269> (<A
270HREF="gnome-xml-tree.html#XMLDOCPTR"
271>xmlDocPtr</A
272> doc,
273 const <A
274HREF="gnome-xml-tree.html#CHAR"
275>CHAR</A
276> *name);
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000277const <A
278HREF="gnome-xml-tree.html#CHAR"
279>CHAR</A
280>* <A
281HREF="gnome-xml-entities.html#XMLENCODEENTITIES"
282>xmlEncodeEntities</A
283> (<A
284HREF="gnome-xml-tree.html#XMLDOCPTR"
285>xmlDocPtr</A
286> doc,
287 const <A
288HREF="gnome-xml-tree.html#CHAR"
289>CHAR</A
290> *input);
Daniel Veillard35925471999-02-25 08:46:07 +0000291<A
292HREF="gnome-xml-tree.html#CHAR"
293>CHAR</A
294>* <A
Daniel Veillard1566d3a1999-07-15 14:24:29 +0000295HREF="gnome-xml-entities.html#XMLENCODEENTITIESREENTRANT"
296>xmlEncodeEntitiesReentrant</A
297> (<A
Daniel Veillard35925471999-02-25 08:46:07 +0000298HREF="gnome-xml-tree.html#XMLDOCPTR"
299>xmlDocPtr</A
300> doc,
301 const <A
302HREF="gnome-xml-tree.html#CHAR"
303>CHAR</A
304> *input);
305<A
306HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
307>xmlEntitiesTablePtr</A
308> <A
309HREF="gnome-xml-entities.html#XMLCREATEENTITIESTABLE"
310>xmlCreateEntitiesTable</A
311> (void);
312<A
313HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
314>xmlEntitiesTablePtr</A
315> <A
316HREF="gnome-xml-entities.html#XMLCOPYENTITIESTABLE"
317>xmlCopyEntitiesTable</A
318> (<A
319HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
320>xmlEntitiesTablePtr</A
321> table);
322void <A
323HREF="gnome-xml-entities.html#XMLFREEENTITIESTABLE"
324>xmlFreeEntitiesTable</A
325> (<A
326HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
327>xmlEntitiesTablePtr</A
328> table);
329void <A
330HREF="gnome-xml-entities.html#XMLDUMPENTITIESTABLE"
331>xmlDumpEntitiesTable</A
332> (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +0000333HREF="gnome-xml-tree.html#XMLBUFFERPTR"
334>xmlBufferPtr</A
335> buf,
336 <A
Daniel Veillard35925471999-02-25 08:46:07 +0000337HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
338>xmlEntitiesTablePtr</A
Daniel Veillard011b63c1999-06-02 17:44:04 +0000339> table);</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000340></TD
341></TR
342></TABLE
343></DIV
344><DIV
345CLASS="REFSECT1"
346><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000347NAME="AEN4158"
Daniel Veillard35925471999-02-25 08:46:07 +0000348></A
349><H2
350>Description</H2
351><P
352></P
353></DIV
354><DIV
355CLASS="REFSECT1"
356><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000357NAME="AEN4161"
Daniel Veillard35925471999-02-25 08:46:07 +0000358></A
359><H2
360>Details</H2
Daniel Veillard14fff061999-06-22 21:49:07 +0000361><DIV
Daniel Veillard35925471999-02-25 08:46:07 +0000362CLASS="REFSECT2"
363><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000364NAME="AEN4163"
Daniel Veillard35925471999-02-25 08:46:07 +0000365></A
366><H3
367><A
368NAME="XML-INTERNAL-GENERAL-ENTITY"
369></A
370>XML_INTERNAL_GENERAL_ENTITY</H3
371><TABLE
372BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000373BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000374WIDTH="100%"
375CELLPADDING="6"
376><TR
377><TD
378><PRE
379CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000380>#define XML_INTERNAL_GENERAL_ENTITY 1</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000381></TD
382></TR
383></TABLE
384><P
385></P
386></DIV
387><HR><DIV
388CLASS="REFSECT2"
389><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000390NAME="AEN4168"
Daniel Veillard35925471999-02-25 08:46:07 +0000391></A
392><H3
393><A
394NAME="XML-EXTERNAL-GENERAL-PARSED-ENTITY"
395></A
396>XML_EXTERNAL_GENERAL_PARSED_ENTITY</H3
397><TABLE
398BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000399BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000400WIDTH="100%"
401CELLPADDING="6"
402><TR
403><TD
404><PRE
405CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000406>#define XML_EXTERNAL_GENERAL_PARSED_ENTITY 2</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000407></TD
408></TR
409></TABLE
410><P
411></P
412></DIV
413><HR><DIV
414CLASS="REFSECT2"
415><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000416NAME="AEN4173"
Daniel Veillard35925471999-02-25 08:46:07 +0000417></A
418><H3
419><A
420NAME="XML-EXTERNAL-GENERAL-UNPARSED-ENTITY"
421></A
422>XML_EXTERNAL_GENERAL_UNPARSED_ENTITY</H3
423><TABLE
424BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000425BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000426WIDTH="100%"
427CELLPADDING="6"
428><TR
429><TD
430><PRE
431CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000432>#define XML_EXTERNAL_GENERAL_UNPARSED_ENTITY 3</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000433></TD
434></TR
435></TABLE
436><P
437></P
438></DIV
439><HR><DIV
440CLASS="REFSECT2"
441><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000442NAME="AEN4178"
Daniel Veillard35925471999-02-25 08:46:07 +0000443></A
444><H3
445><A
446NAME="XML-INTERNAL-PARAMETER-ENTITY"
447></A
448>XML_INTERNAL_PARAMETER_ENTITY</H3
449><TABLE
450BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000451BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000452WIDTH="100%"
453CELLPADDING="6"
454><TR
455><TD
456><PRE
457CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000458>#define XML_INTERNAL_PARAMETER_ENTITY 4</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000459></TD
460></TR
461></TABLE
462><P
463></P
464></DIV
465><HR><DIV
466CLASS="REFSECT2"
467><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000468NAME="AEN4183"
Daniel Veillard35925471999-02-25 08:46:07 +0000469></A
470><H3
471><A
472NAME="XML-EXTERNAL-PARAMETER-ENTITY"
473></A
474>XML_EXTERNAL_PARAMETER_ENTITY</H3
475><TABLE
476BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000477BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000478WIDTH="100%"
479CELLPADDING="6"
480><TR
481><TD
482><PRE
483CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000484>#define XML_EXTERNAL_PARAMETER_ENTITY 5</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000485></TD
486></TR
487></TABLE
488><P
489></P
490></DIV
491><HR><DIV
492CLASS="REFSECT2"
493><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000494NAME="AEN4188"
Daniel Veillard35925471999-02-25 08:46:07 +0000495></A
496><H3
497><A
498NAME="XML-INTERNAL-PREDEFINED-ENTITY"
499></A
500>XML_INTERNAL_PREDEFINED_ENTITY</H3
501><TABLE
502BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000503BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000504WIDTH="100%"
505CELLPADDING="6"
506><TR
507><TD
508><PRE
509CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000510>#define XML_INTERNAL_PREDEFINED_ENTITY 6</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000511></TD
512></TR
513></TABLE
514><P
515></P
516></DIV
517><HR><DIV
518CLASS="REFSECT2"
519><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000520NAME="AEN4193"
Daniel Veillard35925471999-02-25 08:46:07 +0000521></A
522><H3
523><A
524NAME="XMLENTITYPTR"
525></A
526>xmlEntityPtr</H3
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000527><TABLE
528BORDER="0"
529BGCOLOR="#D6E8FF"
530WIDTH="100%"
531CELLPADDING="6"
532><TR
533><TD
534><PRE
535CLASS="PROGRAMLISTING"
536>typedef xmlEntity *xmlEntityPtr;</PRE
537></TD
538></TR
539></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000540><P
541></P
542></DIV
543><HR><DIV
544CLASS="REFSECT2"
545><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000546NAME="AEN4198"
Daniel Veillard35925471999-02-25 08:46:07 +0000547></A
548><H3
549><A
550NAME="XML-MIN-ENTITIES-TABLE"
551></A
552>XML_MIN_ENTITIES_TABLE</H3
553><TABLE
554BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000555BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000556WIDTH="100%"
557CELLPADDING="6"
558><TR
559><TD
560><PRE
561CLASS="PROGRAMLISTING"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000562>#define XML_MIN_ENTITIES_TABLE 32</PRE
Daniel Veillard35925471999-02-25 08:46:07 +0000563></TD
564></TR
565></TABLE
566><P
567></P
568></DIV
569><HR><DIV
570CLASS="REFSECT2"
571><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000572NAME="AEN4203"
Daniel Veillard35925471999-02-25 08:46:07 +0000573></A
574><H3
575><A
576NAME="XMLENTITIESTABLEPTR"
577></A
578>xmlEntitiesTablePtr</H3
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000579><TABLE
580BORDER="0"
581BGCOLOR="#D6E8FF"
582WIDTH="100%"
583CELLPADDING="6"
584><TR
585><TD
586><PRE
587CLASS="PROGRAMLISTING"
588>typedef xmlEntitiesTable *xmlEntitiesTablePtr;</PRE
589></TD
590></TR
591></TABLE
Daniel Veillard35925471999-02-25 08:46:07 +0000592><P
593></P
594></DIV
595><HR><DIV
596CLASS="REFSECT2"
597><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000598NAME="AEN4208"
Daniel Veillard35925471999-02-25 08:46:07 +0000599></A
600><H3
601><A
602NAME="XMLADDDOCENTITY"
603></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000604>xmlAddDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000605><TABLE
606BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000607BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000608WIDTH="100%"
609CELLPADDING="6"
610><TR
611><TD
612><PRE
613CLASS="PROGRAMLISTING"
614>void xmlAddDocEntity (<A
615HREF="gnome-xml-tree.html#XMLDOCPTR"
616>xmlDocPtr</A
617> doc,
618 const <A
619HREF="gnome-xml-tree.html#CHAR"
620>CHAR</A
621> *name,
622 int type,
623 const <A
624HREF="gnome-xml-tree.html#CHAR"
625>CHAR</A
626> *ExternalID,
627 const <A
628HREF="gnome-xml-tree.html#CHAR"
629>CHAR</A
630> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000631 const <A
Daniel Veillard35925471999-02-25 08:46:07 +0000632HREF="gnome-xml-tree.html#CHAR"
633>CHAR</A
634> *content);</PRE
635></TD
636></TR
637></TABLE
638><P
639>Register a new entity for this document.</P
640><P
641></P
642><DIV
643CLASS="INFORMALTABLE"
644><P
645></P
646><TABLE
647BORDER="0"
648WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000649BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000650CELLSPACING="0"
651CELLPADDING="4"
652CLASS="CALSTABLE"
653><TR
654><TD
655WIDTH="20%"
656ALIGN="RIGHT"
657VALIGN="TOP"
658><TT
659CLASS="PARAMETER"
660><I
661>doc</I
662></TT
663>&nbsp;:</TD
664><TD
665WIDTH="80%"
666ALIGN="LEFT"
667VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000668> the document</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>name</I
679></TT
680>&nbsp;:</TD
681><TD
682WIDTH="80%"
683ALIGN="LEFT"
684VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000685> the entity name</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>type</I
696></TT
697>&nbsp;:</TD
698><TD
699WIDTH="80%"
700ALIGN="LEFT"
701VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000702> the entity type XML_xxx_yyy_ENTITY</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>ExternalID</I
713></TT
714>&nbsp;:</TD
715><TD
716WIDTH="80%"
717ALIGN="LEFT"
718VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000719> the entity external 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>SystemID</I
730></TT
731>&nbsp;:</TD
732><TD
733WIDTH="80%"
734ALIGN="LEFT"
735VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000736> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000737></TR
738><TR
739><TD
740WIDTH="20%"
741ALIGN="RIGHT"
742VALIGN="TOP"
743><TT
744CLASS="PARAMETER"
745><I
746>content</I
747></TT
748>&nbsp;:</TD
749><TD
750WIDTH="80%"
751ALIGN="LEFT"
752VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000753> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000754></TR
755></TABLE
756><P
757></P
758></DIV
759></DIV
760><HR><DIV
761CLASS="REFSECT2"
762><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000763NAME="AEN4248"
Daniel Veillard35925471999-02-25 08:46:07 +0000764></A
765><H3
766><A
767NAME="XMLADDDTDENTITY"
768></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000769>xmlAddDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000770><TABLE
771BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000772BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000773WIDTH="100%"
774CELLPADDING="6"
775><TR
776><TD
777><PRE
778CLASS="PROGRAMLISTING"
779>void xmlAddDtdEntity (<A
780HREF="gnome-xml-tree.html#XMLDOCPTR"
781>xmlDocPtr</A
782> doc,
783 const <A
784HREF="gnome-xml-tree.html#CHAR"
785>CHAR</A
786> *name,
787 int type,
788 const <A
789HREF="gnome-xml-tree.html#CHAR"
790>CHAR</A
791> *ExternalID,
792 const <A
793HREF="gnome-xml-tree.html#CHAR"
794>CHAR</A
795> *SystemID,
Daniel Veillardd2d38e91999-08-30 11:42:36 +0000796 const <A
Daniel Veillard35925471999-02-25 08:46:07 +0000797HREF="gnome-xml-tree.html#CHAR"
798>CHAR</A
799> *content);</PRE
800></TD
801></TR
802></TABLE
803><P
804>Register a new entity for this document DTD.</P
805><P
806></P
807><DIV
808CLASS="INFORMALTABLE"
809><P
810></P
811><TABLE
812BORDER="0"
813WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000814BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000815CELLSPACING="0"
816CELLPADDING="4"
817CLASS="CALSTABLE"
818><TR
819><TD
820WIDTH="20%"
821ALIGN="RIGHT"
822VALIGN="TOP"
823><TT
824CLASS="PARAMETER"
825><I
826>doc</I
827></TT
828>&nbsp;:</TD
829><TD
830WIDTH="80%"
831ALIGN="LEFT"
832VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000833> the document</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000834></TR
835><TR
836><TD
837WIDTH="20%"
838ALIGN="RIGHT"
839VALIGN="TOP"
840><TT
841CLASS="PARAMETER"
842><I
843>name</I
844></TT
845>&nbsp;:</TD
846><TD
847WIDTH="80%"
848ALIGN="LEFT"
849VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000850> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000851></TR
852><TR
853><TD
854WIDTH="20%"
855ALIGN="RIGHT"
856VALIGN="TOP"
857><TT
858CLASS="PARAMETER"
859><I
860>type</I
861></TT
862>&nbsp;:</TD
863><TD
864WIDTH="80%"
865ALIGN="LEFT"
866VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000867> the entity type XML_xxx_yyy_ENTITY</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000868></TR
869><TR
870><TD
871WIDTH="20%"
872ALIGN="RIGHT"
873VALIGN="TOP"
874><TT
875CLASS="PARAMETER"
876><I
877>ExternalID</I
878></TT
879>&nbsp;:</TD
880><TD
881WIDTH="80%"
882ALIGN="LEFT"
883VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000884> the entity external ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000885></TR
886><TR
887><TD
888WIDTH="20%"
889ALIGN="RIGHT"
890VALIGN="TOP"
891><TT
892CLASS="PARAMETER"
893><I
894>SystemID</I
895></TT
896>&nbsp;:</TD
897><TD
898WIDTH="80%"
899ALIGN="LEFT"
900VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000901> the entity system ID if available</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000902></TR
903><TR
904><TD
905WIDTH="20%"
906ALIGN="RIGHT"
907VALIGN="TOP"
908><TT
909CLASS="PARAMETER"
910><I
911>content</I
912></TT
913>&nbsp;:</TD
914><TD
915WIDTH="80%"
916ALIGN="LEFT"
917VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000918> the entity content</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000919></TR
920></TABLE
921><P
922></P
923></DIV
924></DIV
925><HR><DIV
926CLASS="REFSECT2"
927><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000928NAME="AEN4288"
Daniel Veillard35925471999-02-25 08:46:07 +0000929></A
930><H3
931><A
932NAME="XMLGETPREDEFINEDENTITY"
933></A
Daniel Veillard14fff061999-06-22 21:49:07 +0000934>xmlGetPredefinedEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +0000935><TABLE
936BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +0000937BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +0000938WIDTH="100%"
939CELLPADDING="6"
940><TR
941><TD
942><PRE
943CLASS="PROGRAMLISTING"
944><A
945HREF="gnome-xml-entities.html#XMLENTITYPTR"
946>xmlEntityPtr</A
947> xmlGetPredefinedEntity (const <A
948HREF="gnome-xml-tree.html#CHAR"
949>CHAR</A
950> *name);</PRE
951></TD
952></TR
953></TABLE
954><P
955>Check whether this name is an predefined entity.</P
956><P
957></P
958><DIV
959CLASS="INFORMALTABLE"
960><P
961></P
962><TABLE
963BORDER="0"
964WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +0000965BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +0000966CELLSPACING="0"
967CELLPADDING="4"
968CLASS="CALSTABLE"
969><TR
970><TD
971WIDTH="20%"
972ALIGN="RIGHT"
973VALIGN="TOP"
974><TT
975CLASS="PARAMETER"
976><I
977>name</I
978></TT
979>&nbsp;:</TD
980><TD
981WIDTH="80%"
982ALIGN="LEFT"
983VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000984> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +0000985></TR
986><TR
987><TD
988WIDTH="20%"
989ALIGN="RIGHT"
990VALIGN="TOP"
991><I
992CLASS="EMPHASIS"
993>Returns</I
994> :</TD
995><TD
996WIDTH="80%"
997ALIGN="LEFT"
998VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +0000999>NULL if not, othervise the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001000></TR
1001></TABLE
1002><P
1003></P
1004></DIV
1005></DIV
1006><HR><DIV
1007CLASS="REFSECT2"
1008><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001009NAME="AEN4309"
Daniel Veillard35925471999-02-25 08:46:07 +00001010></A
1011><H3
1012><A
1013NAME="XMLGETDOCENTITY"
1014></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001015>xmlGetDocEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001016><TABLE
1017BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001018BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001019WIDTH="100%"
1020CELLPADDING="6"
1021><TR
1022><TD
1023><PRE
1024CLASS="PROGRAMLISTING"
1025><A
1026HREF="gnome-xml-entities.html#XMLENTITYPTR"
1027>xmlEntityPtr</A
1028> xmlGetDocEntity (<A
1029HREF="gnome-xml-tree.html#XMLDOCPTR"
1030>xmlDocPtr</A
1031> doc,
1032 const <A
1033HREF="gnome-xml-tree.html#CHAR"
1034>CHAR</A
1035> *name);</PRE
1036></TD
1037></TR
1038></TABLE
1039><P
1040>Do an entity lookup in the document entity hash table and
1041returns the corrsponding entity, otherwise a lookup is done
1042in the predefined entities too.</P
1043><P
1044></P
1045><DIV
1046CLASS="INFORMALTABLE"
1047><P
1048></P
1049><TABLE
1050BORDER="0"
1051WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001052BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001053CELLSPACING="0"
1054CELLPADDING="4"
1055CLASS="CALSTABLE"
1056><TR
1057><TD
1058WIDTH="20%"
1059ALIGN="RIGHT"
1060VALIGN="TOP"
1061><TT
1062CLASS="PARAMETER"
1063><I
1064>doc</I
1065></TT
1066>&nbsp;:</TD
1067><TD
1068WIDTH="80%"
1069ALIGN="LEFT"
1070VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001071> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001072></TR
1073><TR
1074><TD
1075WIDTH="20%"
1076ALIGN="RIGHT"
1077VALIGN="TOP"
1078><TT
1079CLASS="PARAMETER"
1080><I
1081>name</I
1082></TT
1083>&nbsp;:</TD
1084><TD
1085WIDTH="80%"
1086ALIGN="LEFT"
1087VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001088> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001089></TR
1090><TR
1091><TD
1092WIDTH="20%"
1093ALIGN="RIGHT"
1094VALIGN="TOP"
1095><I
1096CLASS="EMPHASIS"
1097>Returns</I
1098> :</TD
1099><TD
1100WIDTH="80%"
1101ALIGN="LEFT"
1102VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001103>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001104></TR
1105></TABLE
1106><P
1107></P
1108></DIV
1109></DIV
1110><HR><DIV
1111CLASS="REFSECT2"
1112><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001113NAME="AEN4335"
Daniel Veillard35925471999-02-25 08:46:07 +00001114></A
1115><H3
1116><A
1117NAME="XMLGETDTDENTITY"
1118></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001119>xmlGetDtdEntity ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001120><TABLE
1121BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001122BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001123WIDTH="100%"
1124CELLPADDING="6"
1125><TR
1126><TD
1127><PRE
1128CLASS="PROGRAMLISTING"
1129><A
1130HREF="gnome-xml-entities.html#XMLENTITYPTR"
1131>xmlEntityPtr</A
1132> xmlGetDtdEntity (<A
1133HREF="gnome-xml-tree.html#XMLDOCPTR"
1134>xmlDocPtr</A
1135> doc,
1136 const <A
1137HREF="gnome-xml-tree.html#CHAR"
1138>CHAR</A
1139> *name);</PRE
1140></TD
1141></TR
1142></TABLE
1143><P
1144>Do an entity lookup in the Dtd entity hash table and
1145returns the corresponding entity, if found.</P
1146><P
1147></P
1148><DIV
1149CLASS="INFORMALTABLE"
1150><P
1151></P
1152><TABLE
1153BORDER="0"
1154WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001155BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001156CELLSPACING="0"
1157CELLPADDING="4"
1158CLASS="CALSTABLE"
1159><TR
1160><TD
1161WIDTH="20%"
1162ALIGN="RIGHT"
1163VALIGN="TOP"
1164><TT
1165CLASS="PARAMETER"
1166><I
1167>doc</I
1168></TT
1169>&nbsp;:</TD
1170><TD
1171WIDTH="80%"
1172ALIGN="LEFT"
1173VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001174> the document referencing the entity</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001175></TR
1176><TR
1177><TD
1178WIDTH="20%"
1179ALIGN="RIGHT"
1180VALIGN="TOP"
1181><TT
1182CLASS="PARAMETER"
1183><I
1184>name</I
1185></TT
1186>&nbsp;:</TD
1187><TD
1188WIDTH="80%"
1189ALIGN="LEFT"
1190VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001191> the entity name</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001192></TR
1193><TR
1194><TD
1195WIDTH="20%"
1196ALIGN="RIGHT"
1197VALIGN="TOP"
1198><I
1199CLASS="EMPHASIS"
1200>Returns</I
1201> :</TD
1202><TD
1203WIDTH="80%"
1204ALIGN="LEFT"
1205VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001206>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001207></TR
1208></TABLE
1209><P
1210></P
1211></DIV
1212></DIV
1213><HR><DIV
1214CLASS="REFSECT2"
1215><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001216NAME="AEN4361"
Daniel Veillardb05deb71999-08-10 19:04:08 +00001217></A
1218><H3
1219><A
1220NAME="XMLGETPARAMETERENTITY"
1221></A
1222>xmlGetParameterEntity ()</H3
1223><TABLE
1224BORDER="0"
1225BGCOLOR="#D6E8FF"
1226WIDTH="100%"
1227CELLPADDING="6"
1228><TR
1229><TD
1230><PRE
1231CLASS="PROGRAMLISTING"
1232><A
1233HREF="gnome-xml-entities.html#XMLENTITYPTR"
1234>xmlEntityPtr</A
1235> xmlGetParameterEntity (<A
1236HREF="gnome-xml-tree.html#XMLDOCPTR"
1237>xmlDocPtr</A
1238> doc,
1239 const <A
1240HREF="gnome-xml-tree.html#CHAR"
1241>CHAR</A
1242> *name);</PRE
1243></TD
1244></TR
1245></TABLE
1246><P
1247>Do an entity lookup in the internal and external subsets and
1248returns the corresponding parameter entity, if found.</P
1249><P
1250></P
1251><DIV
1252CLASS="INFORMALTABLE"
1253><P
1254></P
1255><TABLE
1256BORDER="0"
1257WIDTH="100%"
1258BGCOLOR="#FFD0D0"
1259CELLSPACING="0"
1260CELLPADDING="4"
1261CLASS="CALSTABLE"
1262><TR
1263><TD
1264WIDTH="20%"
1265ALIGN="RIGHT"
1266VALIGN="TOP"
1267><TT
1268CLASS="PARAMETER"
1269><I
1270>doc</I
1271></TT
1272>&nbsp;:</TD
1273><TD
1274WIDTH="80%"
1275ALIGN="LEFT"
1276VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001277> the document referencing the entity</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001278></TR
1279><TR
1280><TD
1281WIDTH="20%"
1282ALIGN="RIGHT"
1283VALIGN="TOP"
1284><TT
1285CLASS="PARAMETER"
1286><I
1287>name</I
1288></TT
1289>&nbsp;:</TD
1290><TD
1291WIDTH="80%"
1292ALIGN="LEFT"
1293VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001294> the entity name</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001295></TR
1296><TR
1297><TD
1298WIDTH="20%"
1299ALIGN="RIGHT"
1300VALIGN="TOP"
1301><I
1302CLASS="EMPHASIS"
1303>Returns</I
1304> :</TD
1305><TD
1306WIDTH="80%"
1307ALIGN="LEFT"
1308VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001309>A pointer to the entity structure or NULL if not found.</TD
Daniel Veillardb05deb71999-08-10 19:04:08 +00001310></TR
1311></TABLE
1312><P
1313></P
1314></DIV
1315></DIV
1316><HR><DIV
1317CLASS="REFSECT2"
1318><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001319NAME="AEN4387"
Daniel Veillard35925471999-02-25 08:46:07 +00001320></A
1321><H3
1322><A
1323NAME="XMLENCODEENTITIES"
1324></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001325>xmlEncodeEntities ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001326><TABLE
1327BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001328BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001329WIDTH="100%"
1330CELLPADDING="6"
1331><TR
1332><TD
1333><PRE
1334CLASS="PROGRAMLISTING"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001335>const <A
Daniel Veillard35925471999-02-25 08:46:07 +00001336HREF="gnome-xml-tree.html#CHAR"
1337>CHAR</A
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001338>* xmlEncodeEntities (<A
Daniel Veillard35925471999-02-25 08:46:07 +00001339HREF="gnome-xml-tree.html#XMLDOCPTR"
1340>xmlDocPtr</A
1341> doc,
1342 const <A
1343HREF="gnome-xml-tree.html#CHAR"
1344>CHAR</A
1345> *input);</PRE
1346></TD
1347></TR
1348></TABLE
1349><P
1350>Do a global encoding of a string, replacing the predefined entities
1351and non ASCII values with their entities and CharRef counterparts.</P
1352><P
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001353>TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary
1354compatibility</P
Daniel Veillard35925471999-02-25 08:46:07 +00001355><P
Daniel Veillardb05deb71999-08-10 19:04:08 +00001356>People must migrate their code to xmlEncodeEntitiesReentrant !
1357This routine will issue a warning when encountered.</P
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001358><P
1359></P
1360><DIV
1361CLASS="INFORMALTABLE"
1362><P
1363></P
1364><TABLE
1365BORDER="0"
1366WIDTH="100%"
1367BGCOLOR="#FFD0D0"
1368CELLSPACING="0"
1369CELLPADDING="4"
1370CLASS="CALSTABLE"
1371><TR
1372><TD
1373WIDTH="20%"
1374ALIGN="RIGHT"
1375VALIGN="TOP"
1376><TT
1377CLASS="PARAMETER"
1378><I
1379>doc</I
1380></TT
1381>&nbsp;:</TD
1382><TD
1383WIDTH="80%"
1384ALIGN="LEFT"
1385VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001386> the document containing the string</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001387></TR
1388><TR
1389><TD
1390WIDTH="20%"
1391ALIGN="RIGHT"
1392VALIGN="TOP"
1393><TT
1394CLASS="PARAMETER"
1395><I
1396>input</I
1397></TT
1398>&nbsp;:</TD
1399><TD
1400WIDTH="80%"
1401ALIGN="LEFT"
1402VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001403> A string to convert to XML.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001404></TR
1405><TR
1406><TD
1407WIDTH="20%"
1408ALIGN="RIGHT"
1409VALIGN="TOP"
1410><I
1411CLASS="EMPHASIS"
1412>Returns</I
1413> :</TD
1414><TD
1415WIDTH="80%"
1416ALIGN="LEFT"
1417VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001418>A newly allocated string with the substitution done.</TD
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001419></TR
1420></TABLE
1421><P
1422></P
1423></DIV
1424></DIV
1425><HR><DIV
1426CLASS="REFSECT2"
1427><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001428NAME="AEN4415"
Daniel Veillard1566d3a1999-07-15 14:24:29 +00001429></A
1430><H3
1431><A
1432NAME="XMLENCODEENTITIESREENTRANT"
1433></A
1434>xmlEncodeEntitiesReentrant ()</H3
1435><TABLE
1436BORDER="0"
1437BGCOLOR="#D6E8FF"
1438WIDTH="100%"
1439CELLPADDING="6"
1440><TR
1441><TD
1442><PRE
1443CLASS="PROGRAMLISTING"
1444><A
1445HREF="gnome-xml-tree.html#CHAR"
1446>CHAR</A
1447>* xmlEncodeEntitiesReentrant (<A
1448HREF="gnome-xml-tree.html#XMLDOCPTR"
1449>xmlDocPtr</A
1450> doc,
1451 const <A
1452HREF="gnome-xml-tree.html#CHAR"
1453>CHAR</A
1454> *input);</PRE
1455></TD
1456></TR
1457></TABLE
1458><P
1459>Do a global encoding of a string, replacing the predefined entities
1460and non ASCII values with their entities and CharRef counterparts.
1461Contrary to xmlEncodeEntities, this routine is reentrant, and result
1462must be deallocated.</P
1463><P
1464>TODO !!!! Once moved to UTF-8 internal encoding, the encoding of non-ascii
1465get erroneous.</P
1466><P
Daniel Veillard35925471999-02-25 08:46:07 +00001467></P
1468><DIV
1469CLASS="INFORMALTABLE"
1470><P
1471></P
1472><TABLE
1473BORDER="0"
1474WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001475BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001476CELLSPACING="0"
1477CELLPADDING="4"
1478CLASS="CALSTABLE"
1479><TR
1480><TD
1481WIDTH="20%"
1482ALIGN="RIGHT"
1483VALIGN="TOP"
1484><TT
1485CLASS="PARAMETER"
1486><I
1487>doc</I
1488></TT
1489>&nbsp;:</TD
1490><TD
1491WIDTH="80%"
1492ALIGN="LEFT"
1493VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001494> the document containing the string</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001495></TR
1496><TR
1497><TD
1498WIDTH="20%"
1499ALIGN="RIGHT"
1500VALIGN="TOP"
1501><TT
1502CLASS="PARAMETER"
1503><I
1504>input</I
1505></TT
1506>&nbsp;:</TD
1507><TD
1508WIDTH="80%"
1509ALIGN="LEFT"
1510VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001511> A string to convert to XML.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001512></TR
1513><TR
1514><TD
1515WIDTH="20%"
1516ALIGN="RIGHT"
1517VALIGN="TOP"
1518><I
1519CLASS="EMPHASIS"
1520>Returns</I
1521> :</TD
1522><TD
1523WIDTH="80%"
1524ALIGN="LEFT"
1525VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001526>A newly allocated string with the substitution done.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001527></TR
1528></TABLE
1529><P
1530></P
1531></DIV
1532></DIV
1533><HR><DIV
1534CLASS="REFSECT2"
1535><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001536NAME="AEN4442"
Daniel Veillard35925471999-02-25 08:46:07 +00001537></A
1538><H3
1539><A
1540NAME="XMLCREATEENTITIESTABLE"
1541></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001542>xmlCreateEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001543><TABLE
1544BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001545BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001546WIDTH="100%"
1547CELLPADDING="6"
1548><TR
1549><TD
1550><PRE
1551CLASS="PROGRAMLISTING"
1552><A
1553HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1554>xmlEntitiesTablePtr</A
1555> xmlCreateEntitiesTable (void);</PRE
1556></TD
1557></TR
1558></TABLE
1559><P
1560>create and initialize an empty entities hash table.</P
1561><P
1562></P
1563><DIV
1564CLASS="INFORMALTABLE"
1565><P
1566></P
1567><TABLE
1568BORDER="0"
1569WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001570BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001571CELLSPACING="0"
1572CELLPADDING="4"
1573CLASS="CALSTABLE"
1574><TR
1575><TD
1576WIDTH="20%"
1577ALIGN="RIGHT"
1578VALIGN="TOP"
1579><I
1580CLASS="EMPHASIS"
1581>Returns</I
1582> :</TD
1583><TD
1584WIDTH="80%"
1585ALIGN="LEFT"
1586VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001587>the xmlEntitiesTablePtr just created or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001588></TR
1589></TABLE
1590><P
1591></P
1592></DIV
1593></DIV
1594><HR><DIV
1595CLASS="REFSECT2"
1596><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001597NAME="AEN4458"
Daniel Veillard35925471999-02-25 08:46:07 +00001598></A
1599><H3
1600><A
1601NAME="XMLCOPYENTITIESTABLE"
1602></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001603>xmlCopyEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001604><TABLE
1605BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001606BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001607WIDTH="100%"
1608CELLPADDING="6"
1609><TR
1610><TD
1611><PRE
1612CLASS="PROGRAMLISTING"
1613><A
1614HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1615>xmlEntitiesTablePtr</A
1616> xmlCopyEntitiesTable (<A
1617HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1618>xmlEntitiesTablePtr</A
1619> table);</PRE
1620></TD
1621></TR
1622></TABLE
1623><P
1624>Build a copy of an entity table.</P
1625><P
1626></P
1627><DIV
1628CLASS="INFORMALTABLE"
1629><P
1630></P
1631><TABLE
1632BORDER="0"
1633WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001634BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001635CELLSPACING="0"
1636CELLPADDING="4"
1637CLASS="CALSTABLE"
1638><TR
1639><TD
1640WIDTH="20%"
1641ALIGN="RIGHT"
1642VALIGN="TOP"
1643><TT
1644CLASS="PARAMETER"
1645><I
1646>table</I
1647></TT
1648>&nbsp;:</TD
1649><TD
1650WIDTH="80%"
1651ALIGN="LEFT"
1652VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001653> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001654></TR
1655><TR
1656><TD
1657WIDTH="20%"
1658ALIGN="RIGHT"
1659VALIGN="TOP"
1660><I
1661CLASS="EMPHASIS"
1662>Returns</I
1663> :</TD
1664><TD
1665WIDTH="80%"
1666ALIGN="LEFT"
1667VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001668>the new xmlEntitiesTablePtr or NULL in case of error.</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001669></TR
1670></TABLE
1671><P
1672></P
1673></DIV
1674></DIV
1675><HR><DIV
1676CLASS="REFSECT2"
1677><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001678NAME="AEN4479"
Daniel Veillard35925471999-02-25 08:46:07 +00001679></A
1680><H3
1681><A
1682NAME="XMLFREEENTITIESTABLE"
1683></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001684>xmlFreeEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001685><TABLE
1686BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001687BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001688WIDTH="100%"
1689CELLPADDING="6"
1690><TR
1691><TD
1692><PRE
1693CLASS="PROGRAMLISTING"
1694>void xmlFreeEntitiesTable (<A
1695HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1696>xmlEntitiesTablePtr</A
1697> table);</PRE
1698></TD
1699></TR
1700></TABLE
1701><P
1702>Deallocate the memory used by an entities hash table.</P
1703><P
1704></P
1705><DIV
1706CLASS="INFORMALTABLE"
1707><P
1708></P
1709><TABLE
1710BORDER="0"
1711WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001712BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001713CELLSPACING="0"
1714CELLPADDING="4"
1715CLASS="CALSTABLE"
1716><TR
1717><TD
1718WIDTH="20%"
1719ALIGN="RIGHT"
1720VALIGN="TOP"
1721><TT
1722CLASS="PARAMETER"
1723><I
1724>table</I
1725></TT
1726>&nbsp;:</TD
1727><TD
1728WIDTH="80%"
1729ALIGN="LEFT"
1730VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001731> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001732></TR
1733></TABLE
1734><P
1735></P
1736></DIV
1737></DIV
1738><HR><DIV
1739CLASS="REFSECT2"
1740><A
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001741NAME="AEN4495"
Daniel Veillard35925471999-02-25 08:46:07 +00001742></A
1743><H3
1744><A
1745NAME="XMLDUMPENTITIESTABLE"
1746></A
Daniel Veillard14fff061999-06-22 21:49:07 +00001747>xmlDumpEntitiesTable ()</H3
Daniel Veillard35925471999-02-25 08:46:07 +00001748><TABLE
1749BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001750BGCOLOR="#D6E8FF"
Daniel Veillard35925471999-02-25 08:46:07 +00001751WIDTH="100%"
1752CELLPADDING="6"
1753><TR
1754><TD
1755><PRE
1756CLASS="PROGRAMLISTING"
1757>void xmlDumpEntitiesTable (<A
Daniel Veillard5099ae81999-04-21 20:12:07 +00001758HREF="gnome-xml-tree.html#XMLBUFFERPTR"
1759>xmlBufferPtr</A
1760> buf,
1761 <A
Daniel Veillard35925471999-02-25 08:46:07 +00001762HREF="gnome-xml-entities.html#XMLENTITIESTABLEPTR"
1763>xmlEntitiesTablePtr</A
1764> table);</PRE
1765></TD
1766></TR
1767></TABLE
1768><P
1769>This will dump the content of the entity table as an XML DTD definition</P
1770><P
Daniel Veillard35925471999-02-25 08:46:07 +00001771></P
1772><DIV
1773CLASS="INFORMALTABLE"
1774><P
1775></P
1776><TABLE
1777BORDER="0"
1778WIDTH="100%"
Daniel Veillard14fff061999-06-22 21:49:07 +00001779BGCOLOR="#FFD0D0"
Daniel Veillard35925471999-02-25 08:46:07 +00001780CELLSPACING="0"
1781CELLPADDING="4"
1782CLASS="CALSTABLE"
1783><TR
1784><TD
1785WIDTH="20%"
1786ALIGN="RIGHT"
1787VALIGN="TOP"
1788><TT
1789CLASS="PARAMETER"
1790><I
Daniel Veillard5099ae81999-04-21 20:12:07 +00001791>buf</I
1792></TT
1793>&nbsp;:</TD
1794><TD
1795WIDTH="80%"
1796ALIGN="LEFT"
1797VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001798> An XML buffer.</TD
Daniel Veillard5099ae81999-04-21 20:12:07 +00001799></TR
1800><TR
1801><TD
1802WIDTH="20%"
1803ALIGN="RIGHT"
1804VALIGN="TOP"
1805><TT
1806CLASS="PARAMETER"
1807><I
Daniel Veillard35925471999-02-25 08:46:07 +00001808>table</I
1809></TT
1810>&nbsp;:</TD
1811><TD
1812WIDTH="80%"
1813ALIGN="LEFT"
1814VALIGN="TOP"
Daniel Veillard6bd26dc1999-09-03 14:28:40 +00001815> An entity table</TD
Daniel Veillard35925471999-02-25 08:46:07 +00001816></TR
1817></TABLE
1818><P
1819></P
1820></DIV
1821></DIV
Daniel Veillard35925471999-02-25 08:46:07 +00001822></DIV
1823><DIV
1824CLASS="NAVFOOTER"
Daniel Veillard14fff061999-06-22 21:49:07 +00001825><BR><BR><TABLE
Daniel Veillard35925471999-02-25 08:46:07 +00001826WIDTH="100%"
1827BORDER="0"
Daniel Veillard14fff061999-06-22 21:49:07 +00001828BGCOLOR="#000000"
1829CELLPADDING="1"
Daniel Veillard35925471999-02-25 08:46:07 +00001830CELLSPACING="0"
1831><TR
1832><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00001833WIDTH="25%"
1834BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00001835ALIGN="left"
Daniel Veillard35925471999-02-25 08:46:07 +00001836><A
1837HREF="gnome-xml-tree.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00001838><FONT
1839COLOR="#FFFFFF"
1840SIZE="3"
1841><B
1842>&#60;&#60;&#60; Previous Page</B
1843></FONT
1844></A
Daniel Veillard35925471999-02-25 08:46:07 +00001845></TD
1846><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00001847WIDTH="25%"
1848BGCOLOR="#0000C0"
Daniel Veillard35925471999-02-25 08:46:07 +00001849ALIGN="center"
Daniel Veillard14fff061999-06-22 21:49:07 +00001850><FONT
1851COLOR="#FFFFFF"
1852SIZE="3"
1853><B
Daniel Veillard35925471999-02-25 08:46:07 +00001854><A
1855HREF="book1.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00001856><FONT
1857COLOR="#FFFFFF"
1858SIZE="3"
1859><B
1860>Home</B
1861></FONT
1862></A
1863></B
1864></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00001865></TD
1866><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00001867WIDTH="25%"
1868BGCOLOR="#00C000"
1869ALIGN="center"
1870><FONT
1871COLOR="#FFFFFF"
1872SIZE="3"
1873><B
1874><A
1875HREF="libxml.html"
1876><FONT
1877COLOR="#FFFFFF"
1878SIZE="3"
1879><B
1880>Up</B
1881></FONT
1882></A
1883></B
1884></FONT
1885></TD
1886><TD
1887WIDTH="25%"
1888BGCOLOR="#C00000"
Daniel Veillard35925471999-02-25 08:46:07 +00001889ALIGN="right"
Daniel Veillard35925471999-02-25 08:46:07 +00001890><A
1891HREF="gnome-xml-valid.html"
Daniel Veillard14fff061999-06-22 21:49:07 +00001892><FONT
1893COLOR="#FFFFFF"
1894SIZE="3"
1895><B
1896>Next Page &#62;&#62;&#62;</B
1897></FONT
1898></A
Daniel Veillard35925471999-02-25 08:46:07 +00001899></TD
1900></TR
1901><TR
1902><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00001903COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00001904ALIGN="left"
Daniel Veillard14fff061999-06-22 21:49:07 +00001905><FONT
1906COLOR="#FFFFFF"
1907SIZE="3"
1908><B
1909>tree</B
1910></FONT
Daniel Veillard35925471999-02-25 08:46:07 +00001911></TD
1912><TD
Daniel Veillard14fff061999-06-22 21:49:07 +00001913COLSPAN="2"
Daniel Veillard35925471999-02-25 08:46:07 +00001914ALIGN="right"
Daniel Veillard14fff061999-06-22 21:49:07 +00001915><FONT
1916COLOR="#FFFFFF"
1917SIZE="3"
1918><B
1919>valid</B
1920></FONT
1921></TD
Daniel Veillard35925471999-02-25 08:46:07 +00001922></TR
1923></TABLE
1924></DIV
1925></BODY
1926></HTML
1927>