diff --git a/doc/FAQ.html b/doc/FAQ.html index 3424e3f0..472863fb 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -25,7 +25,7 @@ A:link, A:visited, A:active { text-decoration: underline }
The original distribution comes from rpmfind.net or gnome.org
+The original distribution comes from rpmfind.net or gnome.org
Most Linux and BSD distributions include libxml, this is probably the safer way for end-users to use libxml.
David Doolin provides precompiled Windows versions at http://www.ce.berkeley.edu/~doolin/code/libxmlwin32/
@@ -61,7 +61,7 @@ A:link, A:visited, A:active { text-decoration: underline } applications with libxml(2)) that you can install locally.As most UNIX libraries libxml2 follows the "standard":
+As most UNIX libraries libxml2 follows the "standard":
gunzip -c xxx.tar.gz | tar xvf -
cd libxml-xxxx
./configure --help
For a XML file as below:
-<?xml version="1.0"?> -<PLAN xmlns="http://www.argus.ca/autotest/1.0/"> -<NODE CommFlag="0"/> -<NODE CommFlag="1"/> +<?xml version="1.0"?> +<PLAN xmlns="http://www.argus.ca/autotest/1.0/"> +<NODE CommFlag="0"/> +<NODE CommFlag="1"/> </PLAN>after parsing it with the function pxmlDoc=xmlParseFile(...);
I want to the get the content of the first node (node with the - CommFlag="0")
+ CommFlag="0")so I did it as following;
xmlNodePtr pnode; pnode=pxmlDoc->children->children;@@ -227,14 +227,14 @@ pnode=pxmlDoc->children->children;
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);
It is a null terminated sequence of utf-8 characters. And only utf-8! You need to convert strings encoded in different ways to utf-8 before passing them to the API. This can be accomplished with the iconv library diff --git a/doc/XMLinfo.html b/doc/XMLinfo.html index ef03b245..2642bcb1 100644 --- a/doc/XMLinfo.html +++ b/doc/XMLinfo.html @@ -9,15 +9,15 @@ H3 {font-family: Verdana,Arial,Helvetica} A:link, A:visited, A:active { text-decoration: underline }
![]() | ![]() ![]() ![]() |
|
|