From c14c53a3645d81281058d4bb4cff24fa8d6faf33 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 6 Jul 2004 12:57:17 +0000 Subject: Load /tmp/tmp.DIvcnD/libxml2-2.6.11 into packages/libxml2/branches/upstream/current. --- doc/tutorial/apa.html | 2 +- doc/tutorial/apd.html | 2 +- doc/tutorial/api.html | 2 +- doc/tutorial/ar01s02.html | 6 +- doc/tutorial/ar01s03.html | 4 +- doc/tutorial/ar01s04.html | 2 +- doc/tutorial/ar01s06.html | 4 +- doc/tutorial/ar01s07.html | 2 +- doc/tutorial/ar01s08.html | 2 +- doc/tutorial/ar01s09.html | 2 +- doc/tutorial/includexpath.c | 2 +- doc/tutorial/index.html | 2 +- doc/tutorial/ix01.html | 2 +- doc/tutorial/xmltutorial.pdf | 142 +++++++++++++++++++++---------------------- 14 files changed, 88 insertions(+), 88 deletions(-) (limited to 'doc/tutorial') diff --git a/doc/tutorial/apa.html b/doc/tutorial/apa.html index 5c4c1c1..40c0114 100644 --- a/doc/tutorial/apa.html +++ b/doc/tutorial/apa.html @@ -1,4 +1,4 @@ -A. Compilation

A. Compilation

+A. Compilation

A. Compilation

Libxml includes a script, xml2-config, that can be used to generate flags for compilation and linking of programs written with the diff --git a/doc/tutorial/apd.html b/doc/tutorial/apd.html index f61470f..30a69d9 100644 --- a/doc/tutorial/apd.html +++ b/doc/tutorial/apd.html @@ -36,7 +36,7 @@ main(int argc, char **argv) { char *docname; xmlDocPtr doc; - xmlChar *xpath = ("//keyword"); + xmlChar *xpath = (xmlChar*) "//keyword"; xmlNodeSetPtr nodeset; xmlXPathObjectPtr result; int i; diff --git a/doc/tutorial/api.html b/doc/tutorial/api.html index 0f54ba9..3706e99 100644 --- a/doc/tutorial/api.html +++ b/doc/tutorial/api.html @@ -1,4 +1,4 @@ -I. Acknowledgements

I. Acknowledgements

A number of people have generously offered feedback, code and +I. Acknowledgements

I. Acknowledgements

A number of people have generously offered feedback, code and suggested improvements to this tutorial. In no particular order: Daniel Veillard, Marcus Labib Iskander, Christopher R. Harris, Igor Zlatkovic, Niraj Tolia, David Turover

diff --git a/doc/tutorial/ar01s02.html b/doc/tutorial/ar01s02.html index 4cab38d..3d04a75 100644 --- a/doc/tutorial/ar01s02.html +++ b/doc/tutorial/ar01s02.html @@ -1,13 +1,13 @@ Data Types

Data Types

Libxml declares a number of data types we will encounter repeatedly, hiding the messy stuff so you do not have to deal with it unless you have some specific need.

-

+

xmlChar

A basic replacement for char, a byte in a UTF-8 encoded string. If your data uses another encoding, it must be converted to UTF-8 for use with libxml's - functions. More information on encoding is available on the libxml encoding support web page.

+ functions. More information on encoding is available on the libxml encoding support web page.

xmlDoc

A structure containing the tree created by a parsed doc. xmlDocPtr - is a pointer to the structure.

+ is a pointer to the structure.

xmlNodePtr and xmlNode

A structure containing a single node. xmlNodePtr is a pointer to the structure, and is used in traversing the document tree.

diff --git a/doc/tutorial/ar01s03.html b/doc/tutorial/ar01s03.html index c824213..95ed717 100644 --- a/doc/tutorial/ar01s03.html +++ b/doc/tutorial/ar01s03.html @@ -31,7 +31,7 @@ Parsing the file requires only the name of the file and a single interact with individual nodes).

4

Check to see that the document was successfully parsed. If it was not, libxml will at this point register an error and stop. -

[Note]Note

+

[Note]Note

One common example of an error at this point is improper handling of encoding. The XML standard requires documents stored with an encoding other than UTF-8 or UTF-16 to @@ -43,5 +43,5 @@ One common example of an error at this point is improper

