Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
e9202a05
Commit
e9202a05
authored
Oct 16, 2000
by
Daniel Veillard
Browse files
Added libiconv library info, Jon <dissy@netset.com>, Daniel.
parent
5edcc936
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/FAQ.html
View file @
e9202a05
...
...
@@ -3,7 +3,7 @@
<html>
<head>
<title>
Libxml Frequently asqued Questions
</title>
<meta
name=
"GENERATOR"
content=
"amaya V2.1"
>
<meta
name=
"GENERATOR"
content=
"amaya V
3.
2.1"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html"
>
</head>
...
...
@@ -57,8 +57,7 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
<p>
Most linux and Bsd distribution includes libxml, this is probably the
safer way for end-users
</p>
<p>
David Doolin provides precompiled Windows versions at
<a
href=
"http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/
"
>
http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/
</a></p>
href=
"http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/ "
>
http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/
</a></p>
</li>
<li><em>
I see libxml and libxml2 releases, which one should I install ?
</em>
<ul>
...
...
@@ -117,8 +116,10 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
included by default on recent glibc libraries, so it doesn't need to
be installed specifically on linux. It seems it's now
<a
href=
"http://www.opennc.org/onlinepubs/7908799/xsh/iconv.html"
>
part of
the official UNIX
</a>
specification, though I could not find a home
page for the project.
</li>
the official UNIX
</a>
specification. Here is one
<a
href=
"http://clisp.cons.org/~haible/packages-libiconv.html"
>
implementation
of the library
</a>
which source can be found
<a
href=
"ftp://ftp.ilog.fr/pub/Users/haible/gnu/"
>
here
</a>
.
</li>
</ul>
</li>
<li><em>
The Makefile for the example gjobread is not generated
</em>
...
...
@@ -134,13 +135,13 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
all: gjobread
clean:
<
TAB
>
@(rm -f gjobread gjobread.o)
<
TAB
>
@(rm -f gjobread gjobread.o)
gjobread.o : gjobread.c
<
TAB
>
$(CC) $(CFLAGS) -c gjobread.c
<
TAB
>
$(CC) $(CFLAGS) -c gjobread.c
gjobread: gjobread.o
<
TAB
>
$(CC) -o gjobread gjobread.o $(LDFLAGS)
</pre>
<
TAB
>
$(CC) -o gjobread gjobread.o $(LDFLAGS)
</pre>
</li>
<li><em>
libxml does not compile with HP-UX's optional ANSI-C compiler
</em>
<p>
this is due to macro limitations. Try to add " -Wp,-H16800 -Ae" to the
...
...
@@ -173,7 +174,7 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
<p>
The source code you are using has been
<a
href=
"upgrade.html"
>
upgraded
</a>
to be able to compile with both libxml
and libxml2, but you need to install a more recent version: libxml(-devel)
>
= 1.8.8 or libxml2(-devel)
>
= 2.1.0
</p>
>
= 1.8.8 or libxml2(-devel)
>
= 2.1.0
</p>
</li>
<li><em>
XPath implementation looks seriously broken
</em>
<p>
True, it's incomplete and the version released in 2.0.0 was nearly
...
...
@@ -185,7 +186,7 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
</li>
<li><em>
The example provided in the web page does not compile
</em>
<p>
It's hard to maintain the documentation in sync with the code
<
grin/
>
...
</p>
<
grin/
>
...
</p>
<p>
Check the previous points 1/ and 2/ raised before, and send
patches.
</p>
</li>
...
...
@@ -194,8 +195,8 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
<p>
Ideally a libxml book would be nice. I have no such plan ... But you
can:
</p>
<ul>
<li>
check more deeply the
<a
href=
"html/libxml-lib.html"
>
existing
generated
doc
</a></li>
<li>
check more deeply the
<a
href=
"html/libxml-lib.html"
>
existing
generated
doc
</a></li>
<li>
looks for examples of use for libxml function using the Gnome code
for example the following will query the full Gnome CVs base for the
use of the
<strong>
xmlAddChild()
</strong>
function:
...
...
@@ -205,7 +206,7 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
could cure this :-)
</p>
</li>
<li><a
href=
"http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&dir=gnome-xml"
>
Browse
href=
"http://cvs.gnome.org/bonsai/rview.cgi?cvsroot=/cvs/gnome&
amp;
dir=gnome-xml"
>
Browse
the libxml source
</a>
, I try to write code as clean and documented as
possible, so looking at it may be helpful
</li>
</ul>
...
...
@@ -215,7 +216,7 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
platforms, including embedded systems. I don't intend to convert to
C++.
</p>
<p>
There is however a C++ wrapper provided by Ari Johnson
<
ari@btigate.com
>
which may fullfill your needs:
</p>
<
ari@btigate.com
>
which may fullfill your needs:
</p>
<p>
Website:
<a
href=
"http://lusis.org/~ari/xml++/"
>
http://lusis.org/~ari/xml++/
</a></p>
<p>
Download:
<a
...
...
@@ -230,11 +231,11 @@ href="http://xmlsoft.org/messages/">http://xmlsoft.org/messages/</a></p>
document:
</p>
<pre>
xmlDocPtr doc; /* your existing document */
xmlDtdPtr dtd = xmlParseDTD(NULL, filename_of_dtd); /* parse the DTD */
dtd-
>
name = xmlStrDup((xmlChar*)"root_name"); /* use the given root */
dtd-
>
name = xmlStrDup((xmlChar*)"root_name"); /* use the given root */
doc-
>
intSubset = dtd;
if (doc-
>
children == NULL) xmlAddChild((xmlNodePtr)doc, (xmlNodePtr)dtd);
else xmlAddPrevSibling(doc-
>
children, (xmlNodePtr)dtd);
doc-
>
intSubset = dtd;
if (doc-
>
children == NULL) xmlAddChild((xmlNodePtr)doc, (xmlNodePtr)dtd);
else xmlAddPrevSibling(doc-
>
children, (xmlNodePtr)dtd);
</pre>
</li>
<li>
etc ...
</li>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment