gtksourceview2 1.1.5-x86-mingw32 → 1.1.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. data/lib/1.8/gtksourceview2.so +0 -0
  2. data/lib/1.9/gtksourceview2.so +0 -0
  3. data/vendor/local/bin/libxml2-2.dll +0 -0
  4. data/vendor/local/bin/xmlcatalog.exe +0 -0
  5. data/vendor/local/bin/xmllint.exe +0 -0
  6. data/vendor/local/include/libxml2/libxml/DOCBparser.h +9 -9
  7. data/vendor/local/include/libxml2/libxml/HTMLparser.h +25 -23
  8. data/vendor/local/include/libxml2/libxml/HTMLtree.h +19 -19
  9. data/vendor/local/include/libxml2/libxml/SAX.h +37 -37
  10. data/vendor/local/include/libxml2/libxml/SAX2.h +34 -34
  11. data/vendor/local/include/libxml2/libxml/c14n.h +1 -1
  12. data/vendor/local/include/libxml2/libxml/catalog.h +35 -35
  13. data/vendor/local/include/libxml2/libxml/debugXML.h +26 -26
  14. data/vendor/local/include/libxml2/libxml/dict.h +16 -5
  15. data/vendor/local/include/libxml2/libxml/encoding.h +28 -14
  16. data/vendor/local/include/libxml2/libxml/hash.h +24 -24
  17. data/vendor/local/include/libxml2/libxml/list.h +26 -26
  18. data/vendor/local/include/libxml2/libxml/nanoftp.h +44 -24
  19. data/vendor/local/include/libxml2/libxml/nanohttp.h +13 -13
  20. data/vendor/local/include/libxml2/libxml/parser.h +78 -73
  21. data/vendor/local/include/libxml2/libxml/parserInternals.h +106 -73
  22. data/vendor/local/include/libxml2/libxml/schemasInternals.h +2 -2
  23. data/vendor/local/include/libxml2/libxml/schematron.h +11 -11
  24. data/vendor/local/include/libxml2/libxml/tree.h +203 -152
  25. data/vendor/local/include/libxml2/libxml/valid.h +72 -72
  26. data/vendor/local/include/libxml2/libxml/xlink.h +7 -7
  27. data/vendor/local/include/libxml2/libxml/xmlIO.h +71 -65
  28. data/vendor/local/include/libxml2/libxml/xmlautomata.h +22 -22
  29. data/vendor/local/include/libxml2/libxml/xmlerror.h +6 -6
  30. data/vendor/local/include/libxml2/libxml/xmlexports.h +2 -2
  31. data/vendor/local/include/libxml2/libxml/xmlmodule.h +1 -1
  32. data/vendor/local/include/libxml2/libxml/xmlreader.h +24 -20
  33. data/vendor/local/include/libxml2/libxml/xmlsave.h +2 -1
  34. data/vendor/local/include/libxml2/libxml/xmlschemas.h +30 -2
  35. data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +20 -20
  36. data/vendor/local/include/libxml2/libxml/xmlstring.h +3 -3
  37. data/vendor/local/include/libxml2/libxml/xmlversion.h +29 -7
  38. data/vendor/local/include/libxml2/libxml/xmlwriter.h +4 -1
  39. data/vendor/local/include/libxml2/libxml/xpath.h +47 -43
  40. data/vendor/local/include/libxml2/libxml/xpathInternals.h +81 -79
  41. data/vendor/local/include/libxml2/libxml/xpointer.h +23 -23
  42. data/vendor/local/lib/libxml2.def +16 -14
  43. data/vendor/local/lib/libxml2.dll.a +0 -0
  44. data/vendor/local/lib/libxml2.lib +0 -0
  45. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +3 -3
  46. data/vendor/local/manifest/libxml2-dev_2.9.0-1_win32.mft +268 -0
  47. data/vendor/local/manifest/libxml2_2.9.0-1_win32.mft +2 -0
  48. data/vendor/local/share/doc/libxml2-2.9.0/Copyright +27 -0
  49. data/vendor/local/share/doc/libxml2-2.9.0/examples/testHTML.c +880 -0
  50. data/vendor/local/share/doc/libxml2-2.9.0/examples/testSAX.c +1198 -0
  51. data/vendor/local/share/doc/libxml2-2.9.0/examples/testXPath.c +229 -0
  52. data/vendor/local/share/doc/libxml2-2.9.0/examples/xmllint.c +3770 -0
  53. data/vendor/local/share/doc/libxml2-2.9.0/html/DOM.gif +0 -0
  54. data/vendor/local/share/doc/libxml2-2.9.0/html/FAQ.html +282 -0
  55. data/vendor/local/share/doc/libxml2-2.9.0/html/Libxml2-Logo-180x168.gif +0 -0
  56. data/vendor/local/share/doc/libxml2-2.9.0/html/Libxml2-Logo-90x34.gif +0 -0
  57. data/vendor/local/share/doc/libxml2-2.9.0/html/encoding.html +207 -0
  58. data/vendor/local/share/doc/libxml2-2.9.0/html/examples.xml +751 -0
  59. data/vendor/local/share/doc/libxml2-2.9.0/html/examples.xsl +174 -0
  60. data/vendor/local/share/doc/libxml2-2.9.0/html/html/book1.html +13 -0
  61. data/vendor/local/share/doc/libxml2-2.9.0/html/html/home.png +0 -0
  62. data/vendor/local/share/doc/libxml2-2.9.0/html/html/index.html +13 -0
  63. data/vendor/local/share/doc/libxml2-2.9.0/html/html/left.png +0 -0
  64. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-DOCBparser.html +51 -0
  65. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-HTMLparser.html +184 -0
  66. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-HTMLtree.html +73 -0
  67. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-SAX.html +125 -0
  68. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-SAX2.html +128 -0
  69. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-c14n.html +38 -0
  70. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-catalog.html +142 -0
  71. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-chvalid.html +72 -0
  72. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-debugXML.html +120 -0
  73. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-dict.html +58 -0
  74. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-encoding.html +124 -0
  75. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-entities.html +79 -0
  76. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-globals.html +152 -0
  77. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-hash.html +116 -0
  78. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-lib.html +13 -0
  79. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-list.html +120 -0
  80. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-nanoftp.html +94 -0
  81. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-nanohttp.html +65 -0
  82. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-parser.html +559 -0
  83. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-parserInternals.html +322 -0
  84. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-pattern.html +76 -0
  85. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-relaxng.html +162 -0
  86. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-schemasInternals.html +373 -0
  87. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-schematron.html +81 -0
  88. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-threads.html +72 -0
  89. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-tree.html +989 -0
  90. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-uri.html +73 -0
  91. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-valid.html +289 -0
  92. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xinclude.html +59 -0
  93. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xlink.html +82 -0
  94. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlIO.html +212 -0
  95. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlautomata.html +85 -0
  96. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlerror.html +864 -0
  97. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlexports.html +20 -0
  98. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlmemory.html +107 -0
  99. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlmodule.html +38 -0
  100. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlreader.html +330 -0
  101. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlregexp.html +143 -0
  102. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlsave.html +60 -0
  103. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlschemas.html +185 -0
  104. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlschemastypes.html +123 -0
  105. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlstring.html +108 -0
  106. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlunicode.html +512 -0
  107. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlversion.html +62 -0
  108. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xmlwriter.html +261 -0
  109. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpath.html +310 -0
  110. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpathInternals.html +394 -0
  111. data/vendor/local/share/doc/libxml2-2.9.0/html/html/libxml-xpointer.html +83 -0
  112. data/vendor/local/share/doc/libxml2-2.9.0/html/html/right.png +0 -0
  113. data/vendor/local/share/doc/libxml2-2.9.0/html/html/up.png +0 -0
  114. data/vendor/local/share/doc/libxml2-2.9.0/html/index.html +14 -0
  115. data/vendor/local/share/doc/libxml2-2.9.0/html/io1.c +166 -0
  116. data/vendor/local/share/doc/libxml2-2.9.0/html/io1.res +5 -0
  117. data/vendor/local/share/doc/libxml2-2.9.0/html/io2.c +58 -0
  118. data/vendor/local/share/doc/libxml2-2.9.0/html/io2.res +2 -0
  119. data/vendor/local/share/doc/libxml2-2.9.0/html/libxml.gif +0 -0
  120. data/vendor/local/share/doc/libxml2-2.9.0/html/parse1.c +56 -0
  121. data/vendor/local/share/doc/libxml2-2.9.0/html/parse2.c +72 -0
  122. data/vendor/local/share/doc/libxml2-2.9.0/html/parse3.c +60 -0
  123. data/vendor/local/share/doc/libxml2-2.9.0/html/parse4.c +143 -0
  124. data/vendor/local/share/doc/libxml2-2.9.0/html/reader1.c +107 -0
  125. data/vendor/local/share/doc/libxml2-2.9.0/html/reader1.res +14 -0
  126. data/vendor/local/share/doc/libxml2-2.9.0/html/reader2.c +122 -0
  127. data/vendor/local/share/doc/libxml2-2.9.0/html/reader3.c +120 -0
  128. data/vendor/local/share/doc/libxml2-2.9.0/html/reader3.res +13 -0
  129. data/vendor/local/share/doc/libxml2-2.9.0/html/reader4.c +122 -0
  130. data/vendor/local/share/doc/libxml2-2.9.0/html/reader4.res +3 -0
  131. data/vendor/local/share/doc/libxml2-2.9.0/html/redhat.gif +0 -0
  132. data/vendor/local/share/doc/libxml2-2.9.0/html/smallfootonly.gif +0 -0
  133. data/vendor/local/share/doc/libxml2-2.9.0/html/structure.gif +0 -0
  134. data/vendor/local/share/doc/libxml2-2.9.0/html/test1.xml +1 -0
  135. data/vendor/local/share/doc/libxml2-2.9.0/html/test2.xml +13 -0
  136. data/vendor/local/share/doc/libxml2-2.9.0/html/test3.xml +39 -0
  137. data/vendor/local/share/doc/libxml2-2.9.0/html/testWriter.c +1198 -0
  138. data/vendor/local/share/doc/libxml2-2.9.0/html/tree1.c +94 -0
  139. data/vendor/local/share/doc/libxml2-2.9.0/html/tree1.res +4 -0
  140. data/vendor/local/share/doc/libxml2-2.9.0/html/tree2.c +118 -0
  141. data/vendor/local/share/doc/libxml2-2.9.0/html/tree2.res +18 -0
  142. data/vendor/local/share/doc/libxml2-2.9.0/html/tst.xml +7 -0
  143. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apa.html +8 -0
  144. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apb.html +14 -0
  145. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apc.html +82 -0
  146. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apd.html +76 -0
  147. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ape.html +78 -0
  148. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apf.html +67 -0
  149. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/apg.html +75 -0
  150. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/aph.html +76 -0
  151. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/api.html +4 -0
  152. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s02.html +14 -0
  153. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s03.html +47 -0
  154. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s04.html +54 -0
  155. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s05.html +55 -0
  156. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s06.html +35 -0
  157. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s07.html +30 -0
  158. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s08.html +38 -0
  159. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ar01s09.html +63 -0
  160. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/blank.png +0 -0
  161. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/1.png +0 -0
  162. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/10.png +0 -0
  163. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/2.png +0 -0
  164. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/3.png +0 -0
  165. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/4.png +0 -0
  166. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/5.png +0 -0
  167. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/6.png +0 -0
  168. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/7.png +0 -0
  169. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/8.png +0 -0
  170. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/callouts/9.png +0 -0
  171. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/caution.png +0 -0
  172. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/draft.png +0 -0
  173. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/home.png +0 -0
  174. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/important.png +0 -0
  175. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/next.png +0 -0
  176. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/note.png +0 -0
  177. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/prev.png +0 -0
  178. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/tip.png +0 -0
  179. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-blank.png +0 -0
  180. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-minus.png +0 -0
  181. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/toc-plus.png +0 -0
  182. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/up.png +0 -0
  183. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/images/warning.png +0 -0
  184. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeaddattribute.c +64 -0
  185. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeaddkeyword.c +75 -0
  186. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includeconvert.c +73 -0
  187. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includegetattribute.c +72 -0
  188. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includekeyword.c +79 -0
  189. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/includexpath.c +74 -0
  190. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/index.html +14 -0
  191. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/ix01.html +1 -0
  192. data/vendor/local/share/doc/libxml2-2.9.0/html/tutorial/xmltutorial.pdf +1336 -0
  193. data/vendor/local/share/doc/libxml2-2.9.0/html/w3c.png +0 -0
  194. data/vendor/local/share/doc/libxml2-2.9.0/html/writer.xml +2 -0
  195. data/vendor/local/share/doc/libxml2-2.9.0/html/xml.html +5715 -0
  196. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath1.c +250 -0
  197. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath1.res +5 -0
  198. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath2.c +190 -0
  199. data/vendor/local/share/doc/libxml2-2.9.0/html/xpath2.res +30 -0
  200. data/vendor/local/share/gtk-doc/html/libxml2/general.html +1 -1
  201. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +3 -1
  202. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +16 -1
  203. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +11 -1
  204. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +15 -5
  205. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +8 -4
  206. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +20 -5
  207. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +72 -18
  208. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +10 -0
  209. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +5 -3
  210. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +2 -2
  211. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +8 -3
  212. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +2 -1
  213. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +15 -0
  214. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +12 -2
  215. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +8 -3
  216. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +3 -0
  217. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +9 -9
  218. data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +42 -2
  219. data/vendor/local/share/man/man1/xml2-config.1 +0 -1
  220. data/vendor/local/share/man/man1/xmlcatalog.1 +204 -93
  221. data/vendor/local/share/man/man3/libxml.3 +1 -1
  222. data/vendor/local/src/dieterv/packaging/libxml2_2.9.0-1_win32.log +867 -0
  223. data/vendor/local/src/dieterv/packaging/libxml2_2.9.0-1_win32.sh +68 -0
  224. metadata +163 -7
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Summary: internals routines exported by the parser.
2
+ * Summary: internals routines and limits exported by the parser.
3
3
  * Description: this module exports a number of internal parsing routines
