gtksourceview2 0.90.6-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +57 -0
- data/README +29 -0
- data/Rakefile +14 -0
- data/ext/gtksourceview2/depend +5 -0
- data/ext/gtksourceview2/extconf.rb +73 -0
- data/ext/gtksourceview2/gtksourceview2.def +2 -0
- data/ext/gtksourceview2/rbgtksourcebuffer.c +401 -0
- data/ext/gtksourceview2/rbgtksourceiter.c +110 -0
- data/ext/gtksourceview2/rbgtksourcelanguage.c +126 -0
- data/ext/gtksourceview2/rbgtksourcelanguagemanager.c +188 -0
- data/ext/gtksourceview2/rbgtksourcemain.c +38 -0
- data/ext/gtksourceview2/rbgtksourcemain.h +32 -0
- data/ext/gtksourceview2/rbgtksourcemark.c +90 -0
- data/ext/gtksourceview2/rbgtksourceprintcompositor.c +249 -0
- data/ext/gtksourceview2/rbgtksourcestyle.c +48 -0
- data/ext/gtksourceview2/rbgtksourcestylescheme.c +71 -0
- data/ext/gtksourceview2/rbgtksourcestyleschememanager.c +211 -0
- data/ext/gtksourceview2/rbgtksourceview.c +239 -0
- data/extconf.rb +49 -0
- data/lib/1.8/gtksourceview2.so +0 -0
- data/lib/1.9/gtksourceview2.so +0 -0
- data/lib/gtksourceview2.rb +2 -0
- data/sample/sourcelanguagemanager.rb +21 -0
- data/sample/test.rb +32 -0
- data/test/run-test.rb +33 -0
- data/test/test_source_view.rb +17 -0
- data/vendor/local/bin/libgtksourceview-2.0-0.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/completion-providers/words/gtksourcecompletionwords.h +67 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcebuffer.h +181 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletion.h +131 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletioncontext.h +98 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletioninfo.h +82 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionitem.h +71 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionproposal.h +76 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcecompletionprovider.h +119 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcegutter.h +106 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceiter.h +53 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcelanguage.h +83 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcelanguagemanager.h +86 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcemark.h +71 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceprintcompositor.h +177 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestyle.h +41 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestylescheme.h +91 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourcestyleschememanager.h +90 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceundomanager.h +77 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceview-typebuiltins.h +44 -0
- data/vendor/local/include/gtksourceview-2.0/gtksourceview/gtksourceview.h +272 -0
- data/vendor/local/include/libxml2/libxml/DOCBparser.h +96 -0
- data/vendor/local/include/libxml2/libxml/HTMLparser.h +304 -0
- data/vendor/local/include/libxml2/libxml/HTMLtree.h +147 -0
- data/vendor/local/include/libxml2/libxml/SAX.h +173 -0
- data/vendor/local/include/libxml2/libxml/SAX2.h +176 -0
- data/vendor/local/include/libxml2/libxml/c14n.h +126 -0
- data/vendor/local/include/libxml2/libxml/catalog.h +182 -0
- data/vendor/local/include/libxml2/libxml/chvalid.h +230 -0
- data/vendor/local/include/libxml2/libxml/debugXML.h +217 -0
- data/vendor/local/include/libxml2/libxml/dict.h +69 -0
- data/vendor/local/include/libxml2/libxml/encoding.h +226 -0
- data/vendor/local/include/libxml2/libxml/entities.h +150 -0
- data/vendor/local/include/libxml2/libxml/globals.h +502 -0
- data/vendor/local/include/libxml2/libxml/hash.h +233 -0
- data/vendor/local/include/libxml2/libxml/list.h +137 -0
- data/vendor/local/include/libxml2/libxml/nanoftp.h +143 -0
- data/vendor/local/include/libxml2/libxml/nanohttp.h +81 -0
- data/vendor/local/include/libxml2/libxml/parser.h +1235 -0
- data/vendor/local/include/libxml2/libxml/parserInternals.h +611 -0
- data/vendor/local/include/libxml2/libxml/pattern.h +100 -0
- data/vendor/local/include/libxml2/libxml/relaxng.h +213 -0
- data/vendor/local/include/libxml2/libxml/schemasInternals.h +958 -0
- data/vendor/local/include/libxml2/libxml/schematron.h +142 -0
- data/vendor/local/include/libxml2/libxml/threads.h +84 -0
- data/vendor/local/include/libxml2/libxml/tree.h +1252 -0
- data/vendor/local/include/libxml2/libxml/uri.h +94 -0
- data/vendor/local/include/libxml2/libxml/valid.h +458 -0
- data/vendor/local/include/libxml2/libxml/xinclude.h +129 -0
- data/vendor/local/include/libxml2/libxml/xlink.h +189 -0
- data/vendor/local/include/libxml2/libxml/xmlIO.h +360 -0
- data/vendor/local/include/libxml2/libxml/xmlautomata.h +146 -0
- data/vendor/local/include/libxml2/libxml/xmlerror.h +944 -0
- data/vendor/local/include/libxml2/libxml/xmlexports.h +162 -0
- data/vendor/local/include/libxml2/libxml/xmlmemory.h +224 -0
- data/vendor/local/include/libxml2/libxml/xmlmodule.h +57 -0
- data/vendor/local/include/libxml2/libxml/xmlreader.h +424 -0
- data/vendor/local/include/libxml2/libxml/xmlregexp.h +222 -0
- data/vendor/local/include/libxml2/libxml/xmlsave.h +87 -0
- data/vendor/local/include/libxml2/libxml/xmlschemas.h +218 -0
- data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +151 -0
- data/vendor/local/include/libxml2/libxml/xmlstring.h +140 -0
- data/vendor/local/include/libxml2/libxml/xmlunicode.h +202 -0
- data/vendor/local/include/libxml2/libxml/xmlversion.h +458 -0
- data/vendor/local/include/libxml2/libxml/xmlwriter.h +485 -0
- data/vendor/local/include/libxml2/libxml/xpath.h +546 -0
- data/vendor/local/include/libxml2/libxml/xpathInternals.h +630 -0
- data/vendor/local/include/libxml2/libxml/xpointer.h +114 -0
- data/vendor/local/lib/libgtksourceview-2.0.dll.a +0 -0
- data/vendor/local/lib/libxml2.def +1657 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libxml2.lib +0 -0
- data/vendor/local/lib/pkgconfig/gtksourceview-2.0.pc +12 -0
- data/vendor/local/lib/pkgconfig/libxml-2.0.pc +13 -0
- data/vendor/local/manifest/libxml2-dev_2.7.7-1_win32.mft +267 -0
- data/vendor/local/manifest/libxml2_2.7.7-1_win32.mft +2 -0
- data/vendor/local/share/aclocal/libxml.m4 +188 -0
- data/vendor/local/share/doc/libxml2-2.7.7/Copyright +27 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testHTML.c +880 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testSAX.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/testXPath.c +227 -0
- data/vendor/local/share/doc/libxml2-2.7.7/examples/xmllint.c +3722 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/DOM.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/FAQ.html +282 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/Libxml2-Logo-180x168.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/Libxml2-Logo-90x34.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/encoding.html +206 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/examples.xml +751 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/examples.xsl +174 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/book1.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/index.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/left.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-DOCBparser.html +51 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-HTMLparser.html +182 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-HTMLtree.html +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-SAX.html +125 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-SAX2.html +128 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-c14n.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-catalog.html +142 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-chvalid.html +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-debugXML.html +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-dict.html +49 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-encoding.html +118 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-entities.html +79 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-globals.html +152 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-hash.html +116 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-lib.html +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-list.html +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-nanoftp.html +92 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-nanohttp.html +65 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-parser.html +555 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-parserInternals.html +319 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-pattern.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-relaxng.html +162 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-schemasInternals.html +373 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-schematron.html +81 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-threads.html +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-tree.html +958 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-uri.html +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-valid.html +289 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xinclude.html +59 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xlink.html +82 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlIO.html +206 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlautomata.html +85 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlerror.html +862 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlexports.html +20 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlmemory.html +107 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlmodule.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlreader.html +327 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlregexp.html +143 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlsave.html +59 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlschemas.html +173 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlschemastypes.html +123 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlstring.html +108 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlunicode.html +512 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlversion.html +60 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xmlwriter.html +258 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpath.html +307 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpathInternals.html +394 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/libxml-xpointer.html +83 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/right.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/html/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io1.c +166 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io2.c +58 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/io2.res +2 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/libxml.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse1.c +56 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse2.c +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse3.c +60 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/parse4.c +143 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader1.c +107 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader1.res +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader2.c +122 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader3.c +120 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader3.res +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader4.c +122 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/reader4.res +3 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/redhat.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/smallfootonly.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/structure.gif +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test1.xml +1 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test2.xml +13 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/test3.xml +39 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/testWriter.c +1198 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree1.c +94 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree1.res +4 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree2.c +118 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tree2.res +18 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tst.xml +7 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apa.html +8 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apb.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apc.html +82 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apd.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ape.html +78 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apf.html +67 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/apg.html +75 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/aph.html +76 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/api.html +4 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s02.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s03.html +47 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s04.html +54 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s05.html +55 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s06.html +35 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s07.html +30 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s08.html +38 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ar01s09.html +63 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/1.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/10.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/2.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/3.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/4.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/5.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/6.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/7.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/8.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/callouts/9.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/caution.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/draft.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/home.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/important.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/next.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/note.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/prev.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/tip.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-blank.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-minus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/toc-plus.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/up.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/images/warning.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeaddattribute.c +64 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeaddkeyword.c +75 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includeconvert.c +73 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includegetattribute.c +72 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includekeyword.c +79 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/includexpath.c +74 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/index.html +14 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/ix01.html +1 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/tutorial/xmltutorial.pdf +1336 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/w3c.png +0 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/writer.xml +2 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xml.html +5344 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath1.c +250 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath1.res +5 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath2.c +190 -0
- data/vendor/local/share/doc/libxml2-2.7.7/html/xpath2.res +30 -0
- data/vendor/local/share/gtk-doc/html/libxml2/general.html +38 -0
- data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/index.html +67 -0
- data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +138 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +371 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +172 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +243 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +247 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +91 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +241 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +225 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +119 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +208 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +383 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +214 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +226 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +177 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +142 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +762 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +673 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +278 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +860 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +166 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +161 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +1542 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +154 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +528 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +169 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +160 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +337 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +176 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +950 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +87 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +186 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +97 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +560 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +280 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +132 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +299 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +237 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +217 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +887 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +277 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +474 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +529 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +787 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +171 -0
- data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +3529 -0
- data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libxml2/style.css +66 -0
- data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/R.lang +128 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ada.lang +220 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/asp.lang +1096 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/awk.lang +137 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/bibtex.lang +92 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/boo.lang +256 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/c.lang +272 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cg.lang +231 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/changelog.lang +91 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/chdr.lang +42 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cmake.lang +407 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cpp.lang +106 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/csharp.lang +280 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/css.lang +516 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/cuda.lang +288 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/d.lang +295 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/def.lang +268 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/desktop.lang +299 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/diff.lang +84 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/docbook.lang +475 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dosbatch.lang +166 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dot.lang +139 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dpatch.lang +47 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/dtd.lang +139 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/eiffel.lang +238 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/erlang.lang +248 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fcl.lang +113 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/forth.lang +234 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fortran.lang +511 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/fsharp.lang +322 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gap.lang +84 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/glsl.lang +482 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gtk-doc.lang +90 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/gtkrc.lang +115 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haddock.lang +161 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haskell-literate.lang +58 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/haskell.lang +226 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/html.lang +160 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/idl.lang +153 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ini.lang +94 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/java.lang +208 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/javascript.lang +334 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language.dtd +72 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language.rng +372 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/language2.rng +490 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/latex.lang +298 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/libtool.lang +55 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/lua.lang +156 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/m4.lang +803 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/makefile.lang +195 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/mallard.lang +122 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/msil.lang +490 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/nemerle.lang +262 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/nsis.lang +87 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/objc.lang +119 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ocaml.lang +299 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ocl.lang +138 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/octave.lang +238 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ooc.lang +264 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/pascal.lang +264 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/perl.lang +1017 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/php.lang +329 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/pkgconfig.lang +61 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/po.lang +94 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/prolog.lang +248 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/python.lang +390 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/rpmspec.lang +204 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/ruby.lang +588 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/scheme.lang +301 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sh.lang +499 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sparql.lang +447 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/sql.lang +617 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/styles.rng +138 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/t2t.lang +149 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/tcl.lang +145 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/texinfo.lang +447 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vala.lang +227 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vbnet.lang +244 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/verilog.lang +249 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/vhdl.lang +247 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/xml.lang +219 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/xslt.lang +107 -0
- data/vendor/local/share/gtksourceview-2.0/language-specs/yacc.lang +172 -0
- data/vendor/local/share/gtksourceview-2.0/styles/classic.xml +99 -0
- data/vendor/local/share/gtksourceview-2.0/styles/cobalt.xml +134 -0
- data/vendor/local/share/gtksourceview-2.0/styles/kate.xml +155 -0
- data/vendor/local/share/gtksourceview-2.0/styles/oblivion.xml +112 -0
- data/vendor/local/share/gtksourceview-2.0/styles/styles.rng +138 -0
- data/vendor/local/share/gtksourceview-2.0/styles/tango.xml +116 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mg/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtksourceview-2.0.mo +0 -0
- data/vendor/local/share/man/man1/xml2-config.1 +31 -0
- data/vendor/local/share/man/man1/xmlcatalog.1 +229 -0
- data/vendor/local/share/man/man1/xmllint.1 +427 -0
- data/vendor/local/share/man/man3/libxml.3 +71 -0
- data/vendor/local/src/tml/packaging/libxml2_2.7.7-1_win32.log +1244 -0
- data/vendor/local/src/tml/packaging/libxml2_2.7.7-1_win32.sh +66 -0
- metadata +567 -0
@@ -0,0 +1,250 @@
|
|
1
|
+
/**
|
2
|
+
* section: XPath
|
3
|
+
* synopsis: Evaluate XPath expression and prints result node set.
|
4
|
+
* purpose: Shows how to evaluate XPath expression and register
|
5
|
+
* known namespaces in XPath context.
|
6
|
+
* usage: xpath1 <xml-file> <xpath-expr> [<known-ns-list>]
|
7
|
+
* test: ./xpath1 test3.xml '//child2' > xpath1.tmp ; diff xpath1.tmp xpath1.res ; rm xpath1.tmp
|
8
|
+
* author: Aleksey Sanin
|
9
|
+
* copy: see Copyright for the status of this software.
|
10
|
+
*/
|
11
|
+
#include <stdlib.h>
|
12
|
+
#include <stdio.h>
|
13
|
+
#include <string.h>
|
14
|
+
#include <assert.h>
|
15
|
+
|
16
|
+
#include <libxml/tree.h>
|
17
|
+
#include <libxml/parser.h>
|
18
|
+
#include <libxml/xpath.h>
|
19
|
+
#include <libxml/xpathInternals.h>
|
20
|
+
|
21
|
+
#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_SAX1_ENABLED)
|
22
|
+
|
23
|
+
|
24
|
+
static void usage(const char *name);
|
25
|
+
int execute_xpath_expression(const char* filename, const xmlChar* xpathExpr, const xmlChar* nsList);
|
26
|
+
int register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList);
|
27
|
+
void print_xpath_nodes(xmlNodeSetPtr nodes, FILE* output);
|
28
|
+
|
29
|
+
int
|
30
|
+
main(int argc, char **argv) {
|
31
|
+
/* Parse command line and process file */
|
32
|
+
if((argc < 3) || (argc > 4)) {
|
33
|
+
fprintf(stderr, "Error: wrong number of arguments.\n");
|
34
|
+
usage(argv[0]);
|
35
|
+
return(-1);
|
36
|
+
}
|
37
|
+
|
38
|
+
/* Init libxml */
|
39
|
+
xmlInitParser();
|
40
|
+
LIBXML_TEST_VERSION
|
41
|
+
|
42
|
+
/* Do the main job */
|
43
|
+
if(execute_xpath_expression(argv[1], BAD_CAST argv[2], (argc > 3) ? BAD_CAST argv[3] : NULL) < 0) {
|
44
|
+
usage(argv[0]);
|
45
|
+
return(-1);
|
46
|
+
}
|
47
|
+
|
48
|
+
/* Shutdown libxml */
|
49
|
+
xmlCleanupParser();
|
50
|
+
|
51
|
+
/*
|
52
|
+
* this is to debug memory for regression tests
|
53
|
+
*/
|
54
|
+
xmlMemoryDump();
|
55
|
+
return 0;
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* usage:
|
60
|
+
* @name: the program name.
|
61
|
+
*
|
62
|
+
* Prints usage information.
|
63
|
+
*/
|
64
|
+
static void
|
65
|
+
usage(const char *name) {
|
66
|
+
assert(name);
|
67
|
+
|
68
|
+
fprintf(stderr, "Usage: %s <xml-file> <xpath-expr> [<known-ns-list>]\n", name);
|
69
|
+
fprintf(stderr, "where <known-ns-list> is a list of known namespaces\n");
|
70
|
+
fprintf(stderr, "in \"<prefix1>=<href1> <prefix2>=href2> ...\" format\n");
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* execute_xpath_expression:
|
75
|
+
* @filename: the input XML filename.
|
76
|
+
* @xpathExpr: the xpath expression for evaluation.
|
77
|
+
* @nsList: the optional list of known namespaces in
|
78
|
+
* "<prefix1>=<href1> <prefix2>=href2> ..." format.
|
79
|
+
*
|
80
|
+
* Parses input XML file, evaluates XPath expression and prints results.
|
81
|
+
*
|
82
|
+
* Returns 0 on success and a negative value otherwise.
|
83
|
+
*/
|
84
|
+
int
|
85
|
+
execute_xpath_expression(const char* filename, const xmlChar* xpathExpr, const xmlChar* nsList) {
|
86
|
+
xmlDocPtr doc;
|
87
|
+
xmlXPathContextPtr xpathCtx;
|
88
|
+
xmlXPathObjectPtr xpathObj;
|
89
|
+
|
90
|
+
assert(filename);
|
91
|
+
assert(xpathExpr);
|
92
|
+
|
93
|
+
/* Load XML document */
|
94
|
+
doc = xmlParseFile(filename);
|
95
|
+
if (doc == NULL) {
|
96
|
+
fprintf(stderr, "Error: unable to parse file \"%s\"\n", filename);
|
97
|
+
return(-1);
|
98
|
+
}
|
99
|
+
|
100
|
+
/* Create xpath evaluation context */
|
101
|
+
xpathCtx = xmlXPathNewContext(doc);
|
102
|
+
if(xpathCtx == NULL) {
|
103
|
+
fprintf(stderr,"Error: unable to create new XPath context\n");
|
104
|
+
xmlFreeDoc(doc);
|
105
|
+
return(-1);
|
106
|
+
}
|
107
|
+
|
108
|
+
/* Register namespaces from list (if any) */
|
109
|
+
if((nsList != NULL) && (register_namespaces(xpathCtx, nsList) < 0)) {
|
110
|
+
fprintf(stderr,"Error: failed to register namespaces list \"%s\"\n", nsList);
|
111
|
+
xmlXPathFreeContext(xpathCtx);
|
112
|
+
xmlFreeDoc(doc);
|
113
|
+
return(-1);
|
114
|
+
}
|
115
|
+
|
116
|
+
/* Evaluate xpath expression */
|
117
|
+
xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx);
|
118
|
+
if(xpathObj == NULL) {
|
119
|
+
fprintf(stderr,"Error: unable to evaluate xpath expression \"%s\"\n", xpathExpr);
|
120
|
+
xmlXPathFreeContext(xpathCtx);
|
121
|
+
xmlFreeDoc(doc);
|
122
|
+
return(-1);
|
123
|
+
}
|
124
|
+
|
125
|
+
/* Print results */
|
126
|
+
print_xpath_nodes(xpathObj->nodesetval, stdout);
|
127
|
+
|
128
|
+
/* Cleanup */
|
129
|
+
xmlXPathFreeObject(xpathObj);
|
130
|
+
xmlXPathFreeContext(xpathCtx);
|
131
|
+
xmlFreeDoc(doc);
|
132
|
+
|
133
|
+
return(0);
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* register_namespaces:
|
138
|
+
* @xpathCtx: the pointer to an XPath context.
|
139
|
+
* @nsList: the list of known namespaces in
|
140
|
+
* "<prefix1>=<href1> <prefix2>=href2> ..." format.
|
141
|
+
*
|
142
|
+
* Registers namespaces from @nsList in @xpathCtx.
|
143
|
+
*
|
144
|
+
* Returns 0 on success and a negative value otherwise.
|
145
|
+
*/
|
146
|
+
int
|
147
|
+
register_namespaces(xmlXPathContextPtr xpathCtx, const xmlChar* nsList) {
|
148
|
+
xmlChar* nsListDup;
|
149
|
+
xmlChar* prefix;
|
150
|
+
xmlChar* href;
|
151
|
+
xmlChar* next;
|
152
|
+
|
153
|
+
assert(xpathCtx);
|
154
|
+
assert(nsList);
|
155
|
+
|
156
|
+
nsListDup = xmlStrdup(nsList);
|
157
|
+
if(nsListDup == NULL) {
|
158
|
+
fprintf(stderr, "Error: unable to strdup namespaces list\n");
|
159
|
+
return(-1);
|
160
|
+
}
|
161
|
+
|
162
|
+
next = nsListDup;
|
163
|
+
while(next != NULL) {
|
164
|
+
/* skip spaces */
|
165
|
+
while((*next) == ' ') next++;
|
166
|
+
if((*next) == '\0') break;
|
167
|
+
|
168
|
+
/* find prefix */
|
169
|
+
prefix = next;
|
170
|
+
next = (xmlChar*)xmlStrchr(next, '=');
|
171
|
+
if(next == NULL) {
|
172
|
+
fprintf(stderr,"Error: invalid namespaces list format\n");
|
173
|
+
xmlFree(nsListDup);
|
174
|
+
return(-1);
|
175
|
+
}
|
176
|
+
*(next++) = '\0';
|
177
|
+
|
178
|
+
/* find href */
|
179
|
+
href = next;
|
180
|
+
next = (xmlChar*)xmlStrchr(next, ' ');
|
181
|
+
if(next != NULL) {
|
182
|
+
*(next++) = '\0';
|
183
|
+
}
|
184
|
+
|
185
|
+
/* do register namespace */
|
186
|
+
if(xmlXPathRegisterNs(xpathCtx, prefix, href) != 0) {
|
187
|
+
fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href);
|
188
|
+
xmlFree(nsListDup);
|
189
|
+
return(-1);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
xmlFree(nsListDup);
|
194
|
+
return(0);
|
195
|
+
}
|
196
|
+
|
197
|
+
/**
|
198
|
+
* print_xpath_nodes:
|
199
|
+
* @nodes: the nodes set.
|
200
|
+
* @output: the output file handle.
|
201
|
+
*
|
202
|
+
* Prints the @nodes content to @output.
|
203
|
+
*/
|
204
|
+
void
|
205
|
+
print_xpath_nodes(xmlNodeSetPtr nodes, FILE* output) {
|
206
|
+
xmlNodePtr cur;
|
207
|
+
int size;
|
208
|
+
int i;
|
209
|
+
|
210
|
+
assert(output);
|
211
|
+
size = (nodes) ? nodes->nodeNr : 0;
|
212
|
+
|
213
|
+
fprintf(output, "Result (%d nodes):\n", size);
|
214
|
+
for(i = 0; i < size; ++i) {
|
215
|
+
assert(nodes->nodeTab[i]);
|
216
|
+
|
217
|
+
if(nodes->nodeTab[i]->type == XML_NAMESPACE_DECL) {
|
218
|
+
xmlNsPtr ns;
|
219
|
+
|
220
|
+
ns = (xmlNsPtr)nodes->nodeTab[i];
|
221
|
+
cur = (xmlNodePtr)ns->next;
|
222
|
+
if(cur->ns) {
|
223
|
+
fprintf(output, "= namespace \"%s\"=\"%s\" for node %s:%s\n",
|
224
|
+
ns->prefix, ns->href, cur->ns->href, cur->name);
|
225
|
+
} else {
|
226
|
+
fprintf(output, "= namespace \"%s\"=\"%s\" for node %s\n",
|
227
|
+
ns->prefix, ns->href, cur->name);
|
228
|
+
}
|
229
|
+
} else if(nodes->nodeTab[i]->type == XML_ELEMENT_NODE) {
|
230
|
+
cur = nodes->nodeTab[i];
|
231
|
+
if(cur->ns) {
|
232
|
+
fprintf(output, "= element node \"%s:%s\"\n",
|
233
|
+
cur->ns->href, cur->name);
|
234
|
+
} else {
|
235
|
+
fprintf(output, "= element node \"%s\"\n",
|
236
|
+
cur->name);
|
237
|
+
}
|
238
|
+
} else {
|
239
|
+
cur = nodes->nodeTab[i];
|
240
|
+
fprintf(output, "= node \"%s\": type %d\n", cur->name, cur->type);
|
241
|
+
}
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
#else
|
246
|
+
int main(void) {
|
247
|
+
fprintf(stderr, "XPath support not compiled in\n");
|
248
|
+
exit(1);
|
249
|
+
}
|
250
|
+
#endif
|
@@ -0,0 +1,190 @@
|
|
1
|
+
/**
|
2
|
+
* section: XPath
|
3
|
+
* synopsis: Load a document, locate subelements with XPath, modify
|
4
|
+
* said elements and save the resulting document.
|
5
|
+
* purpose: Shows how to make a full round-trip from a load/edit/save
|
6
|
+
* usage: xpath2 <xml-file> <xpath-expr> <new-value>
|
7
|
+
* test: xpath2 test3.xml '//discarded' discarded > xpath2.tmp ; diff xpath2.tmp xpath2.res ; rm xpath2.tmp
|
8
|
+
* author: Aleksey Sanin and Daniel Veillard
|
9
|
+
* copy: see Copyright for the status of this software.
|
10
|
+
*/
|
11
|
+
#include <stdlib.h>
|
12
|
+
#include <stdio.h>
|
13
|
+
#include <string.h>
|
14
|
+
#include <assert.h>
|
15
|
+
|
16
|
+
#include <libxml/tree.h>
|
17
|
+
#include <libxml/parser.h>
|
18
|
+
#include <libxml/xpath.h>
|
19
|
+
#include <libxml/xpathInternals.h>
|
20
|
+
|
21
|
+
#if defined(LIBXML_XPATH_ENABLED) && defined(LIBXML_SAX1_ENABLED) && \
|
22
|
+
defined(LIBXML_OUTPUT_ENABLED)
|
23
|
+
|
24
|
+
|
25
|
+
static void usage(const char *name);
|
26
|
+
static int example4(const char *filename, const xmlChar * xpathExpr,
|
27
|
+
const xmlChar * value);
|
28
|
+
static void update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar * value);
|
29
|
+
|
30
|
+
|
31
|
+
int
|
32
|
+
main(int argc, char **argv) {
|
33
|
+
/* Parse command line and process file */
|
34
|
+
if (argc != 4) {
|
35
|
+
fprintf(stderr, "Error: wrong number of arguments.\n");
|
36
|
+
usage(argv[0]);
|
37
|
+
return(-1);
|
38
|
+
}
|
39
|
+
|
40
|
+
/* Init libxml */
|
41
|
+
xmlInitParser();
|
42
|
+
LIBXML_TEST_VERSION
|
43
|
+
|
44
|
+
/* Do the main job */
|
45
|
+
if (example4(argv[1], BAD_CAST argv[2], BAD_CAST argv[3])) {
|
46
|
+
usage(argv[0]);
|
47
|
+
return(-1);
|
48
|
+
}
|
49
|
+
|
50
|
+
/* Shutdown libxml */
|
51
|
+
xmlCleanupParser();
|
52
|
+
|
53
|
+
/*
|
54
|
+
* this is to debug memory for regression tests
|
55
|
+
*/
|
56
|
+
xmlMemoryDump();
|
57
|
+
return 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* usage:
|
62
|
+
* @name: the program name.
|
63
|
+
*
|
64
|
+
* Prints usage information.
|
65
|
+
*/
|
66
|
+
static void
|
67
|
+
usage(const char *name) {
|
68
|
+
assert(name);
|
69
|
+
|
70
|
+
fprintf(stderr, "Usage: %s <xml-file> <xpath-expr> <value>\n", name);
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* example4:
|
75
|
+
* @filename: the input XML filename.
|
76
|
+
* @xpathExpr: the xpath expression for evaluation.
|
77
|
+
* @value: the new node content.
|
78
|
+
*
|
79
|
+
* Parses input XML file, evaluates XPath expression and update the nodes
|
80
|
+
* then print the result.
|
81
|
+
*
|
82
|
+
* Returns 0 on success and a negative value otherwise.
|
83
|
+
*/
|
84
|
+
static int
|
85
|
+
example4(const char* filename, const xmlChar* xpathExpr, const xmlChar* value) {
|
86
|
+
xmlDocPtr doc;
|
87
|
+
xmlXPathContextPtr xpathCtx;
|
88
|
+
xmlXPathObjectPtr xpathObj;
|
89
|
+
|
90
|
+
assert(filename);
|
91
|
+
assert(xpathExpr);
|
92
|
+
assert(value);
|
93
|
+
|
94
|
+
/* Load XML document */
|
95
|
+
doc = xmlParseFile(filename);
|
96
|
+
if (doc == NULL) {
|
97
|
+
fprintf(stderr, "Error: unable to parse file \"%s\"\n", filename);
|
98
|
+
return(-1);
|
99
|
+
}
|
100
|
+
|
101
|
+
/* Create xpath evaluation context */
|
102
|
+
xpathCtx = xmlXPathNewContext(doc);
|
103
|
+
if(xpathCtx == NULL) {
|
104
|
+
fprintf(stderr,"Error: unable to create new XPath context\n");
|
105
|
+
xmlFreeDoc(doc);
|
106
|
+
return(-1);
|
107
|
+
}
|
108
|
+
|
109
|
+
/* Evaluate xpath expression */
|
110
|
+
xpathObj = xmlXPathEvalExpression(xpathExpr, xpathCtx);
|
111
|
+
if(xpathObj == NULL) {
|
112
|
+
fprintf(stderr,"Error: unable to evaluate xpath expression \"%s\"\n", xpathExpr);
|
113
|
+
xmlXPathFreeContext(xpathCtx);
|
114
|
+
xmlFreeDoc(doc);
|
115
|
+
return(-1);
|
116
|
+
}
|
117
|
+
|
118
|
+
/* update selected nodes */
|
119
|
+
update_xpath_nodes(xpathObj->nodesetval, value);
|
120
|
+
|
121
|
+
|
122
|
+
/* Cleanup of XPath data */
|
123
|
+
xmlXPathFreeObject(xpathObj);
|
124
|
+
xmlXPathFreeContext(xpathCtx);
|
125
|
+
|
126
|
+
/* dump the resulting document */
|
127
|
+
xmlDocDump(stdout, doc);
|
128
|
+
|
129
|
+
|
130
|
+
/* free the document */
|
131
|
+
xmlFreeDoc(doc);
|
132
|
+
|
133
|
+
return(0);
|
134
|
+
}
|
135
|
+
|
136
|
+
/**
|
137
|
+
* update_xpath_nodes:
|
138
|
+
* @nodes: the nodes set.
|
139
|
+
* @value: the new value for the node(s)
|
140
|
+
*
|
141
|
+
* Prints the @nodes content to @output.
|
142
|
+
*/
|
143
|
+
static void
|
144
|
+
update_xpath_nodes(xmlNodeSetPtr nodes, const xmlChar* value) {
|
145
|
+
int size;
|
146
|
+
int i;
|
147
|
+
|
148
|
+
assert(value);
|
149
|
+
size = (nodes) ? nodes->nodeNr : 0;
|
150
|
+
|
151
|
+
/*
|
152
|
+
* NOTE: the nodes are processed in reverse order, i.e. reverse document
|
153
|
+
* order because xmlNodeSetContent can actually free up descendant
|
154
|
+
* of the node and such nodes may have been selected too ! Handling
|
155
|
+
* in reverse order ensure that descendant are accessed first, before
|
156
|
+
* they get removed. Mixing XPath and modifications on a tree must be
|
157
|
+
* done carefully !
|
158
|
+
*/
|
159
|
+
for(i = size - 1; i >= 0; i--) {
|
160
|
+
assert(nodes->nodeTab[i]);
|
161
|
+
|
162
|
+
xmlNodeSetContent(nodes->nodeTab[i], value);
|
163
|
+
/*
|
164
|
+
* All the elements returned by an XPath query are pointers to
|
165
|
+
* elements from the tree *except* namespace nodes where the XPath
|
166
|
+
* semantic is different from the implementation in libxml2 tree.
|
167
|
+
* As a result when a returned node set is freed when
|
168
|
+
* xmlXPathFreeObject() is called, that routine must check the
|
169
|
+
* element type. But node from the returned set may have been removed
|
170
|
+
* by xmlNodeSetContent() resulting in access to freed data.
|
171
|
+
* This can be exercised by running
|
172
|
+
* valgrind xpath2 test3.xml '//discarded' discarded
|
173
|
+
* There is 2 ways around it:
|
174
|
+
* - make a copy of the pointers to the nodes from the result set
|
175
|
+
* then call xmlXPathFreeObject() and then modify the nodes
|
176
|
+
* or
|
177
|
+
* - remove the reference to the modified nodes from the node set
|
178
|
+
* as they are processed, if they are not namespace nodes.
|
179
|
+
*/
|
180
|
+
if (nodes->nodeTab[i]->type != XML_NAMESPACE_DECL)
|
181
|
+
nodes->nodeTab[i] = NULL;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
#else
|
186
|
+
int main(void) {
|
187
|
+
fprintf(stderr, "XPath support not compiled in\n");
|
188
|
+
exit(1);
|
189
|
+
}
|
190
|
+
#endif
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<doc>
|
3
|
+
<parent>
|
4
|
+
<discarded>discarded</discarded>
|
5
|
+
<preserved/>
|
6
|
+
This text node must be discarded
|
7
|
+
<discarded>discarded</discarded>
|
8
|
+
<preserved>
|
9
|
+
content1
|
10
|
+
<child1/>
|
11
|
+
<child2>content2</child2>
|
12
|
+
<preserved>too</preserved>
|
13
|
+
<child2>content3</child2>
|
14
|
+
<preserved/>
|
15
|
+
<child2>content4</child2>
|
16
|
+
<preserved/>
|
17
|
+
<child2>content5</child2>
|
18
|
+
content6
|
19
|
+
</preserved>
|
20
|
+
This text node must be discarded
|
21
|
+
<discarded>discarded</discarded>
|
22
|
+
This text node must be discarded
|
23
|
+
<preserved/>
|
24
|
+
This text node must be discarded
|
25
|
+
<preserved/>
|
26
|
+
This text node must be discarded
|
27
|
+
<discarded>discarded</discarded>
|
28
|
+
This text node must be discarded
|
29
|
+
</parent>
|
30
|
+
</doc>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
5
|
+
<title>libxml2: </title>
|
6
|
+
<meta name="generator" content="Libxml2 devhelp stylesheet"/>
|
7
|
+
<link rel="start" href="index.html" title="libxml2 Reference Manual"/>
|
8
|
+
<link rel="up" href="index.html" title="libxml2 Reference Manual"/>
|
9
|
+
<link rel="stylesheet" href="style.css" type="text/css"/>
|
10
|
+
<link rel="chapter" href="index.html" title="libxml2 Reference Manual"/>
|
11
|
+
</head>
|
12
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
13
|
+
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
14
|
+
<tr valign="middle">
|
15
|
+
<td>
|
16
|
+
<a accesskey="u" href="index.html">
|
17
|
+
<img src="up.png" width="24" height="24" border="0" alt="Up"/>
|
18
|
+
</a>
|
19
|
+
</td>
|
20
|
+
<td>
|
21
|
+
<a accesskey="h" href="index.html">
|
22
|
+
<img src="home.png" width="24" height="24" border="0" alt="Home"/>
|
23
|
+
</a>
|
24
|
+
</td>
|
25
|
+
<td>
|
26
|
+
<a accesskey="n" href="libxml2-DOCBparser.html">
|
27
|
+
<img src="right.png" width="24" height="24" border="0" alt="Next"/>
|
28
|
+
</a>
|
29
|
+
</td>
|
30
|
+
<th width="100%" align="center">libxml2 Reference Manual</th>
|
31
|
+
</tr>
|
32
|
+
</table>
|
33
|
+
<h2>
|
34
|
+
<span class="refentrytitle">libxml2 API Modules</span>
|
35
|
+
</h2>
|
36
|
+
<p><a href="libxml2-DOCBparser.html">DOCBparser</a> - old DocBook SGML parser<br/><a href="libxml2-HTMLparser.html">HTMLparser</a> - interface for an HTML 4.0 non-verifying parser<br/><a href="libxml2-HTMLtree.html">HTMLtree</a> - specific APIs to process HTML tree, especially serialization<br/><a href="libxml2-SAX.html">SAX</a> - Old SAX version 1 handler, deprecated<br/><a href="libxml2-SAX2.html">SAX2</a> - SAX2 parser interface used to build the DOM tree<br/><a href="libxml2-c14n.html">c14n</a> - Provide Canonical XML and Exclusive XML Canonicalization<br/><a href="libxml2-catalog.html">catalog</a> - interfaces to the Catalog handling system<br/><a href="libxml2-chvalid.html">chvalid</a> - Unicode character range checking<br/><a href="libxml2-debugXML.html">debugXML</a> - Tree debugging APIs<br/><a href="libxml2-dict.html">dict</a> - string dictionnary<br/><a href="libxml2-encoding.html">encoding</a> - interface for the encoding conversion functions<br/><a href="libxml2-entities.html">entities</a> - interface for the XML entities handling<br/><a href="libxml2-globals.html">globals</a> - interface for all global variables of the library<br/><a href="libxml2-hash.html">hash</a> - Chained hash tables<br/><a href="libxml2-list.html">list</a> - lists interfaces<br/><a href="libxml2-nanoftp.html">nanoftp</a> - minimal FTP implementation<br/><a href="libxml2-nanohttp.html">nanohttp</a> - minimal HTTP implementation<br/><a href="libxml2-parser.html">parser</a> - the core parser module<br/><a href="libxml2-parserInternals.html">parserInternals</a> - internals routines exported by the parser.<br/><a href="libxml2-pattern.html">pattern</a> - pattern expression handling<br/><a href="libxml2-relaxng.html">relaxng</a> - implementation of the Relax-NG validation<br/><a href="libxml2-schemasInternals.html">schemasInternals</a> - internal interfaces for XML Schemas<br/><a href="libxml2-schematron.html">schematron</a> - XML Schemastron implementation<br/><a href="libxml2-threads.html">threads</a> - interfaces for thread handling<br/><a href="libxml2-tree.html">tree</a> - interfaces for tree manipulation<br/><a href="libxml2-uri.html">uri</a> - library of generic URI related routines<br/><a href="libxml2-valid.html">valid</a> - The DTD validation<br/><a href="libxml2-xinclude.html">xinclude</a> - implementation of XInclude<br/><a href="libxml2-xlink.html">xlink</a> - unfinished XLink detection module<br/><a href="libxml2-xmlIO.html">xmlIO</a> - interface for the I/O interfaces used by the parser<br/><a href="libxml2-xmlautomata.html">xmlautomata</a> - API to build regexp automata<br/><a href="libxml2-xmlerror.html">xmlerror</a> - error handling<br/><a href="libxml2-xmlexports.html">xmlexports</a> - macros for marking symbols as exportable/importable.<br/><a href="libxml2-xmlmemory.html">xmlmemory</a> - interface for the memory allocator<br/><a href="libxml2-xmlmodule.html">xmlmodule</a> - dynamic module loading<br/><a href="libxml2-xmlreader.html">xmlreader</a> - the XMLReader implementation<br/><a href="libxml2-xmlregexp.html">xmlregexp</a> - regular expressions handling<br/><a href="libxml2-xmlsave.html">xmlsave</a> - the XML document serializer<br/><a href="libxml2-xmlschemas.html">xmlschemas</a> - incomplete XML Schemas structure implementation<br/><a href="libxml2-xmlschemastypes.html">xmlschemastypes</a> - implementation of XML Schema Datatypes<br/><a href="libxml2-xmlstring.html">xmlstring</a> - set of routines to process strings<br/><a href="libxml2-xmlunicode.html">xmlunicode</a> - Unicode character APIs<br/><a href="libxml2-xmlversion.html">xmlversion</a> - compile-time version informations<br/><a href="libxml2-xmlwriter.html">xmlwriter</a> - text writing API for XML<br/><a href="libxml2-xpath.html">xpath</a> - XML Path Language implementation<br/><a href="libxml2-xpathInternals.html">xpathInternals</a> - internal interfaces for XML Path Language implementation<br/><a href="libxml2-xpointer.html">xpointer</a> - API to handle XML Pointers<br/></p>
|
37
|
+
</body>
|
38
|
+
</html>
|
Binary file
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
5
|
+
<title>libxml2 Reference Manual</title>
|
6
|
+
<meta name="generator" content="Libxml2 devhelp stylesheet"/>
|
7
|
+
<link rel="stylesheet" href="style.css" type="text/css"/>
|
8
|
+
</head>
|
9
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
10
|
+
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
11
|
+
<tr valign="middle">
|
12
|
+
<td>
|
13
|
+
<a accesskey="h" href="index.html">
|
14
|
+
<img src="home.png" width="24" height="24" border="0" alt="Home"/>
|
15
|
+
</a>
|
16
|
+
</td>
|
17
|
+
<td>
|
18
|
+
<a accesskey="n" href="general.html">
|
19
|
+
<img src="right.png" width="24" height="24" border="0" alt="Next"/>
|
20
|
+
</a>
|
21
|
+
</td>
|
22
|
+
<th width="100%" align="center">libxml2 Reference Manual</th>
|
23
|
+
</tr>
|
24
|
+
</table>
|
25
|
+
<h2>
|
26
|
+
<span class="refentrytitle">libxml2 Reference Manual</span>
|
27
|
+
</h2>
|
28
|
+
<p>Libxml2 is the XML C parser and toolkit developed for the Gnome project
|
29
|
+
(but usable outside of the Gnome platform), it is free software available
|
30
|
+
under the <a href="http://www.opensource.org/licenses/mit-license.html">MIT
|
31
|
+
License</a>. XML itself is a metalanguage to design markup languages, i.e.
|
32
|
+
text language where semantic and structure are added to the content using
|
33
|
+
extra "markup" information enclosed between angle brackets. HTML is the most
|
34
|
+
well-known markup language. Though the library is written in C <a href="http://xmlsoft.org/python.html">a variety of language bindings</a> make it available in
|
35
|
+
other environments.</p>
|
36
|
+
<p>Libxml2 implements a number of existing standards related to markup
|
37
|
+
languages:</p>
|
38
|
+
<ul>
|
39
|
+
<li>the XML standard: <a href="http://www.w3.org/TR/REC-xml">http://www.w3.org/TR/REC-xml</a></li>
|
40
|
+
<li>Namespaces in XML: <a href="http://www.w3.org/TR/REC-xml-names/">http://www.w3.org/TR/REC-xml-names/</a></li>
|
41
|
+
<li>XML Base: <a href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a></li>
|
42
|
+
<li><a href="http://www.cis.ohio-state.edu/rfc/rfc2396.txt">RFC 2396</a> :
|
43
|
+
Uniform Resource Identifiers <a href="http://www.ietf.org/rfc/rfc2396.txt">http://www.ietf.org/rfc/rfc2396.txt</a></li>
|
44
|
+
<li>XML Path Language (XPath) 1.0: <a href="http://www.w3.org/TR/xpath">http://www.w3.org/TR/xpath</a></li>
|
45
|
+
<li>HTML4 parser: <a href="http://www.w3.org/TR/html401/">http://www.w3.org/TR/html401/</a></li>
|
46
|
+
<li>XML Pointer Language (XPointer) Version 1.0: <a href="http://www.w3.org/TR/xptr">http://www.w3.org/TR/xptr</a></li>
|
47
|
+
<li>XML Inclusions (XInclude) Version 1.0: <a href="http://www.w3.org/TR/xinclude/">http://www.w3.org/TR/xinclude/</a></li>
|
48
|
+
<li>ISO-8859-x encodings, as well as <a href="http://www.cis.ohio-state.edu/rfc/rfc2044.txt">rfc2044</a> [UTF-8]
|
49
|
+
and <a href="http://www.cis.ohio-state.edu/rfc/rfc2781.txt">rfc2781</a>
|
50
|
+
[UTF-16] Unicode encodings, and more if using iconv support</li>
|
51
|
+
<li>part of SGML Open Technical Resolution TR9401:1997</li>
|
52
|
+
<li>XML Catalogs Working Draft 06 August 2001: <a href="http://www.oasis-open.org/committees/entity/spec-2001-08-06.html">http://www.oasis-open.org/committees/entity/spec-2001-08-06.html</a></li>
|
53
|
+
<li>Canonical XML Version 1.0: <a href="http://www.w3.org/TR/xml-c14n">http://www.w3.org/TR/xml-c14n</a>
|
54
|
+
and the Exclusive XML Canonicalization CR draft <a href="http://www.w3.org/TR/xml-exc-c14n">http://www.w3.org/TR/xml-exc-c14n</a></li>
|
55
|
+
<li>Relax NG, ISO/IEC 19757-2:2003, <a href="http://www.oasis-open.org/committees/relax-ng/spec-20011203.html">http://www.oasis-open.org/committees/relax-ng/spec-20011203.html</a></li>
|
56
|
+
<li>W3C XML Schemas Part 2: Datatypes <a href="http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/">REC 02 May
|
57
|
+
2001</a></li>
|
58
|
+
<li>W3C <a href="http://www.w3.org/TR/xml-id/">xml:id</a> Working Draft 7
|
59
|
+
April 2004</li>
|
60
|
+
</ul>
|
61
|
+
<p> As a result the <a href="general.html">libxml2 API</a> is very
|
62
|
+
large. If you get lost searching for some specific API use
|
63
|
+
<a href="http://xmlsoft.org/search.php">the online search
|
64
|
+
engine</a> hosted on <a href="http://xmlsoft.org/">xmlsoft.org</a>
|
65
|
+
the libxml2 and libxslt project page. </p>
|
66
|
+
</body>
|
67
|
+
</html>
|
Binary file
|