5

Retrieve the document's root element.

6

Check to make sure the document actually contains something.

7

In our case, we need to make sure the document is the right type. "story" is the root type of the documents used in this tutorial.

- +

diff --git a/doc/tutorial/ar01s04.html b/doc/tutorial/ar01s04.html index c14406a..77dd722 100644 --- a/doc/tutorial/ar01s04.html +++ b/doc/tutorial/ar01s04.html @@ -1,4 +1,4 @@ -Retrieving Element Content

Retrieving Element Content

+Retrieving Element Content

Retrieving Element Content

Retrieving the content of an element involves traversing the document tree until you find what you are looking for. In this case, we are looking for an element called "keyword" contained within element called "story". The diff --git a/doc/tutorial/ar01s06.html b/doc/tutorial/ar01s06.html index fb8c8a7..767f758 100644 --- a/doc/tutorial/ar01s06.html +++ b/doc/tutorial/ar01s06.html @@ -1,4 +1,4 @@ -Writing element content

Writing element content

+Writing element content

Writing element content

Writing element content uses many of the same steps we used above — parsing the document and walking the tree. We parse the document, then traverse the tree to find the place we want to insert our element. For @@ -21,7 +21,7 @@ parseStory (xmlDocPtr doc, xmlNodePtr cur, char *keyword) { current node pointer's location in the tree, specified by cur.

- + Once the node has been added, we would like to write the document to file. Is you want the element to have a namespace, you can add it here as well. In our case, the namespace is NULL. diff --git a/doc/tutorial/ar01s07.html b/doc/tutorial/ar01s07.html index 395b780..1736a1b 100644 --- a/doc/tutorial/ar01s07.html +++ b/doc/tutorial/ar01s07.html @@ -1,4 +1,4 @@ -Writing Attribute

Writing Attribute

+Writing Attribute

Writing Attribute

Writing an attribute is similar to writing text to a new element. In this case, we'll add a reference URI to our document. Full code:Appendix F, Code for Add Attribute Example.

diff --git a/doc/tutorial/ar01s08.html b/doc/tutorial/ar01s08.html index f07f8ef..c884ed8 100644 --- a/doc/tutorial/ar01s08.html +++ b/doc/tutorial/ar01s08.html @@ -1,4 +1,4 @@ -Retrieving Attributes

Retrieving Attributes

+Retrieving Attributes

Retrieving Attributes

Retrieving the value of an attribute is similar to the previous example in which we retrieved a node's text contents. In this case we'll extract the value of the URI we added in the previous diff --git a/doc/tutorial/ar01s09.html b/doc/tutorial/ar01s09.html index 76f52cc..95aed72 100644 --- a/doc/tutorial/ar01s09.html +++ b/doc/tutorial/ar01s09.html @@ -1,4 +1,4 @@ -Encoding Conversion

Encoding Conversion

+Encoding Conversion

Encoding Conversion

Data encoding compatibility problems are one of the most common difficulties encountered by programmers new to XML in general and libxml in particular. Thinking diff --git a/doc/tutorial/includexpath.c b/doc/tutorial/includexpath.c index 92c0944..7e8bc37 100644 --- a/doc/tutorial/includexpath.c +++ b/doc/tutorial/includexpath.c @@ -35,7 +35,7 @@ main(int argc, char **argv) { char *docname; xmlDocPtr doc; - xmlChar *xpath = ("//keyword"); + xmlChar *xpath = (xmlChar*) "//keyword"; xmlNodeSetPtr nodeset; xmlXPathObjectPtr result; int i; diff --git a/doc/tutorial/index.html b/doc/tutorial/index.html index 7722005..1054c79 100644 --- a/doc/tutorial/index.html +++ b/doc/tutorial/index.html @@ -1,4 +1,4 @@ -Libxml Tutorial

Libxml Tutorial

John Fleck

Revision History
Revision 1June 4, 2002
Initial draft
Revision 2June 12, 2002
retrieving attribute value added
Revision 3Aug. 31, 2002
freeing memory fix
Revision 4Nov. 10, 2002
encoding discussion added
Revision 5Dec. 15, 2002
more memory freeing changes
Revision 6Jan. 26. 2003
add index
Revision 7April 25, 2003
add compilation appendix
Revision 8July 24, 2003
add XPath example
Revision 9Feb. 14, 2004
Fix bug in XPath example

Abstract

Libxml is a freely licensed C language library for handling +Libxml Tutorial

Libxml Tutorial

John Fleck

Revision History
Revision 1June 4, 2002
Initial draft
Revision 2June 12, 2002
retrieving attribute value added
Revision 3Aug. 31, 2002
freeing memory fix
Revision 4Nov. 10, 2002
encoding discussion added
Revision 5Dec. 15, 2002
more memory freeing changes
Revision 6Jan. 26. 2003
add index
Revision 7April 25, 2003
add compilation appendix
Revision 8July 24, 2003
add XPath example
Revision 9Feb. 14, 2004
Fix bug in XPath example

Abstract

Libxml is a freely licensed C language library for handling XML, portable across a large number of platforms. This tutorial provides examples of its basic functions.

Introduction

Libxml is a C language library implementing functions for reading, creating and manipulating XML data. This tutorial diff --git a/doc/tutorial/ix01.html b/doc/tutorial/ix01.html index 8a0687b..61757bf 100644 --- a/doc/tutorial/ix01.html +++ b/doc/tutorial/ix01.html @@ -1 +1 @@ -Index

Index

A

attribute
retrieving value, Retrieving Attributes
writing, Writing Attribute

C

compiler flags, Compilation

E

element
retrieving content, Retrieving Element Content
writing content, Writing element content
encoding, Parsing the file, Encoding Conversion

X

xmlChar, Data Types
xmlDoc, Data Types
xmlNodePtr, Data Types
+Index

Index

A

attribute
retrieving value, Retrieving Attributes
writing, Writing Attribute

C

compiler flags, Compilation

E

element
retrieving content, Retrieving Element Content
writing content, Writing element content
encoding, Parsing the file, Encoding Conversion

X

xmlChar, Data Types
xmlDoc, Data Types
xmlNodePtr, Data Types
diff --git a/doc/tutorial/xmltutorial.pdf b/doc/tutorial/xmltutorial.pdf index 345391f..668e545 100644 --- a/doc/tutorial/xmltutorial.pdf +++ b/doc/tutorial/xmltutorial.pdf @@ -709,10 +709,10 @@ endobj >> endobj 96 0 obj -<< /Length 1305 /Filter [ /ASCII85Decode /FlateDecode ] +<< /Length 1310 /Filter [ /ASCII85Decode /FlateDecode ] >> stream -GatU3>Ar7S'Roe[&3:6(gZ4`';-]RjC[)>_Jh08p?pKq]`F^*,[cGPNlCd?j+)0-R`MEGd":6X@SF>7Imu[N.mL?@2J.\G^r7"*MXG6nRIrKoad4[lc2r_Yu&`!*gjS^3G#faX0:5g'gLk(_Tds&8i8:cT>@^DI%FdJ?=Im!_4-KSN9\32eTL+A=Q.^ON&BnNJLV"*o_S#),a&&*02A4\(kl.qk<90i!8GY5XP33=Km_1::s/rMP:2=?sg]\CsrcJBP4*"oMHNkYPI@@Fl@6ReKDLR3>qFtXCkWl4:"h.$.!KCrP$U[2P`c3R3-iZ'#L;SMjldre:3bW'?GmFQA_(DWjM-3/lr)j;is0"#jBF%9ik.5V+4n^.SOS\f^$hh*)&1$+H\_/IMN;E?;UQ,$c,:Y9C.0/muSA2.gRJNn+rGgAV[GctipKZC6+V>j^idb=GVoOcA^fHO%\Qj5Jh`MK5K1-AK4,KlJBVq##T_Am]1`1P3cRR4WdBnDtmV"J?mR0=d=s90i:A`2qO_MdUF3&gdYNA!/-;!g0V_5?VQC6&>`q=I+#nAF&>_;QNh0pUsm8!r#qP@b984e!D0`U3!p`?IJl^+Ha42\';1l9&grb7\E*[]sT-+/EgGTVR0Z/_Pj)VSk`M9^[J.+^Dh$Q`H&-TRFGR[3f+EDn&mWZ+4=s\?V_WanAD8rVE$bG3fCur1SVp[NDdFGg.I6tU$([8cWak,^\0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-0000046813 00000 n -0000046989 00000 n -0000047082 00000 n +0000046818 00000 n +0000046994 00000 n +0000047087 00000 n 0000000015 00000 n 0000000071 00000 n 0000001985 00000 n 0000002105 00000 n 0000002249 00000 n -0000047235 00000 n +0000047240 00000 n 0000002383 00000 n -0000047299 00000 n +0000047304 00000 n 0000002519 00000 n -0000047366 00000 n +0000047371 00000 n 0000002655 00000 n -0000047433 00000 n +0000047438 00000 n 0000002791 00000 n -0000047500 00000 n +0000047505 00000 n 0000002927 00000 n -0000047567 00000 n +0000047572 00000 n 0000003063 00000 n -0000047632 00000 n +0000047637 00000 n 0000003199 00000 n -0000047699 00000 n +0000047704 00000 n 0000003335 00000 n -0000047765 00000 n +0000047770 00000 n 0000003471 00000 n -0000047831 00000 n +0000047836 00000 n 0000003607 00000 n -0000047896 00000 n +0000047901 00000 n 0000003743 00000 n -0000047963 00000 n +0000047968 00000 n 0000003878 00000 n -0000048030 00000 n +0000048035 00000 n 0000004014 00000 n -0000048095 00000 n +0000048100 00000 n 0000004150 00000 n -0000048161 00000 n +0000048166 00000 n 0000004286 00000 n -0000048227 00000 n +0000048232 00000 n 0000004422 00000 n -0000048294 00000 n +0000048299 00000 n 0000004558 00000 n -0000048361 00000 n +0000048366 00000 n 0000004694 00000 n 0000006850 00000 n 0000006973 00000 n @@ -1284,53 +1284,53 @@ xref 0000030166 00000 n 0000031437 00000 n 0000031545 00000 n -0000032943 00000 n -0000033051 00000 n -0000034387 00000 n -0000034495 00000 n -0000035806 00000 n -0000035916 00000 n -0000037217 00000 n -0000037327 00000 n -0000038697 00000 n -0000038807 00000 n -0000040371 00000 n -0000040497 00000 n -0000040518 00000 n -0000041064 00000 n -0000041190 00000 n -0000048428 00000 n -0000048482 00000 n -0000041211 00000 n -0000048547 00000 n -0000041386 00000 n -0000041587 00000 n -0000041758 00000 n -0000041917 00000 n -0000042111 00000 n -0000042365 00000 n -0000042694 00000 n -0000042930 00000 n -0000043131 00000 n -0000043356 00000 n -0000043569 00000 n -0000043752 00000 n -0000043958 00000 n -0000044216 00000 n -0000044462 00000 n -0000044743 00000 n -0000045036 00000 n -0000045406 00000 n -0000045735 00000 n -0000048613 00000 n -0000045948 00000 n -0000046064 00000 n -0000046178 00000 n -0000046264 00000 n -0000046375 00000 n -0000046487 00000 n -0000046596 00000 n -0000046703 00000 n +0000032948 00000 n +0000033056 00000 n +0000034392 00000 n +0000034500 00000 n +0000035811 00000 n +0000035921 00000 n +0000037222 00000 n +0000037332 00000 n +0000038702 00000 n +0000038812 00000 n +0000040376 00000 n +0000040502 00000 n +0000040523 00000 n +0000041069 00000 n +0000041195 00000 n +0000048433 00000 n +0000048487 00000 n +0000041216 00000 n +0000048552 00000 n +0000041391 00000 n +0000041592 00000 n +0000041763 00000 n +0000041922 00000 n +0000042116 00000 n +0000042370 00000 n +0000042699 00000 n +0000042935 00000 n +0000043136 00000 n +0000043361 00000 n +0000043574 00000 n +0000043757 00000 n +0000043963 00000 n +0000044221 00000 n +0000044467 00000 n +0000044748 00000 n +0000045041 00000 n +0000045411 00000 n +0000045740 00000 n +0000048618 00000 n +0000045953 00000 n +0000046069 00000 n +0000046183 00000 n +0000046269 00000 n +0000046380 00000 n +0000046492 00000 n +0000046601 00000 n +0000046708 00000 n trailer << /Size 144 @@ -1338,5 +1338,5 @@ trailer /Info 4 0 R >> startxref -48682 +48687 %%EOF -- cgit v1.2.3