4
4
  * they are not really all intended for applications but
5
5
  * can prove useful doing low level processing.
@@ -36,9 +36,42 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
36
36
  * Maximum size allowed for a single text node when building a tree.
37
37
  * This is not a limitation of the parser but a safety boundary feature,
38
38
  * use XML_PARSE_HUGE option to override it.
39
+ * Introduced in 2.9.0
39
40
  */
40
41
  #define XML_MAX_TEXT_LENGTH 10000000
41
42
 
43
+ /**
44
+ * XML_MAX_NAME_LENGTH:
45
+ *
46
+ * Maximum size allowed for a markup identitier
47
+ * This is not a limitation of the parser but a safety boundary feature,
48
+ * use XML_PARSE_HUGE option to override it.
49
+ * Note that with the use of parsing dictionaries overriding the limit
50
+ * may result in more runtime memory usage in face of "unfriendly' content
51
+ * Introduced in 2.9.0
52
+ */
53
+ #define XML_MAX_NAME_LENGTH 50000
54
+
55
+ /**
56
+ * XML_MAX_DICTIONARY_LIMIT:
57
+ *
58
+ * Maximum size allowed by the parser for a dictionary by default
59
+ * This is not a limitation of the parser but a safety boundary feature,
60
+ * use XML_PARSE_HUGE option to override it.
61
+ * Introduced in 2.9.0
62
+ */
63
+ #define XML_MAX_DICTIONARY_LIMIT 10000000
64
+
65
+ /**
66
+ * XML_MAX_LOOKUP_LIMIT:
67
+ *
68
+ * Maximum size allowed by the parser for ahead lookup
69
+ * This is an upper boundary enforced by the parser to avoid bad
70
+ * behaviour on "unfriendly' content
71
+ * Introduced in 2.9.0
72
+ */
73
+ #define XML_MAX_LOOKUP_LIMIT 10000000
74
+
42
75
  /**
43
76
  * XML_MAX_NAMELEN:
44
77
  *
@@ -57,7 +90,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
57
90
 
58
91
  /************************************************************************
59
92
  * *
60
- * UNICODE version of the macros. *
93
+ * UNICODE version of the macros. *
61
94
  * *
62
95
  ************************************************************************/
63
96
  /**
@@ -153,7 +186,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
153
186
  *
154
187
  * Always false (all combining chars > 0xff)
155
188
  */
156
- #define IS_COMBINING_CH(c) 0
189
+ #define IS_COMBINING_CH(c) 0
157
190
 
158
191
  /**
159
192
  * IS_EXTENDER:
@@ -194,7 +227,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
194
227
  * Macro to check the following production in the XML spec:
195
228
  *
196
229
  *
197
- * [84] Letter ::= BaseChar | Ideographic
230
+ * [84] Letter ::= BaseChar | Ideographic
198
231
  */
199
232
  #define IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c))
200
233
 
@@ -251,7 +284,7 @@ XMLPUBVAR unsigned int xmlParserMaxDepth;
251
284
  *
252
285
  * Skips the end of line chars.
253
286
  */
254
- #define SKIP_EOL(p) \
287
+ #define SKIP_EOL(p) \
255
288
  if (*(p) == 0x13) { p++ ; if (*(p) == 0x10) p++; } \
256
289
  if (*(p) == 0x10) { p++ ; if (*(p) == 0x13) p++; }
257
290
 
@@ -288,25 +321,25 @@ XMLPUBFUN int XMLCALL xmlIsLetter (int c);
288
321
  /**
289
322
  * Parser context.
290
323
  */
291
- XMLPUBFUN xmlParserCtxtPtr XMLCALL
324
+ XMLPUBFUN xmlParserCtxtPtr XMLCALL
292
325
  xmlCreateFileParserCtxt (const char *filename);
293
- XMLPUBFUN xmlParserCtxtPtr XMLCALL
326
+ XMLPUBFUN xmlParserCtxtPtr XMLCALL
294
327
  xmlCreateURLParserCtxt (const char *filename,
295
328
  int options);
296
- XMLPUBFUN xmlParserCtxtPtr XMLCALL
329
+ XMLPUBFUN xmlParserCtxtPtr XMLCALL
297
330
  xmlCreateMemoryParserCtxt(const char *buffer,
298
331
  int size);
299
- XMLPUBFUN xmlParserCtxtPtr XMLCALL
332
+ XMLPUBFUN xmlParserCtxtPtr XMLCALL
300
333
  xmlCreateEntityParserCtxt(const xmlChar *URL,
301
334
  const xmlChar *ID,
302
335
  const xmlChar *base);
303
- XMLPUBFUN int XMLCALL
336
+ XMLPUBFUN int XMLCALL
304
337
  xmlSwitchEncoding (xmlParserCtxtPtr ctxt,
305
338
  xmlCharEncoding enc);
306
- XMLPUBFUN int XMLCALL
339
+ XMLPUBFUN int XMLCALL
307
340
  xmlSwitchToEncoding (xmlParserCtxtPtr ctxt,
308
341
  xmlCharEncodingHandlerPtr handler);
309
- XMLPUBFUN int XMLCALL
342
+ XMLPUBFUN int XMLCALL
310
343
  xmlSwitchInputEncoding (xmlParserCtxtPtr ctxt,
311
344
  xmlParserInputPtr input,
312
345
  xmlCharEncodingHandlerPtr handler);
@@ -324,29 +357,29 @@ XMLPUBFUN void XMLCALL
324
357
  /**
325
358
  * Input Streams.
326
359
  */
327
- XMLPUBFUN xmlParserInputPtr XMLCALL
360
+ XMLPUBFUN xmlParserInputPtr XMLCALL
328
361
  xmlNewStringInputStream (xmlParserCtxtPtr ctxt,
329
362
  const xmlChar *buffer);
330
- XMLPUBFUN xmlParserInputPtr XMLCALL
363
+ XMLPUBFUN xmlParserInputPtr XMLCALL
331
364
  xmlNewEntityInputStream (xmlParserCtxtPtr ctxt,
332
365
  xmlEntityPtr entity);
333
- XMLPUBFUN int XMLCALL
366
+ XMLPUBFUN int XMLCALL
334
367
  xmlPushInput (xmlParserCtxtPtr ctxt,
335
368
  xmlParserInputPtr input);
336
- XMLPUBFUN xmlChar XMLCALL
369
+ XMLPUBFUN xmlChar XMLCALL
337
370
  xmlPopInput (xmlParserCtxtPtr ctxt);
