Commit 845cce4c authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Anthony Jones pointed a bug in xmlCopyEntity() Daniel

* entities.c: Anthony Jones pointed a bug in xmlCopyEntity()
Daniel
parent 7b602b42
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>
* 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
XML</li>
</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>
<ul>
<li>
......
......@@ -70,7 +70,9 @@ other specification but don't claim to implement them:</p>
XML</li>
</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>
<ul>
......@@ -410,7 +412,8 @@ pnode=pxmlDoc-&gt;children-&gt;children;</pre>
<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
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>
<h2><a name="Reporting">Reporting bugs and getting help</a></h2>
......@@ -2180,6 +2183,7 @@ xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
} </pre>
</li>
<li>And then use it to save the document:
......
......@@ -222,6 +222,7 @@ xmlOutputBufferCreateOwn(FILE *file, xmlCharEncodingHandlerPtr encoder) {
} </pre>
</li>
<li>And then use it to save the document:
......
......@@ -865,7 +865,7 @@ xmlCopyEntity(xmlEntityPtr ent) {
return(NULL);
}
memset(cur, 0, sizeof(xmlEntity));
cur->type = XML_ELEMENT_DECL;
cur->type = XML_ENTITY_DECL;
cur->etype = ent->etype;
if (ent->name != NULL)
......
......@@ -991,6 +991,7 @@ int
main(int argc, char **argv) {
int i, count;
int files = 0;
int version = 0;
if (argc <= 1) {
usage(argv[0]);
......@@ -1021,10 +1022,11 @@ main(int argc, char **argv) {
(!strcmp(argv[i], "--noent")))
noent++;
else if ((!strcmp(argv[i], "-version")) ||
(!strcmp(argv[i], "--version")))
(!strcmp(argv[i], "--version"))) {
fprintf(stderr, "xmllint: using libxml version %s\n",
xmlParserVersion);
else if ((!strcmp(argv[i], "-noout")) ||
version = 1;
} else if ((!strcmp(argv[i], "-noout")) ||
(!strcmp(argv[i], "--noout")))
noout++;
else if ((!strcmp(argv[i], "-o")) ||
......@@ -1230,7 +1232,7 @@ main(int argc, char **argv) {
if ((htmlout) && (!nowrap)) {
xmlGenericError(xmlGenericErrorContext, "</body></html>\n");
}
if ((files == 0) && (!generate)) {
if ((files == 0) && (!generate) && (version == 0)) {
usage(argv[0]);
}
xmlCleanupParser();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment