mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Anthony Jones pointed a bug in xmlCopyEntity() Daniel
* entities.c: Anthony Jones pointed a bug in xmlCopyEntity() Daniel
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jan 9 12:50:39 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* entities.c: Anthony Jones pointed a bug in xmlCopyEntity()
|
||||||
|
|
||||||
Tue Jan 8 14:23:22 CET 2002 Daniel Veillard <daniel@veillard.com>
|
Tue Jan 8 14:23:22 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* doc/*.html doc/site.xsl doc/Makefile: renamed XML.html
|
* doc/*.html doc/site.xsl doc/Makefile: renamed XML.html
|
||||||
|
@ -124,7 +124,9 @@ other specification but don't claim to implement them:</p>
|
|||||||
<li>DocBook SGML v4: libxml2 includes a hackish parser to transition to
|
<li>DocBook SGML v4: libxml2 includes a hackish parser to transition to
|
||||||
XML</li>
|
XML</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>
|
<p>Libxml2 is known to be very portable, should build and work without
|
||||||
|
serious troubles on a variety of systems (Linux, Unix, Windows, CygWin,
|
||||||
|
MacOs, MacOsX, RISC Os, OS/2, VMS, QNX, MVS, ...)</p>
|
||||||
<p>Separate documents:</p>
|
<p>Separate documents:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -70,7 +70,9 @@ other specification but don't claim to implement them:</p>
|
|||||||
XML</li>
|
XML</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p></p>
|
<p>Libxml2 is known to be very portable, should build and work without
|
||||||
|
serious troubles on a variety of systems (Linux, Unix, Windows, CygWin,
|
||||||
|
MacOs, MacOsX, RISC Os, OS/2, VMS, QNX, MVS, ...)</p>
|
||||||
|
|
||||||
<p>Separate documents:</p>
|
<p>Separate documents:</p>
|
||||||
<ul>
|
<ul>
|
||||||
@ -410,7 +412,8 @@ pnode=pxmlDoc->children->children;</pre>
|
|||||||
<li>Read the <a href="upgrade.html">1.x to 2.x upgrade path</a>. If you are
|
<li>Read the <a href="upgrade.html">1.x to 2.x upgrade path</a>. If you are
|
||||||
starting a new project using libxml you should really use the 2.x
|
starting a new project using libxml you should really use the 2.x
|
||||||
version.</li>
|
version.</li>
|
||||||
<li>And don't forget to look at the <a href="http://mail.gnome.org/archives/xml/">mailing-list archive</a>.</li>
|
<li>And don't forget to look at the <a
|
||||||
|
href="http://mail.gnome.org/archives/xml/">mailing-list archive</a>.</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<h2><a name="Reporting">Reporting bugs and getting help</a></h2>
|
<h2><a name="Reporting">Reporting bugs and getting help</a></h2>
|
||||||
@ -2180,6 +2183,7 @@ xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} </pre>
|
} </pre>
|
||||||
</li>
|
</li>
|
||||||
<li>And then use it to save the document:
|
<li>And then use it to save the document:
|
||||||
|
@ -222,6 +222,7 @@ xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} </pre>
|
} </pre>
|
||||||
</li>
|
</li>
|
||||||
<li>And then use it to save the document:
|
<li>And then use it to save the document:
|
||||||
|
@ -865,7 +865,7 @@ xmlCopyEntity(xmlEntityPtr ent) {
|
|||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
memset(cur, 0, sizeof(xmlEntity));
|
memset(cur, 0, sizeof(xmlEntity));
|
||||||
cur->type = XML_ELEMENT_DECL;
|
cur->type = XML_ENTITY_DECL;
|
||||||
|
|
||||||
cur->etype = ent->etype;
|
cur->etype = ent->etype;
|
||||||
if (ent->name != NULL)
|
if (ent->name != NULL)
|
||||||
|
@ -991,6 +991,7 @@ int
|
|||||||
main(int argc, char **argv) {
|
main(int argc, char **argv) {
|
||||||
int i, count;
|
int i, count;
|
||||||
int files = 0;
|
int files = 0;
|
||||||
|
int version = 0;
|
||||||
|
|
||||||
if (argc <= 1) {
|
if (argc <= 1) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
@ -1021,10 +1022,11 @@ main(int argc, char **argv) {
|
|||||||
(!strcmp(argv[i], "--noent")))
|
(!strcmp(argv[i], "--noent")))
|
||||||
noent++;
|
noent++;
|
||||||
else if ((!strcmp(argv[i], "-version")) ||
|
else if ((!strcmp(argv[i], "-version")) ||
|
||||||
(!strcmp(argv[i], "--version")))
|
(!strcmp(argv[i], "--version"))) {
|
||||||
fprintf(stderr, "xmllint: using libxml version %s\n",
|
fprintf(stderr, "xmllint: using libxml version %s\n",
|
||||||
xmlParserVersion);
|
xmlParserVersion);
|
||||||
else if ((!strcmp(argv[i], "-noout")) ||
|
version = 1;
|
||||||
|
} else if ((!strcmp(argv[i], "-noout")) ||
|
||||||
(!strcmp(argv[i], "--noout")))
|
(!strcmp(argv[i], "--noout")))
|
||||||
noout++;
|
noout++;
|
||||||
else if ((!strcmp(argv[i], "-o")) ||
|
else if ((!strcmp(argv[i], "-o")) ||
|
||||||
@ -1230,7 +1232,7 @@ main(int argc, char **argv) {
|
|||||||
if ((htmlout) && (!nowrap)) {
|
if ((htmlout) && (!nowrap)) {
|
||||||
xmlGenericError(xmlGenericErrorContext, "</body></html>\n");
|
xmlGenericError(xmlGenericErrorContext, "</body></html>\n");
|
||||||
}
|
}
|
||||||
if ((files == 0) && (!generate)) {
|
if ((files == 0) && (!generate) && (version == 0)) {
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
}
|
}
|
||||||
xmlCleanupParser();
|
xmlCleanupParser();
|
||||||
|
Reference in New Issue
Block a user