338
- XMLPUBFUN void XMLCALL
371
+ XMLPUBFUN void XMLCALL
339
372
  xmlFreeInputStream (xmlParserInputPtr input);
340
- XMLPUBFUN xmlParserInputPtr XMLCALL
373
+ XMLPUBFUN xmlParserInputPtr XMLCALL
341
374
  xmlNewInputFromFile (xmlParserCtxtPtr ctxt,
342
375
  const char *filename);
343
- XMLPUBFUN xmlParserInputPtr XMLCALL
376
+ XMLPUBFUN xmlParserInputPtr XMLCALL
344
377
  xmlNewInputStream (xmlParserCtxtPtr ctxt);
345
378
 
346
379
  /**
347
380
  * Namespaces.
348
381
  */
349
- XMLPUBFUN xmlChar * XMLCALL
382
+ XMLPUBFUN xmlChar * XMLCALL
350
383
  xmlSplitQName (xmlParserCtxtPtr ctxt,
351
384
  const xmlChar *name,
352
385
  xmlChar **prefix);
@@ -354,112 +387,112 @@ XMLPUBFUN xmlChar * XMLCALL
354
387
  /**
355
388
  * Generic production rules.
356
389
  */
357
- XMLPUBFUN const xmlChar * XMLCALL
390
+ XMLPUBFUN const xmlChar * XMLCALL
358
391
  xmlParseName (xmlParserCtxtPtr ctxt);
359
- XMLPUBFUN xmlChar * XMLCALL
392
+ XMLPUBFUN xmlChar * XMLCALL
360
393
  xmlParseNmtoken (xmlParserCtxtPtr ctxt);
361
- XMLPUBFUN xmlChar * XMLCALL
394
+ XMLPUBFUN xmlChar * XMLCALL
362
395
  xmlParseEntityValue (xmlParserCtxtPtr ctxt,
363
396
  xmlChar **orig);
364
- XMLPUBFUN xmlChar * XMLCALL
397
+ XMLPUBFUN xmlChar * XMLCALL
365
398
  xmlParseAttValue (xmlParserCtxtPtr ctxt);
366
- XMLPUBFUN xmlChar * XMLCALL
399
+ XMLPUBFUN xmlChar * XMLCALL
367
400
  xmlParseSystemLiteral (xmlParserCtxtPtr ctxt);
368
- XMLPUBFUN xmlChar * XMLCALL
401
+ XMLPUBFUN xmlChar * XMLCALL
369
402
  xmlParsePubidLiteral (xmlParserCtxtPtr ctxt);
370
- XMLPUBFUN void XMLCALL
403
+ XMLPUBFUN void XMLCALL
371
404
  xmlParseCharData (xmlParserCtxtPtr ctxt,
372
405
  int cdata);
373
- XMLPUBFUN xmlChar * XMLCALL
406
+ XMLPUBFUN xmlChar * XMLCALL
374
407
  xmlParseExternalID (xmlParserCtxtPtr ctxt,
375
408
  xmlChar **publicID,
376
409
  int strict);
377
- XMLPUBFUN void XMLCALL
410
+ XMLPUBFUN void XMLCALL
378
411
  xmlParseComment (xmlParserCtxtPtr ctxt);
379
- XMLPUBFUN const xmlChar * XMLCALL
412
+ XMLPUBFUN const xmlChar * XMLCALL
380
413
  xmlParsePITarget (xmlParserCtxtPtr ctxt);
381
- XMLPUBFUN void XMLCALL
414
+ XMLPUBFUN void XMLCALL
382
415
  xmlParsePI (xmlParserCtxtPtr ctxt);
383
- XMLPUBFUN void XMLCALL
416
+ XMLPUBFUN void XMLCALL
384
417
  xmlParseNotationDecl (xmlParserCtxtPtr ctxt);
385
- XMLPUBFUN void XMLCALL
418
+ XMLPUBFUN void XMLCALL
386
419
  xmlParseEntityDecl (xmlParserCtxtPtr ctxt);
387
- XMLPUBFUN int XMLCALL
420
+ XMLPUBFUN int XMLCALL
388
421
  xmlParseDefaultDecl (xmlParserCtxtPtr ctxt,
389
422
  xmlChar **value);
390
- XMLPUBFUN xmlEnumerationPtr XMLCALL
423
+ XMLPUBFUN xmlEnumerationPtr XMLCALL
391
424
  xmlParseNotationType (xmlParserCtxtPtr ctxt);
392
- XMLPUBFUN xmlEnumerationPtr XMLCALL
425
+ XMLPUBFUN xmlEnumerationPtr XMLCALL
393
426
  xmlParseEnumerationType (xmlParserCtxtPtr ctxt);
394
- XMLPUBFUN int XMLCALL
427
+ XMLPUBFUN int XMLCALL
395
428
  xmlParseEnumeratedType (xmlParserCtxtPtr ctxt,
396
429
  xmlEnumerationPtr *tree);
397
- XMLPUBFUN int XMLCALL
430
+ XMLPUBFUN int XMLCALL
398
431
  xmlParseAttributeType (xmlParserCtxtPtr ctxt,
399
432
  xmlEnumerationPtr *tree);
400
- XMLPUBFUN void XMLCALL
433
+ XMLPUBFUN void XMLCALL
401
434
  xmlParseAttributeListDecl(xmlParserCtxtPtr ctxt);
402
- XMLPUBFUN xmlElementContentPtr XMLCALL
435
+ XMLPUBFUN xmlElementContentPtr XMLCALL
403
436
  xmlParseElementMixedContentDecl
404
437
  (xmlParserCtxtPtr ctxt,
405
438
  int inputchk);
406
- XMLPUBFUN xmlElementContentPtr XMLCALL
439
+ XMLPUBFUN xmlElementContentPtr XMLCALL
407
440
  xmlParseElementChildrenContentDecl
408
441
  (xmlParserCtxtPtr ctxt,
409
442
  int inputchk);
410
- XMLPUBFUN int XMLCALL
443
+ XMLPUBFUN int XMLCALL
411
444
  xmlParseElementContentDecl(xmlParserCtxtPtr ctxt,
412
445
  const xmlChar *name,
413
446
  xmlElementContentPtr *result);
414
- XMLPUBFUN int XMLCALL
447
+ XMLPUBFUN int XMLCALL
415
448
  xmlParseElementDecl (xmlParserCtxtPtr ctxt);
416
- XMLPUBFUN void XMLCALL
449
+ XMLPUBFUN void XMLCALL
417
450
  xmlParseMarkupDecl (xmlParserCtxtPtr ctxt);
418
- XMLPUBFUN int XMLCALL
451
+ XMLPUBFUN int XMLCALL
419
452
  xmlParseCharRef (xmlParserCtxtPtr ctxt);
420
- XMLPUBFUN xmlEntityPtr XMLCALL
453
+ XMLPUBFUN xmlEntityPtr XMLCALL
421
454
  xmlParseEntityRef (xmlParserCtxtPtr ctxt);
422
- XMLPUBFUN void XMLCALL
455
+ XMLPUBFUN void XMLCALL
423
456
  xmlParseReference (xmlParserCtxtPtr ctxt);
424
- XMLPUBFUN void XMLCALL
457
+ XMLPUBFUN void XMLCALL
425
458
  xmlParsePEReference (xmlParserCtxtPtr ctxt);
426
- XMLPUBFUN void XMLCALL
459
+ XMLPUBFUN void XMLCALL
427
460
  xmlParseDocTypeDecl (xmlParserCtxtPtr ctxt);
428
461
  #ifdef LIBXML_SAX1_ENABLED
429
- XMLPUBFUN const xmlChar * XMLCALL
462
+ XMLPUBFUN const xmlChar * XMLCALL
430
463
  xmlParseAttribute (xmlParserCtxtPtr ctxt,
431
464
  xmlChar **value);
432
- XMLPUBFUN const xmlChar * XMLCALL
465
+ XMLPUBFUN const xmlChar * XMLCALL
433
466
  xmlParseStartTag (xmlParserCtxtPtr ctxt);
434
- XMLPUBFUN void XMLCALL
467
+ XMLPUBFUN void XMLCALL
435
468
  xmlParseEndTag (xmlParserCtxtPtr ctxt);
436
469
  #endif /* LIBXML_SAX1_ENABLED */
437
- XMLPUBFUN void XMLCALL
470
+ XMLPUBFUN void XMLCALL
438
471
  xmlParseCDSect (xmlParserCtxtPtr ctxt);
439
- XMLPUBFUN void XMLCALL
472
+ XMLPUBFUN void XMLCALL
440
473
  xmlParseContent (xmlParserCtxtPtr ctxt);
441
- XMLPUBFUN void XMLCALL
474
+ XMLPUBFUN void XMLCALL
442
475
  xmlParseElement (xmlParserCtxtPtr ctxt);
443
- XMLPUBFUN xmlChar * XMLCALL
476
+ XMLPUBFUN xmlChar * XMLCALL
444
477
  xmlParseVersionNum (xmlParserCtxtPtr ctxt);
445
- XMLPUBFUN xmlChar * XMLCALL
478
+ XMLPUBFUN xmlChar * XMLCALL
446
479
  xmlParseVersionInfo (xmlParserCtxtPtr ctxt);
447
- XMLPUBFUN xmlChar * XMLCALL
480
+ XMLPUBFUN xmlChar * XMLCALL
448
481
  xmlParseEncName (xmlParserCtxtPtr ctxt);
449
- XMLPUBFUN const xmlChar * XMLCALL
482
+ XMLPUBFUN const xmlChar * XMLCALL
450
483
  xmlParseEncodingDecl (xmlParserCtxtPtr ctxt);
451
- XMLPUBFUN int XMLCALL
484
+ XMLPUBFUN int XMLCALL
452
485
  xmlParseSDDecl (xmlParserCtxtPtr ctxt);
453
- XMLPUBFUN void XMLCALL
486
+ XMLPUBFUN void XMLCALL
454
487
  xmlParseXMLDecl (xmlParserCtxtPtr ctxt);
455
- XMLPUBFUN void XMLCALL
488
+ XMLPUBFUN void XMLCALL
456
489
  xmlParseTextDecl (xmlParserCtxtPtr ctxt);
457
- XMLPUBFUN void XMLCALL
490
+ XMLPUBFUN void XMLCALL
458
491
  xmlParseMisc (xmlParserCtxtPtr ctxt);
459
- XMLPUBFUN void XMLCALL
492
+ XMLPUBFUN void XMLCALL
460
493
  xmlParseExternalSubset (xmlParserCtxtPtr ctxt,
461
494
  const xmlChar *ExternalID,
462
- const xmlChar *SystemID);
495
+ const xmlChar *SystemID);
463
496
  /**
464
497
  * XML_SUBSTITUTE_NONE:
465
498
  *
@@ -483,7 +516,7 @@ XMLPUBFUN void XMLCALL
483
516
  *
484
517
  * Both general and parameter entities need to be substituted.
485
518
  */
486
- #define XML_SUBSTITUTE_BOTH 3
519
+ #define XML_SUBSTITUTE_BOTH 3
487
520
 
488
521
  XMLPUBFUN xmlChar * XMLCALL
489
522
  xmlStringDecodeEntities (xmlParserCtxtPtr ctxt,
@@ -563,21 +596,21 @@ XMLPUBFUN htmlParserCtxtPtr XMLCALL htmlCreateFileParserCtxt(const char *filenam
563
596
  typedef void (*xmlEntityReferenceFunc) (xmlEntityPtr ent,
564
597
  xmlNodePtr firstNode,
565
598
  xmlNodePtr lastNode);
566
-
599
+
567
600
  XMLPUBFUN void XMLCALL xmlSetEntityReferenceFunc (xmlEntityReferenceFunc func);
568
601
 
569
- XMLPUBFUN xmlChar * XMLCALL
602
+ XMLPUBFUN xmlChar * XMLCALL
570
603
  xmlParseQuotedString (xmlParserCtxtPtr ctxt);
571
604
  XMLPUBFUN void XMLCALL
572
605
  xmlParseNamespace (xmlParserCtxtPtr ctxt);
573
- XMLPUBFUN xmlChar * XMLCALL
606
+ XMLPUBFUN xmlChar * XMLCALL
574
607
  xmlNamespaceParseNSDef (xmlParserCtxtPtr ctxt);
575
- XMLPUBFUN xmlChar * XMLCALL
608
+ XMLPUBFUN xmlChar * XMLCALL
576
609
  xmlScanName (xmlParserCtxtPtr ctxt);
577
- XMLPUBFUN xmlChar * XMLCALL
610
+ XMLPUBFUN xmlChar * XMLCALL
578
611
  xmlNamespaceParseNCName (xmlParserCtxtPtr ctxt);
579
612
  XMLPUBFUN void XMLCALL xmlParserHandleReference(xmlParserCtxtPtr ctxt);
580
- XMLPUBFUN xmlChar * XMLCALL
613
+ XMLPUBFUN xmlChar * XMLCALL
581
614
  xmlNamespaceParseQName (xmlParserCtxtPtr ctxt,
582
615
  xmlChar **prefix);
583
616
  /**
@@ -590,7 +623,7 @@ XMLPUBFUN xmlChar * XMLCALL
590
623
  xmlChar end,
591
624
  xmlChar end2,
592
625
  xmlChar end3);
593
- XMLPUBFUN void XMLCALL
626
+ XMLPUBFUN void XMLCALL
594
627
  xmlHandleEntity (xmlParserCtxtPtr ctxt,
595
628
  xmlEntityPtr entity);
596
629
 
@@ -104,8 +104,8 @@ typedef enum {
104
104
  XML_SCHEMA_TYPE_IDC_UNIQUE,
105
105
  XML_SCHEMA_TYPE_IDC_KEY,
106
106
  XML_SCHEMA_TYPE_IDC_KEYREF,
107
- XML_SCHEMA_TYPE_PARTICLE = 25,
108
- XML_SCHEMA_TYPE_ATTRIBUTE_USE,
107
+ XML_SCHEMA_TYPE_PARTICLE = 25,
108
+ XML_SCHEMA_TYPE_ATTRIBUTE_USE,
109
109
  XML_SCHEMA_FACET_MININCLUSIVE = 1000,
110
110
  XML_SCHEMA_FACET_MINEXCLUSIVE,
111
111
  XML_SCHEMA_FACET_MAXINCLUSIVE,
@@ -69,17 +69,17 @@ typedef xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
69
69
  /*
70
70
  * Interfaces for parsing.
71
71
  */
72
- XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
72
+ XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
73
73
  xmlSchematronNewParserCtxt (const char *URL);
74
- XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
74
+ XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
75
75
  xmlSchematronNewMemParserCtxt(const char *buffer,
76
76
  int size);
77
77
  XMLPUBFUN xmlSchematronParserCtxtPtr XMLCALL
78
78
  xmlSchematronNewDocParserCtxt(xmlDocPtr doc);
79
- XMLPUBFUN void XMLCALL
79
+ XMLPUBFUN void XMLCALL
80
80
  xmlSchematronFreeParserCtxt (xmlSchematronParserCtxtPtr ctxt);
81
81
  /*****
82
- XMLPUBFUN void XMLCALL
82
+ XMLPUBFUN void XMLCALL
83
83
  xmlSchematronSetParserErrors(xmlSchematronParserCtxtPtr ctxt,
84
84
  xmlSchematronValidityErrorFunc err,
85
85
  xmlSchematronValidityWarningFunc warn,
@@ -92,9 +92,9 @@ XMLPUBFUN int XMLCALL
92
92
  XMLPUBFUN int XMLCALL
93
93
  xmlSchematronIsValid (xmlSchematronValidCtxtPtr ctxt);
94
94
  *****/
95
- XMLPUBFUN xmlSchematronPtr XMLCALL
95
+ XMLPUBFUN xmlSchematronPtr XMLCALL
96
96
  xmlSchematronParse (xmlSchematronParserCtxtPtr ctxt);
97
- XMLPUBFUN void XMLCALL
97
+ XMLPUBFUN void XMLCALL
98
98
  xmlSchematronFree (xmlSchematronPtr schema);
99
99
  /*
100
100
  * Interfaces for validating
@@ -105,7 +105,7 @@ XMLPUBFUN void XMLCALL
105
105
  xmlStructuredErrorFunc serror,
106
106
  void *ctx);
107
107
  /******
108
- XMLPUBFUN void XMLCALL
108
+ XMLPUBFUN void XMLCALL
109
109
  xmlSchematronSetValidErrors (xmlSchematronValidCtxtPtr ctxt,
110
110
  xmlSchematronValidityErrorFunc err,
111
111
  xmlSchematronValidityWarningFunc warn,
@@ -125,12 +125,12 @@ XMLPUBFUN int XMLCALL
125
125
  xmlNodePtr elem);
126
126
  *******/
127
127
 
128
- XMLPUBFUN xmlSchematronValidCtxtPtr XMLCALL
128
+ XMLPUBFUN xmlSchematronValidCtxtPtr XMLCALL
129
129
  xmlSchematronNewValidCtxt (xmlSchematronPtr schema,
130
- int options);
131
- XMLPUBFUN void XMLCALL
130
+ int options);
131
+ XMLPUBFUN void XMLCALL
132
132
  xmlSchematronFreeValidCtxt (xmlSchematronValidCtxtPtr ctxt);
133
- XMLPUBFUN int XMLCALL
133
+ XMLPUBFUN int XMLCALL
134
134
  xmlSchematronValidateDoc (xmlSchematronValidCtxtPtr ctxt,
135
135
  xmlDocPtr instance);
136
136
 
@@ -13,6 +13,7 @@
13
13
  #define __XML_TREE_H__
14
14
 
15
15
  #include <stdio.h>
16
+ #include <limits.h>
16
17
  #include <libxml/xmlversion.h>
17
18
  #include <libxml/xmlstring.h>
18
19
 
@@ -74,13 +75,15 @@ typedef enum {
74
75
  XML_BUFFER_ALLOC_DOUBLEIT, /* double each time one need to grow */
75
76
  XML_BUFFER_ALLOC_EXACT, /* grow only to the minimal size */
76
77
  XML_BUFFER_ALLOC_IMMUTABLE, /* immutable buffer */
77
- XML_BUFFER_ALLOC_IO /* special allocation scheme used for I/O */
78
+ XML_BUFFER_ALLOC_IO, /* special allocation scheme used for I/O */
79
+ XML_BUFFER_ALLOC_HYBRID /* exact up to a threshold, and doubleit thereafter */
78
80
  } xmlBufferAllocationScheme;
79
81
 
80
82
  /**
81
83
  * xmlBuffer:
82
84
  *
83
- * A buffer structure.
85
+ * A buffer structure, this old construct is limited to 2GB and
86
+ * is being deprecated, use API with xmlBuf instead
84
87
  */
85
88
  typedef struct _xmlBuffer xmlBuffer;
86
89
  typedef xmlBuffer *xmlBufferPtr;
@@ -92,6 +95,41 @@ struct _xmlBuffer {
92
95
  xmlChar *contentIO; /* in IO mode we may have a different base */
93
96
  };
94
97
 
98
+ /**
99
+ * xmlBuf:
100
+ *
101
+ * A buffer structure, new one, the actual structure internals are not public
102
+ */
103
+
104
+ typedef struct _xmlBuf xmlBuf;
105
+
106
+ /**
107
+ * xmlBufPtr:
108
+ *
109
+ * A pointer to a buffer structure, the actual structure internals are not
110
+ * public
111
+ */
112
+
113
+ typedef xmlBuf *xmlBufPtr;
114
+
115
+ /*
116
+ * A few public routines for xmlBuf. As those are expected to be used
117
+ * mostly internally the bulk of the routines are internal in buf.h
118
+ */
119
+ XMLPUBFUN xmlChar* XMLCALL xmlBufContent (const xmlBufPtr buf);
120
+ XMLPUBFUN xmlChar* XMLCALL xmlBufEnd (const xmlBufPtr buf);
121
+ XMLPUBFUN size_t XMLCALL xmlBufUse (xmlBufPtr buf);
122
+ XMLPUBFUN size_t XMLCALL xmlBufShrink (xmlBufPtr buf, size_t len);
123
+
124
+ /*
125
+ * LIBXML2_NEW_BUFFER:
126
+ *
127
+ * Macro used to express that the API use the new buffers for
128
+ * xmlParserInputBuffer and xmlOutputBuffer. The change was
129
+ * introduced in 2.9.0.
130
+ */
131
+ #define LIBXML2_NEW_BUFFER
132
+
95
133
  /**
96
134
  * XML_XML_NAMESPACE:
97
135
  *
@@ -479,7 +517,7 @@ struct _xmlNode {
479
517
  /**
480
518
  * XML_GET_LINE:
481
519
  *
482
- * Macro to extract the line number of an element node.
520
+ * Macro to extract the line number of an element node.
483
521
  */
484
522
  #define XML_GET_LINE(n) \
485
523
  (xmlGetLineNo(n))
@@ -522,7 +560,7 @@ struct _xmlDoc {
522
560
 
523
561
  /* End of common part */
524
562
  int compression;/* level of zlib compression */
525
- int standalone; /* standalone document (no external refs)
563
+ int standalone; /* standalone document (no external refs)
526
564
  1 if standalone="yes"
527
565
  0 if standalone="no"
528
566
  -1 if there is no XML declaration
@@ -553,9 +591,9 @@ typedef xmlDOMWrapCtxt *xmlDOMWrapCtxtPtr;
553
591
  /**
554
592
  * xmlDOMWrapAcquireNsFunction:
555
593
  * @ctxt: a DOM wrapper context
556
- * @node: the context node (element or attribute)
594
+ * @node: the context node (element or attribute)
557
595
  * @nsName: the requested namespace name
558
- * @nsPrefix: the requested namespace prefix
596
+ * @nsPrefix: the requested namespace prefix
559
597
  *
560
598
  * A function called to acquire namespaces (xmlNs) from the wrapper.
561
599
  *
@@ -602,7 +640,7 @@ struct _xmlDOMWrapCtxt {
602
640
  /**
603
641
  * xmlRootNode:
604
642
  *
605
- * Macro for compatibility naming layer with libxml1. Maps
643
+ * Macro for compatibility naming layer with libxml1. Maps
606
644
  * to "children".
607
645
  */
608
646
  #ifndef xmlRootNode
@@ -623,429 +661,436 @@ XMLPUBFUN int XMLCALL
623
661
  #endif
624
662
 
625
663
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
626
- XMLPUBFUN int XMLCALL
664
+ XMLPUBFUN int XMLCALL
627
665
  xmlValidateQName (const xmlChar *value,
628
666
  int space);
629
- XMLPUBFUN int XMLCALL
667
+ XMLPUBFUN int XMLCALL
630
668
  xmlValidateName (const xmlChar *value,
631
669
  int space);
632
- XMLPUBFUN int XMLCALL
670
+ XMLPUBFUN int XMLCALL
633
671
  xmlValidateNMToken (const xmlChar *value,
634
672
  int space);
635
673
  #endif
636
674
 
637
- XMLPUBFUN xmlChar * XMLCALL
675
+ XMLPUBFUN xmlChar * XMLCALL
638
676
  xmlBuildQName (const xmlChar *ncname,
639
677
  const xmlChar *prefix,
640
678
  xmlChar *memory,
641
679
  int len);
642
- XMLPUBFUN xmlChar * XMLCALL
680
+ XMLPUBFUN xmlChar * XMLCALL
643
681
  xmlSplitQName2 (const xmlChar *name,
644
682
  xmlChar **prefix);
645
- XMLPUBFUN const xmlChar * XMLCALL
683
+ XMLPUBFUN const xmlChar * XMLCALL
646
684
  xmlSplitQName3 (const xmlChar *name,
647
685
  int *len);
648
686
 
649
687
  /*
650
- * Handling Buffers.
688
+ * Handling Buffers, the old ones see @xmlBuf for the new ones.
651
689
  */
652
690
 
653
- XMLPUBFUN void XMLCALL
691
+ XMLPUBFUN void XMLCALL
654
692
  xmlSetBufferAllocationScheme(xmlBufferAllocationScheme scheme);
655
- XMLPUBFUN xmlBufferAllocationScheme XMLCALL
693
+ XMLPUBFUN xmlBufferAllocationScheme XMLCALL
656
694
  xmlGetBufferAllocationScheme(void);
657
695
 
658
- XMLPUBFUN xmlBufferPtr XMLCALL
696
+ XMLPUBFUN xmlBufferPtr XMLCALL
659
697
  xmlBufferCreate (void);
660
- XMLPUBFUN xmlBufferPtr XMLCALL
698
+ XMLPUBFUN xmlBufferPtr XMLCALL
661
699
  xmlBufferCreateSize (size_t size);
662
- XMLPUBFUN xmlBufferPtr XMLCALL
700
+ XMLPUBFUN xmlBufferPtr XMLCALL
663
701
  xmlBufferCreateStatic (void *mem,
664
702
  size_t size);
665
- XMLPUBFUN int XMLCALL
703
+ XMLPUBFUN int XMLCALL
666
704
  xmlBufferResize (xmlBufferPtr buf,
667
705
  unsigned int size);
668
- XMLPUBFUN void XMLCALL
706
+ XMLPUBFUN void XMLCALL
669
707
  xmlBufferFree (xmlBufferPtr buf);
670
- XMLPUBFUN int XMLCALL
708
+ XMLPUBFUN int XMLCALL
671
709
  xmlBufferDump (FILE *file,
672
710
  xmlBufferPtr buf);
673
- XMLPUBFUN int XMLCALL
711
+ XMLPUBFUN int XMLCALL
674
712
  xmlBufferAdd (xmlBufferPtr buf,
675
713
  const xmlChar *str,
676
714
  int len);
677
- XMLPUBFUN int XMLCALL
715
+ XMLPUBFUN int XMLCALL
678
716
  xmlBufferAddHead (xmlBufferPtr buf,
679
717
  const xmlChar *str,
680
718
  int len);
681
- XMLPUBFUN int XMLCALL
719
+ XMLPUBFUN int XMLCALL
682
720
  xmlBufferCat (xmlBufferPtr buf,
683
721
  const xmlChar *str);
684
- XMLPUBFUN int XMLCALL
722
+ XMLPUBFUN int XMLCALL
685
723
  xmlBufferCCat (xmlBufferPtr buf,
686
724
  const char *str);
687
- XMLPUBFUN int XMLCALL
725
+ XMLPUBFUN int XMLCALL
688
726
  xmlBufferShrink (xmlBufferPtr buf,
689
727
  unsigned int len);
690
- XMLPUBFUN int XMLCALL
728
+ XMLPUBFUN int XMLCALL
691
729
  xmlBufferGrow (xmlBufferPtr buf,
692
730
  unsigned int len);
693
- XMLPUBFUN void XMLCALL
731
+ XMLPUBFUN void XMLCALL
694
732
  xmlBufferEmpty (xmlBufferPtr buf);
695
- XMLPUBFUN const xmlChar* XMLCALL
733
+ XMLPUBFUN const xmlChar* XMLCALL
696
734
  xmlBufferContent (const xmlBufferPtr buf);
697
- XMLPUBFUN void XMLCALL
735
+ XMLPUBFUN xmlChar* XMLCALL
736
+ xmlBufferDetach (xmlBufferPtr buf);
737
+ XMLPUBFUN void XMLCALL
698
738
  xmlBufferSetAllocationScheme(xmlBufferPtr buf,
699
739
  xmlBufferAllocationScheme scheme);
700
- XMLPUBFUN int XMLCALL
740
+ XMLPUBFUN int XMLCALL
701
741
  xmlBufferLength (const xmlBufferPtr buf);
702
742
 
703
743
  /*
704
744
  * Creating/freeing new structures.
705
745
  */
706
- XMLPUBFUN xmlDtdPtr XMLCALL
746
+ XMLPUBFUN xmlDtdPtr XMLCALL
707
747
  xmlCreateIntSubset (xmlDocPtr doc,
708
748
  const xmlChar *name,
709
749
  const xmlChar *ExternalID,
710
750
  const xmlChar *SystemID);
711
- XMLPUBFUN xmlDtdPtr XMLCALL
751
+ XMLPUBFUN xmlDtdPtr XMLCALL
712
752
  xmlNewDtd (xmlDocPtr doc,
713
753
  const xmlChar *name,
714
754
  const xmlChar *ExternalID,
715
755
  const xmlChar *SystemID);
716
- XMLPUBFUN xmlDtdPtr XMLCALL
756
+ XMLPUBFUN xmlDtdPtr XMLCALL
717
757
  xmlGetIntSubset (xmlDocPtr doc);
718
- XMLPUBFUN void XMLCALL
758
+ XMLPUBFUN void XMLCALL
719
759
  xmlFreeDtd (xmlDtdPtr cur);
720
760
  #ifdef LIBXML_LEGACY_ENABLED
721
- XMLPUBFUN xmlNsPtr XMLCALL
761
+ XMLPUBFUN xmlNsPtr XMLCALL
722
762
  xmlNewGlobalNs (xmlDocPtr doc,
723
763
  const xmlChar *href,
724
764
  const xmlChar *prefix);
725
765
  #endif /* LIBXML_LEGACY_ENABLED */
726
- XMLPUBFUN xmlNsPtr XMLCALL
766
+ XMLPUBFUN xmlNsPtr XMLCALL
727
767
  xmlNewNs (xmlNodePtr node,
728
768
  const xmlChar *href,
729
769
  const xmlChar *prefix);
730
- XMLPUBFUN void XMLCALL
770
+ XMLPUBFUN void XMLCALL
731
771
  xmlFreeNs (xmlNsPtr cur);
732
- XMLPUBFUN void XMLCALL
772
+ XMLPUBFUN void XMLCALL
733
773
  xmlFreeNsList (xmlNsPtr cur);
734
- XMLPUBFUN xmlDocPtr XMLCALL
774
+ XMLPUBFUN xmlDocPtr XMLCALL
735
775
  xmlNewDoc (const xmlChar *version);
736
- XMLPUBFUN void XMLCALL
776
+ XMLPUBFUN void XMLCALL
737
777
  xmlFreeDoc (xmlDocPtr cur);
738
- XMLPUBFUN xmlAttrPtr XMLCALL
778
+ XMLPUBFUN xmlAttrPtr XMLCALL
739
779
  xmlNewDocProp (xmlDocPtr doc,
740
780
  const xmlChar *name,
741
781
  const xmlChar *value);
742
782
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
743
783
  defined(LIBXML_SCHEMAS_ENABLED)
744
- XMLPUBFUN xmlAttrPtr XMLCALL
784
+ XMLPUBFUN xmlAttrPtr XMLCALL
745
785
  xmlNewProp (xmlNodePtr node,
746
786
  const xmlChar *name,
747
787
  const xmlChar *value);
748
788
  #endif
749
- XMLPUBFUN xmlAttrPtr XMLCALL
789
+ XMLPUBFUN xmlAttrPtr XMLCALL
750
790
  xmlNewNsProp (xmlNodePtr node,
751
791
  xmlNsPtr ns,
752
792
  const xmlChar *name,
753
793
  const xmlChar *value);
754
- XMLPUBFUN xmlAttrPtr XMLCALL
794
+ XMLPUBFUN xmlAttrPtr XMLCALL
755
795
  xmlNewNsPropEatName (xmlNodePtr node,
756
796
  xmlNsPtr ns,
757
797
  xmlChar *name,
758
798
  const xmlChar *value);
759
- XMLPUBFUN void XMLCALL
799
+ XMLPUBFUN void XMLCALL
760
800
  xmlFreePropList (xmlAttrPtr cur);
761
- XMLPUBFUN void XMLCALL
801
+ XMLPUBFUN void XMLCALL
762
802
  xmlFreeProp (xmlAttrPtr cur);
763
- XMLPUBFUN xmlAttrPtr XMLCALL
803
+ XMLPUBFUN xmlAttrPtr XMLCALL
764
804
  xmlCopyProp (xmlNodePtr target,
765
805
  xmlAttrPtr cur);
766
- XMLPUBFUN xmlAttrPtr XMLCALL
806
+ XMLPUBFUN xmlAttrPtr XMLCALL
767
807
  xmlCopyPropList (xmlNodePtr target,
768
808
  xmlAttrPtr cur);
769
809
  #ifdef LIBXML_TREE_ENABLED
770
- XMLPUBFUN xmlDtdPtr XMLCALL
810
+ XMLPUBFUN xmlDtdPtr XMLCALL
771
811
  xmlCopyDtd (xmlDtdPtr dtd);
772
812
  #endif /* LIBXML_TREE_ENABLED */
773
813
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
774
- XMLPUBFUN xmlDocPtr XMLCALL
814
+ XMLPUBFUN xmlDocPtr XMLCALL
775
815
  xmlCopyDoc (xmlDocPtr doc,
776
816
  int recursive);
777
817
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
778
818
  /*
779
819
  * Creating new nodes.
780
820
  */
781
- XMLPUBFUN xmlNodePtr XMLCALL
821
+ XMLPUBFUN xmlNodePtr XMLCALL
782
822
  xmlNewDocNode (xmlDocPtr doc,
783
823
  xmlNsPtr ns,
784
824
  const xmlChar *name,
785
825
  const xmlChar *content);
786
- XMLPUBFUN xmlNodePtr XMLCALL
826
+ XMLPUBFUN xmlNodePtr XMLCALL
787
827
  xmlNewDocNodeEatName (xmlDocPtr doc,
788
828
  xmlNsPtr ns,
789
829
  xmlChar *name,
790
830
  const xmlChar *content);
791
- XMLPUBFUN xmlNodePtr XMLCALL
831
+ XMLPUBFUN xmlNodePtr XMLCALL
792
832
  xmlNewNode (xmlNsPtr ns,
793
833
  const xmlChar *name);
794
- XMLPUBFUN xmlNodePtr XMLCALL
834
+ XMLPUBFUN xmlNodePtr XMLCALL
795
835
  xmlNewNodeEatName (xmlNsPtr ns,
796
836
  xmlChar *name);
797
837
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
798
- XMLPUBFUN xmlNodePtr XMLCALL
838
+ XMLPUBFUN xmlNodePtr XMLCALL
799
839
  xmlNewChild (xmlNodePtr parent,
800
840
  xmlNsPtr ns,
801
841
  const xmlChar *name,
802
842
  const xmlChar *content);
803
843
  #endif
804
- XMLPUBFUN xmlNodePtr XMLCALL
844
+ XMLPUBFUN xmlNodePtr XMLCALL
805
845
  xmlNewDocText (xmlDocPtr doc,
806
846
  const xmlChar *content);
807
- XMLPUBFUN xmlNodePtr XMLCALL
847
+ XMLPUBFUN xmlNodePtr XMLCALL
808
848
  xmlNewText (const xmlChar *content);
809
- XMLPUBFUN xmlNodePtr XMLCALL
849
+ XMLPUBFUN xmlNodePtr XMLCALL
810
850
  xmlNewDocPI (xmlDocPtr doc,
811
851
  const xmlChar *name,
812
852
  const xmlChar *content);
813
- XMLPUBFUN xmlNodePtr XMLCALL
853
+ XMLPUBFUN xmlNodePtr XMLCALL
814
854
  xmlNewPI (const xmlChar *name,
815
855
  const xmlChar *content);
816
- XMLPUBFUN xmlNodePtr XMLCALL
856
+ XMLPUBFUN xmlNodePtr XMLCALL
817
857
  xmlNewDocTextLen (xmlDocPtr doc,
818
858
  const xmlChar *content,
819
859
  int len);
820
- XMLPUBFUN xmlNodePtr XMLCALL
860
+ XMLPUBFUN xmlNodePtr XMLCALL
821
861
  xmlNewTextLen (const xmlChar *content,
822
862
  int len);
823
- XMLPUBFUN xmlNodePtr XMLCALL
863
+ XMLPUBFUN xmlNodePtr XMLCALL
824
864
  xmlNewDocComment (xmlDocPtr doc,
825
865
  const xmlChar *content);
826
- XMLPUBFUN xmlNodePtr XMLCALL
866
+ XMLPUBFUN xmlNodePtr XMLCALL
827
867
  xmlNewComment (const xmlChar *content);
828
- XMLPUBFUN xmlNodePtr XMLCALL
868
+ XMLPUBFUN xmlNodePtr XMLCALL
829
869
  xmlNewCDataBlock (xmlDocPtr doc,
830
870
  const xmlChar *content,
831
871
  int len);
832
- XMLPUBFUN xmlNodePtr XMLCALL
872
+ XMLPUBFUN xmlNodePtr XMLCALL
833
873
  xmlNewCharRef (xmlDocPtr doc,
834
874
  const xmlChar *name);
835
- XMLPUBFUN xmlNodePtr XMLCALL
875
+ XMLPUBFUN xmlNodePtr XMLCALL
836
876
  xmlNewReference (xmlDocPtr doc,
837
877
  const xmlChar *name);
838
- XMLPUBFUN xmlNodePtr XMLCALL
878
+ XMLPUBFUN xmlNodePtr XMLCALL
839
879
  xmlCopyNode (const xmlNodePtr node,
840
880
  int recursive);
841
- XMLPUBFUN xmlNodePtr XMLCALL
881
+ XMLPUBFUN xmlNodePtr XMLCALL
842
882
  xmlDocCopyNode (const xmlNodePtr node,
843
883
  xmlDocPtr doc,
844
884
  int recursive);
845
- XMLPUBFUN xmlNodePtr XMLCALL
885
+ XMLPUBFUN xmlNodePtr XMLCALL
846
886
  xmlDocCopyNodeList (xmlDocPtr doc,
847
887
  const xmlNodePtr node);
848
- XMLPUBFUN xmlNodePtr XMLCALL
888
+ XMLPUBFUN xmlNodePtr XMLCALL
849
889
  xmlCopyNodeList (const xmlNodePtr node);
850
890
  #ifdef LIBXML_TREE_ENABLED
851
- XMLPUBFUN xmlNodePtr XMLCALL
891
+ XMLPUBFUN xmlNodePtr XMLCALL
852
892
  xmlNewTextChild (xmlNodePtr parent,
853
893
  xmlNsPtr ns,
854
894
  const xmlChar *name,
855
895
  const xmlChar *content);
856
- XMLPUBFUN xmlNodePtr XMLCALL
896
+ XMLPUBFUN xmlNodePtr XMLCALL
857
897
  xmlNewDocRawNode (xmlDocPtr doc,
858
898
  xmlNsPtr ns,
859
899
  const xmlChar *name,
860
900
  const xmlChar *content);
861
- XMLPUBFUN xmlNodePtr XMLCALL
901
+ XMLPUBFUN xmlNodePtr XMLCALL
862
902
  xmlNewDocFragment (xmlDocPtr doc);
863
903
  #endif /* LIBXML_TREE_ENABLED */
864
904
 
865
905
  /*
866
906
  * Navigating.
867
907
  */
868
- XMLPUBFUN long XMLCALL
908
+ XMLPUBFUN long XMLCALL
869
909
  xmlGetLineNo (xmlNodePtr node);
870
910
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED)
871
- XMLPUBFUN xmlChar * XMLCALL
911
+ XMLPUBFUN xmlChar * XMLCALL
872
912
  xmlGetNodePath (xmlNodePtr node);
873
913
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_DEBUG_ENABLED) */
874
- XMLPUBFUN xmlNodePtr XMLCALL
914
+ XMLPUBFUN xmlNodePtr XMLCALL
875
915
  xmlDocGetRootElement (xmlDocPtr doc);
876
- XMLPUBFUN xmlNodePtr XMLCALL
916
+ XMLPUBFUN xmlNodePtr XMLCALL
877
917
  xmlGetLastChild (xmlNodePtr parent);
878
- XMLPUBFUN int XMLCALL
918
+ XMLPUBFUN int XMLCALL
879
919
  xmlNodeIsText (xmlNodePtr node);
880
- XMLPUBFUN int XMLCALL
920
+ XMLPUBFUN int XMLCALL
881
921
  xmlIsBlankNode (xmlNodePtr node);
882
922
 
883
923
  /*
884
924
  * Changing the structure.
885
925
  */
886
926
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
887
- XMLPUBFUN xmlNodePtr XMLCALL
927
+ XMLPUBFUN xmlNodePtr XMLCALL
888
928
  xmlDocSetRootElement (xmlDocPtr doc,
889
929
  xmlNodePtr root);
890
930
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
891
931
  #ifdef LIBXML_TREE_ENABLED
892
- XMLPUBFUN void XMLCALL
932
+ XMLPUBFUN void XMLCALL
893
933
  xmlNodeSetName (xmlNodePtr cur,
894
934
  const xmlChar *name);
895
935
  #endif /* LIBXML_TREE_ENABLED */
896
- XMLPUBFUN xmlNodePtr XMLCALL
936
+ XMLPUBFUN xmlNodePtr XMLCALL
897
937
  xmlAddChild (xmlNodePtr parent,
898
938
  xmlNodePtr cur);
899
- XMLPUBFUN xmlNodePtr XMLCALL
939
+ XMLPUBFUN xmlNodePtr XMLCALL
900
940
  xmlAddChildList (xmlNodePtr parent,
901
941
  xmlNodePtr cur);
902
942
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED)
903
- XMLPUBFUN xmlNodePtr XMLCALL
943
+ XMLPUBFUN xmlNodePtr XMLCALL
904
944
  xmlReplaceNode (xmlNodePtr old,
905
945
  xmlNodePtr cur);
906
946
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_WRITER_ENABLED) */
907
947
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
908
948
  defined(LIBXML_SCHEMAS_ENABLED)
909
- XMLPUBFUN xmlNodePtr XMLCALL
949
+ XMLPUBFUN xmlNodePtr XMLCALL
910
950
  xmlAddPrevSibling (xmlNodePtr cur,
911
951
  xmlNodePtr elem);
912
952
  #endif /* LIBXML_TREE_ENABLED || LIBXML_HTML_ENABLED || LIBXML_SCHEMAS_ENABLED */
913
- XMLPUBFUN xmlNodePtr XMLCALL
953
+ XMLPUBFUN xmlNodePtr XMLCALL
914
954
  xmlAddSibling (xmlNodePtr cur,
915
955
  xmlNodePtr elem);
916
- XMLPUBFUN xmlNodePtr XMLCALL
956
+ XMLPUBFUN xmlNodePtr XMLCALL
917
957
  xmlAddNextSibling (xmlNodePtr cur,
918
958
  xmlNodePtr elem);
919
- XMLPUBFUN void XMLCALL
959
+ XMLPUBFUN void XMLCALL
920
960
  xmlUnlinkNode (xmlNodePtr cur);
921
- XMLPUBFUN xmlNodePtr XMLCALL
961
+ XMLPUBFUN xmlNodePtr XMLCALL
922
962
  xmlTextMerge (xmlNodePtr first,
923
963
  xmlNodePtr second);
924
- XMLPUBFUN int XMLCALL
964
+ XMLPUBFUN int XMLCALL
925
965
  xmlTextConcat (xmlNodePtr node,
926
966
  const xmlChar *content,
927
967
  int len);
928
- XMLPUBFUN void XMLCALL
968
+ XMLPUBFUN void XMLCALL
929
969
  xmlFreeNodeList (xmlNodePtr cur);
930
- XMLPUBFUN void XMLCALL
970
+ XMLPUBFUN void XMLCALL
931
971
  xmlFreeNode (xmlNodePtr cur);
932
- XMLPUBFUN void XMLCALL
972
+ XMLPUBFUN void XMLCALL
933
973
  xmlSetTreeDoc (xmlNodePtr tree,
934
974
  xmlDocPtr doc);
935
- XMLPUBFUN void XMLCALL
975
+ XMLPUBFUN void XMLCALL
936
976
  xmlSetListDoc (xmlNodePtr list,
937
977
  xmlDocPtr doc);
938
978
  /*
939
979
  * Namespaces.
940
980
  */
941
- XMLPUBFUN xmlNsPtr XMLCALL
981
+ XMLPUBFUN xmlNsPtr XMLCALL
942
982
  xmlSearchNs (xmlDocPtr doc,
943
983
  xmlNodePtr node,
944
984
  const xmlChar *nameSpace);
945
- XMLPUBFUN xmlNsPtr XMLCALL
985
+ XMLPUBFUN xmlNsPtr XMLCALL
946
986
  xmlSearchNsByHref (xmlDocPtr doc,
947
987
  xmlNodePtr node,
948
988
  const xmlChar *href);
949
989
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
950
- XMLPUBFUN xmlNsPtr * XMLCALL
990
+ XMLPUBFUN xmlNsPtr * XMLCALL
951
991
  xmlGetNsList (xmlDocPtr doc,
952
992
  xmlNodePtr node);
953
993
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XPATH_ENABLED) */
954
994
 
955
- XMLPUBFUN void XMLCALL
995
+ XMLPUBFUN void XMLCALL
956
996
  xmlSetNs (xmlNodePtr node,
957
997
  xmlNsPtr ns);
958
- XMLPUBFUN xmlNsPtr XMLCALL
998
+ XMLPUBFUN xmlNsPtr XMLCALL
959
999
  xmlCopyNamespace (xmlNsPtr cur);
960
- XMLPUBFUN xmlNsPtr XMLCALL
1000
+ XMLPUBFUN xmlNsPtr XMLCALL
961
1001
  xmlCopyNamespaceList (xmlNsPtr cur);
962
1002
 
963
1003
  /*
964
1004
  * Changing the content.
965
1005
  */
966
1006
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED)
967
- XMLPUBFUN xmlAttrPtr XMLCALL
1007
+ XMLPUBFUN xmlAttrPtr XMLCALL
968
1008
  xmlSetProp (xmlNodePtr node,
969
1009
  const xmlChar *name,
970
1010
  const xmlChar *value);
971
- XMLPUBFUN xmlAttrPtr XMLCALL
1011
+ XMLPUBFUN xmlAttrPtr XMLCALL
972
1012
  xmlSetNsProp (xmlNodePtr node,
973
1013
  xmlNsPtr ns,
974
1014
  const xmlChar *name,
975
1015
  const xmlChar *value);
976
1016
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) || defined(LIBXML_HTML_ENABLED) */
977
- XMLPUBFUN xmlChar * XMLCALL
1017
+ XMLPUBFUN xmlChar * XMLCALL
978
1018
  xmlGetNoNsProp (xmlNodePtr node,
979
1019
  const xmlChar *name);
980
- XMLPUBFUN xmlChar * XMLCALL
1020
+ XMLPUBFUN xmlChar * XMLCALL
981
1021
  xmlGetProp (xmlNodePtr node,
982
1022
  const xmlChar *name);
983
- XMLPUBFUN xmlAttrPtr XMLCALL
1023
+ XMLPUBFUN xmlAttrPtr XMLCALL
984
1024
  xmlHasProp (xmlNodePtr node,
985
1025
  const xmlChar *name);
986
- XMLPUBFUN xmlAttrPtr XMLCALL
1026
+ XMLPUBFUN xmlAttrPtr XMLCALL
987
1027
  xmlHasNsProp (xmlNodePtr node,
988
1028
  const xmlChar *name,
989
1029
  const xmlChar *nameSpace);
990
- XMLPUBFUN xmlChar * XMLCALL
1030
+ XMLPUBFUN xmlChar * XMLCALL
991
1031
  xmlGetNsProp (xmlNodePtr node,
992
1032
  const xmlChar *name,
993
1033
  const xmlChar *nameSpace);
994
- XMLPUBFUN xmlNodePtr XMLCALL
1034
+ XMLPUBFUN xmlNodePtr XMLCALL
995
1035
  xmlStringGetNodeList (xmlDocPtr doc,
996
1036
  const xmlChar *value);
997
- XMLPUBFUN xmlNodePtr XMLCALL
1037
+ XMLPUBFUN xmlNodePtr XMLCALL
998
1038
  xmlStringLenGetNodeList (xmlDocPtr doc,
999
1039
  const xmlChar *value,
1000
1040
  int len);
1001
- XMLPUBFUN xmlChar * XMLCALL
1041
+ XMLPUBFUN xmlChar * XMLCALL
1002
1042
  xmlNodeListGetString (xmlDocPtr doc,
1003
1043
  xmlNodePtr list,
1004
1044
  int inLine);
1005
1045
  #ifdef LIBXML_TREE_ENABLED
1006
- XMLPUBFUN xmlChar * XMLCALL
1046
+ XMLPUBFUN xmlChar * XMLCALL
1007
1047
  xmlNodeListGetRawString (xmlDocPtr doc,
1008
1048
  xmlNodePtr list,
1009
1049
  int inLine);
1010
1050
  #endif /* LIBXML_TREE_ENABLED */
1011
- XMLPUBFUN void XMLCALL
1051
+ XMLPUBFUN void XMLCALL
1012
1052
  xmlNodeSetContent (xmlNodePtr cur,
1013
1053
  const xmlChar *content);
1014
1054
  #ifdef LIBXML_TREE_ENABLED
1015
- XMLPUBFUN void XMLCALL
1055
+ XMLPUBFUN void XMLCALL
1016
1056
  xmlNodeSetContentLen (xmlNodePtr cur,
1017
1057
  const xmlChar *content,
1018
1058
  int len);
1019
1059
  #endif /* LIBXML_TREE_ENABLED */
1020
- XMLPUBFUN void XMLCALL
1060
+ XMLPUBFUN void XMLCALL
1021
1061
  xmlNodeAddContent (xmlNodePtr cur,
1022
1062
  const xmlChar *content);
1023
- XMLPUBFUN void XMLCALL
1063
+ XMLPUBFUN void XMLCALL
1024
1064
  xmlNodeAddContentLen (xmlNodePtr cur,
1025
1065
  const xmlChar *content,
1026
1066
  int len);
1027
- XMLPUBFUN xmlChar * XMLCALL
1067
+ XMLPUBFUN xmlChar * XMLCALL
1028
1068
  xmlNodeGetContent (xmlNodePtr cur);
1069
+
1029
1070
  XMLPUBFUN int XMLCALL
1030
1071
  xmlNodeBufGetContent (xmlBufferPtr buffer,
1031
1072
  xmlNodePtr cur);
1032
- XMLPUBFUN xmlChar * XMLCALL
1073
+ XMLPUBFUN int XMLCALL
1074
+ xmlBufGetNodeContent (xmlBufPtr buf,
1075
+ xmlNodePtr cur);
1076
+
1077
+ XMLPUBFUN xmlChar * XMLCALL
1033
1078
  xmlNodeGetLang (xmlNodePtr cur);
1034
- XMLPUBFUN int XMLCALL
1079
+ XMLPUBFUN int XMLCALL
1035
1080
  xmlNodeGetSpacePreserve (xmlNodePtr cur);
1036
1081
  #ifdef LIBXML_TREE_ENABLED
1037
- XMLPUBFUN void XMLCALL
1082
+ XMLPUBFUN void XMLCALL
1038
1083
  xmlNodeSetLang (xmlNodePtr cur,
1039
1084
  const xmlChar *lang);
1040
- XMLPUBFUN void XMLCALL
1085
+ XMLPUBFUN void XMLCALL
1041
1086
  xmlNodeSetSpacePreserve (xmlNodePtr cur,
1042
1087
  int val);
1043
1088
  #endif /* LIBXML_TREE_ENABLED */
1044
- XMLPUBFUN xmlChar * XMLCALL
1089
+ XMLPUBFUN xmlChar * XMLCALL
1045
1090
  xmlNodeGetBase (xmlDocPtr doc,
1046
1091
  xmlNodePtr cur);
1047
1092
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_XINCLUDE_ENABLED)
1048
- XMLPUBFUN void XMLCALL
1093
+ XMLPUBFUN void XMLCALL
1049
1094
  xmlNodeSetBase (xmlNodePtr cur,
1050
1095
  const xmlChar *uri);
1051
1096
  #endif
@@ -1053,14 +1098,14 @@ XMLPUBFUN void XMLCALL
1053
1098
  /*
1054
1099
  * Removing content.
1055
1100
  */
1056
- XMLPUBFUN int XMLCALL
1101
+ XMLPUBFUN int XMLCALL
1057
1102
  xmlRemoveProp (xmlAttrPtr cur);
1058
1103
  #if defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED)
1059
- XMLPUBFUN int XMLCALL
1104
+ XMLPUBFUN int XMLCALL
1060
1105
  xmlUnsetNsProp (xmlNodePtr node,
1061
1106
  xmlNsPtr ns,
1062
1107
  const xmlChar *name);
1063
- XMLPUBFUN int XMLCALL
1108
+ XMLPUBFUN int XMLCALL
1064
1109
  xmlUnsetProp (xmlNodePtr node,
1065
1110
  const xmlChar *name);
1066
1111
  #endif /* defined(LIBXML_TREE_ENABLED) || defined(LIBXML_SCHEMAS_ENABLED) */
@@ -1068,13 +1113,13 @@ XMLPUBFUN int XMLCALL
1068
1113
  /*
1069
1114
  * Internal, don't use.
1070
1115
  */
1071
- XMLPUBFUN void XMLCALL
1116
+ XMLPUBFUN void XMLCALL
1072
1117
  xmlBufferWriteCHAR (xmlBufferPtr buf,
1073
1118
  const xmlChar *string);
1074
- XMLPUBFUN void XMLCALL
1119
+ XMLPUBFUN void XMLCALL
1075
1120
  xmlBufferWriteChar (xmlBufferPtr buf,
1076
1121
  const char *string);
1077
- XMLPUBFUN void XMLCALL
1122
+ XMLPUBFUN void XMLCALL
1078
1123
  xmlBufferWriteQuotedString(xmlBufferPtr buf,
1079
1124
  const xmlChar *string);
1080
1125
 
@@ -1089,7 +1134,7 @@ XMLPUBFUN void xmlAttrSerializeTxtContent(xmlBufferPtr buf,
1089
1134
  /*
1090
1135
  * Namespace handling.
1091
1136
  */
1092
- XMLPUBFUN int XMLCALL
1137
+ XMLPUBFUN int XMLCALL
1093
1138
  xmlReconciliateNs (xmlDocPtr doc,
1094
1139
  xmlNodePtr tree);
1095
1140
  #endif
@@ -1098,61 +1143,67 @@ XMLPUBFUN int XMLCALL
1098
1143
  /*
1099
1144
  * Saving.
1100
1145
  */
1101
- XMLPUBFUN void XMLCALL
1146
+ XMLPUBFUN void XMLCALL
1102
1147
  xmlDocDumpFormatMemory (xmlDocPtr cur,
1103
1148
  xmlChar **mem,
1104
1149
  int *size,
1105
1150
  int format);
1106
- XMLPUBFUN void XMLCALL
1151
+ XMLPUBFUN void XMLCALL
1107
1152
  xmlDocDumpMemory (xmlDocPtr cur,
1108
1153
  xmlChar **mem,
1109
1154
  int *size);
1110
- XMLPUBFUN void XMLCALL
1155
+ XMLPUBFUN void XMLCALL
1111
1156
  xmlDocDumpMemoryEnc (xmlDocPtr out_doc,
1112
1157
  xmlChar **doc_txt_ptr,
1113
1158
  int * doc_txt_len,
1114
1159
  const char *txt_encoding);
1115
- XMLPUBFUN void XMLCALL
1160
+ XMLPUBFUN void XMLCALL
1116
1161
  xmlDocDumpFormatMemoryEnc(xmlDocPtr out_doc,
1117
1162
  xmlChar **doc_txt_ptr,
1118
1163
  int * doc_txt_len,
1119
1164
  const char *txt_encoding,
1120
1165
  int format);
1121
- XMLPUBFUN int XMLCALL
1166
+ XMLPUBFUN int XMLCALL
1122
1167
  xmlDocFormatDump (FILE *f,
1123
1168
  xmlDocPtr cur,
1124
1169
  int format);
1125
- XMLPUBFUN int XMLCALL
1170
+ XMLPUBFUN int XMLCALL
1126
1171
  xmlDocDump (FILE *f,
1127
1172
  xmlDocPtr cur);
1128
- XMLPUBFUN void XMLCALL
1173
+ XMLPUBFUN void XMLCALL
1129
1174
  xmlElemDump (FILE *f,
1130
1175
  xmlDocPtr doc,
1131
1176
  xmlNodePtr cur);
1132
- XMLPUBFUN int XMLCALL
1177
+ XMLPUBFUN int XMLCALL
1133
1178
  xmlSaveFile (const char *filename,
1134
1179
  xmlDocPtr cur);
1135
- XMLPUBFUN int XMLCALL
1180
+ XMLPUBFUN int XMLCALL
1136
1181
  xmlSaveFormatFile (const char *filename,
1137
1182
  xmlDocPtr cur,
1138
1183
  int format);
1139
- XMLPUBFUN int XMLCALL
1184
+ XMLPUBFUN size_t XMLCALL
1185
+ xmlBufNodeDump (xmlBufPtr buf,
1186
+ xmlDocPtr doc,
1187
+ xmlNodePtr cur,
1188
+ int level,
1189
+ int format);
1190
+ XMLPUBFUN int XMLCALL
1140
1191
  xmlNodeDump (xmlBufferPtr buf,
1141
1192
  xmlDocPtr doc,
1142
1193
  xmlNodePtr cur,
1143
1194
  int level,
1144
1195
  int format);
1145
1196
 
1146
- XMLPUBFUN int XMLCALL
1197
+ XMLPUBFUN int XMLCALL
1147
1198
  xmlSaveFileTo (xmlOutputBufferPtr buf,
1148
1199
  xmlDocPtr cur,
1149
1200
  const char *encoding);
1150
- XMLPUBFUN int XMLCALL
1201
+ XMLPUBFUN int XMLCALL
1151
1202
  xmlSaveFormatFileTo (xmlOutputBufferPtr buf,
1152
1203
  xmlDocPtr cur,
1153
1204
  const char *encoding,
1154
1205
  int format);
1155
- XMLPUBFUN void XMLCALL
1206
+ XMLPUBFUN void XMLCALL
1156
1207
  xmlNodeDumpOutput (xmlOutputBufferPtr buf,
1157
1208
  xmlDocPtr doc,
1158
1209
  xmlNodePtr cur,
@@ -1160,13 +1211,13 @@ XMLPUBFUN void XMLCALL
1160
1211
  int format,
1161
1212
  const char *encoding);
1162
1213
 
1163
- XMLPUBFUN int XMLCALL
1214
+ XMLPUBFUN int XMLCALL
1164
1215
  xmlSaveFormatFileEnc (const char *filename,
1165
1216
  xmlDocPtr cur,
1166
1217
  const char *encoding,
1167
1218
  int format);
1168
1219
 
1169
- XMLPUBFUN int XMLCALL
1220
+ XMLPUBFUN int XMLCALL
1170
1221
  xmlSaveFileEnc (const char *filename,
1171
1222
  xmlDocPtr cur,
1172
1223
  const char *encoding);
@@ -1175,21 +1226,21 @@ XMLPUBFUN int XMLCALL
1175
1226
  /*
1176
1227
  * XHTML
1177
1228
  */
1178
- XMLPUBFUN int XMLCALL
1229
+ XMLPUBFUN int XMLCALL
1179
1230
  xmlIsXHTML (const xmlChar *systemID,
1180
1231
  const xmlChar *publicID);
1181
1232
 
1182
1233
  /*
1183
1234
  * Compression.
1184
1235
  */
1185
- XMLPUBFUN int XMLCALL
1236
+ XMLPUBFUN int XMLCALL
1186
1237
  xmlGetDocCompressMode (xmlDocPtr doc);
1187
- XMLPUBFUN void XMLCALL
1238
+ XMLPUBFUN void XMLCALL
1188
1239
  xmlSetDocCompressMode (xmlDocPtr doc,
1189
1240
  int mode);
1190
- XMLPUBFUN int XMLCALL
1241
+ XMLPUBFUN int XMLCALL
1191
1242
  xmlGetCompressMode (void);
1192
- XMLPUBFUN void XMLCALL
1243
+ XMLPUBFUN void XMLCALL
1193
1244
  xmlSetCompressMode (int mode);
1194
1245
 
1195
1246
  /*
@@ -1207,7 +1258,7 @@ XMLPUBFUN int XMLCALL
1207
1258
  xmlDOMWrapAdoptNode (xmlDOMWrapCtxtPtr ctxt,
1208
1259
  xmlDocPtr sourceDoc,
1209
1260
  xmlNodePtr node,
1210
- xmlDocPtr destDoc,
1261
+ xmlDocPtr destDoc,
1211
1262
  xmlNodePtr destParent,
1212
1263
  int options);
1213
1264
  XMLPUBFUN int XMLCALL