Debian Codegraph @

ChangeLog

raw
1 ============ entries from Ivan Krylov ============
2
3 Version 3.99-0.23
4 Fixed issues detected by 'rchk'
5 Replaced the use of non-API 'Rf_findVarInFrame' with 'eval'
6
7 Version 3.99-0.22
8 Disabled DTD introspection API
9
10 ============ entries from CRAN ============
11
12 Version 3.99-0.20
13 libxl2 2.15 compatibility fixes by Ivan Krylov.
14 Minor updates to make checks happy.
15
16 Version 3.99-0.18
17 configure.ac: change bashism, remove S-Plus sections.
18 man/*.Rd: cleanup some URLs
19
20 Version 3.99-0.17
21 Changes for safe use of R_ExternalPtrAddr() in src/XMLTree.c.
22
23 Version 3.99-0.16.1
24
25 Changes for libxml2 >= 2.11.0, in src/DocParse.c and src/XMLEventParse.c
26
27 Version 3.99-0.16
28
29 Avoid prntf-like warnings
30 Rd markup
31
32 Version 3.99-0.15
33
34 Complete stub in LICENSE file.
35
36 Version 3.99-0.14
37 remove unexported generic append()
38 update URLs
39
40 Version 3.99-0.13
41
42 use snprintf instead of sprintf
43
44 Version 3.99-0.12
45
46 version for libxml2 2.10.x
47 update URLs
48 tweaks for -Wstrict-prototypes
49
50 Version 3.99-0.11
51
52 workaround for a LaTeX message that causes R CMD check to
53 interpret it as an error
54 reduce LaTeX warnings
55
56 Version 3.99-0.10
57
58 Rd markup
59
60 Version 3.99-0.9
61
62 replace default.stringsAsFactors() by FALSE
63
64 Version 3.99-0.8
65
66 run autoupdate
67
68 Version 3.99-0.7
69
70 use Rf_{error,warning} rather than S legacy macros
71
72 Version 3.99-0.6
73
74 Add src/Makevars.ucrt
75
76 Version 3.99-0.5
77
78 Update src/Makevars.win
79 Add missing PROTECT() wrappers.
80
81 Version 3.99-0.4
82
83 replace --slave by --no-echo
84
85 Version: 3.99-0.3
86
87 follow DTL with BSD_3_clause
88 tweak for Windows
89
90 version 3.99-0.2 (2020-01-18)
91
92 CRAN (not DTL) as maintainer.
93
94 version 3.99-0.1
95
96 First 3.99 version in R svn, bug fixes.
97
98 ============ entries from DTL ============
99
100 Version 3.99-0
101
102 * We can specify R functions and C routines for use as XPath
103 functions in calls to getNodeSet() and xpathApply().
104
105 * Implementations of XPath 2.0 functions matches(), lower-case(),
106 ends-with(), abs(), min(), max(), replace()
107
108 Version 3.98-2
109
110 * xmlSave() of a document to a file with encoding now honors indenting.
111 Uses xmlSaveFormatFileEnc(). Issue identified by Earl Brown.
112
113 Version 3.98-1
114
115 * xmlToS4() handles attributes with namespace prefixes and children
116 with the same node name.
117
118 * Compilation error with clang. Simple declaration of a routine.
119
120 * xmlXIncludes() added.
121
122 * Changes to simplifyPath().
123
124 Version 3.98-0
125
126 * Update for libxml2-2.9.1 and reading from a connection for xmlEventParse().
127
128 * xmlIncludes() is a hierarchical version of getXIncludes()
129
130 * Modifications to xmlSource(), e.g. verbose = TRUE as default.
131
132 Version 3.97-0
133
134 * Fix for xmlValue(node) = text. Identified by Lawrence Edwards.
135 Uses xmlNodeSetContent() now and leaves freeing the original content to that routine.
136
137 * Updates for xmlSource()
138
139 Version 3.96-1
140
141 * readHTMLTable() ignores headers that are over 999 characters.
142
143 * Fix a problem in readHTMLTable() with some table headers not having
144 the correct number of elements to match the columns.
145
146 Version 3.96-0
147
148 * Introduced readHTMLList(), getHTMLLinks(), getHTMLExternalFiles(), getXIncludes().
149
150 * When serializing XMLNode objects, i.e. R representations of nodes, ensure " and <, etc. in attributes
151 are serialized correctly.
152
153
154 Version 3.95-1
155
156 * Allow htmlParse(), xmlParse(), etc. ?
157
158 Version 3.95-0
159
160 * Moved development version of the source code for the package to github -
161 https://github.com/omegahat/XML.git
162
163 * Changes to the structure of the package to allow installation directly rather than
164 via a one-step staging into the R package structure.
165
166 * Sample XML documents moved from data/ to exampleData, and examples updated.
167
168 * getDefaultNamespace() and matchNamespaces() use simplify = TRUE to call
169 xmlNamespaceDefinitions() to get the namespaces as a character vector rather than
170 list.
171
172 * Documentation updates
173
174
175 Version 3.94-0
176
177 * getNodeLocation() now reports the actual line number for text nodes rather than 0,
178 using the sibling nodes' or parent node's line number.
179
180 * xpathApply() and related functions work with builtin type "functions",
181 e.g. class.
182
183 * xpathApply() and related functions (getNodeSet, xpathSApply) allow
184 the caller to specify multiple queries as a character vector
185 and these are pasted together as compound location paths by
186 separating them with a '|'. This makes it easier for the
187 caller to manage the different queries.
188
189 * assigning to a child of a node works, e.g. node[["abc"]] = text/node
190 and node[[index]] = text/node. We replace a matching name. If the
191 replacement value is text, we use the name to
192
193 * getChildrenStrings() is a function that implements the equivalent of
194 xmlApply(node, xmlValue) but faster because we avoid the function call
195 for each element.
196
197 * options parameter for xmlParse() and htmlParse() for controlling the parser.
198 (Currently only used when encoding is explicitly specified.)
199
200 * encoding parameter for xmlParse() and xmlTreeParse() now works for XML documents,
201 not just HTML documents.
202
203 * Update for readHTMLTable() method so that we look at just the final <tr> node
204 in a <thead>.
205
206 Version 3.93-1
207
208 * Fixed bug in findXInclude() that sometimes got the wrong XMLXIncludeStartNode.
209 Hence getNodeLocation() might report the wrong file, but correct line number!
210
211 * findXInclude() now has a recursive parameter that resolves the chain of XIncludes.
212 This returns the full path to the file, relative to the base/top-level document,
213 not just the parent document.
214
215 * Change to the default value of the error parameter in htmlParse() and htmlTreeParse()
216 which will generate a structured R error if there is an IO error.
217 The set of issues that will raise an error will be broadened in the future.
218
219 Version 3.93-0
220
221 * Enabled the fixing of <dummy> namespaces by finding the definition o
222 for that prefix in the ancestor nodes.
223
224 Version 3.92-2
225
226 * Synchronized compilation flags for Windows with those on OSX & Linux.
227
228 Version 3.92-1
229
230 * Restore original error handler function for htmlParse() and htmlTreeParse()
231
232 * Fixed a reference counting problem caused by not adding a finalizer in the
233 as() method for coercing an XMLInternalNode to an XMLInternalDocument.
234 Example from Janko Thyson.
235
236 * Fixed up some partial argument names found by R CMD check!
237
238
239 Version 3.92-0
240
241 * Added --enable-xml-debug option for the configure script and this activates
242 the debugging diagnostic reporting, mainly for the garbage collection and node
243 reference counts.
244
245 * Work-around for HTML documents not being freed (but XML documents are!)
246
247 * Added an isHTML parameter for xmlTreeParse.
248
249 * Merge htmlTreeParse/htmlParse with xmlTreeParse.
250
251 * Implemented some diagnostic facilities to determine if an external pointer
252 is in R's weak references list. This needs support within R. (Ask for code if
253 you want.)
254
255 Version 3.91-0
256
257 * Start of implementation to allow nested calls to newXMLNode() to use namespace prefixes
258 defined in ancestor nodes. Disabled at present.
259
260 Version 3.9-4
261
262 * readHTMLTable() passes the encoding to the cell function.
263
264 * xmlValue() and saveXML() use the encoding from the document, improving conversion of strings.
265
266 * More methods for getEncoding()
267
268 Version 3.9-3
269
270 * getEncoding() returns NA when the encoding is not known. Previously, this might seg-fault!
271
272 * readHTMLTable() passes an encoding argument to the call to xmlValue (and the value of elFun).
273
274 Version 3.9-2
275
276 * Static NAMESPACE (rather than generated via configure)
277
278 * Default for directory in Makevars.win to search for header files and libraries needed
279 for compilation.
280
281 Version 3.9-1
282
283 * Added method for removeNodes for XMLNodeList.
284
285 Version 3.9-0
286
287 * Enabled additional encoding for element, attribute and namespace names, and
288 in xmlValue().
289
290 * Corrected default value in documentation for parse in xmlSource().
291
292 Version 3.8-1
293
294 * Corrected documentation for readHTMLTable() about stringsAsFactors behaviour.
295
296 * Added parse = FALSE as parameter for xmlSource() to allow just returning the text from
297 each node.
298
299 Version 3.8-0
300
301 * added readSolrDoc() and readKeyValueDB() functions to read Solr and Property list documents.
302
303 Version 3.7-4
304
305 * saveXML() for XMLNode returns a character vector of length 1, i.e. a single string.
306
307 Version 3.7-3
308
309 * Allow xmlTreeParse() and xmlParse() to process content starting with a BOM.
310 This works when the name of a file/URL is provided, but didn't when the content
311 was provided directly as a string. Identified by Milan Bouchet-Valat.
312
313 * error message when XML content is not XML or a file name now puts the content at the end
314 for improved readability.
315
316 Version 3.7-2
317
318 * Import methods package explicitly.
319
320 Version 3.7-1
321
322 * Added an alias for the coerce method for Currency.
323
324 * Added a C routine to query if reference counting is enabled.
325 See tests/checkRefCounts.R.
326
327 Version 3.7-0
328
329 * Added Currency as an option for colClass in readHTMLTable to
330 convert strings of the form $xxx,yyy,zzz, i.e. comma-separated
331 and preceeded by a $. (No other currency supported yet.)
332
333 * Fix for newXMLNode() that caused a seg fault if a node was specified
334 as the document. Thanks to Jeff Allen.
335
336 Version 3.6-2
337
338 * Changed URL in readHTMLTable() example to new page for population of
339 countries
340
341 * Changes to Rprintf() rather than stderr. Still some code that uses stderr
342 intentionally.
343
344 Version 3.6-1
345
346 * Fix bug which caused XMLInternalUnknownNode in xmlParent() for HTML documents.
347
348 * General improvements to support nodes of type XML_HTML_DOCUMENT_NODE.
349
350 * removeNodes() method for XMLNodeSet.
351
352 Version 3.6-0
353
354 * xmlParent() is an S4 generic with methods.
355
356 * xmlAncestors() has a count argument to limit the number of ancestors
357 returned.
358
359 * removeNodes() is generic.
360
361 * addChildren() now removes "internal" nodes from their current parent, if any.
362 Avoids memory corruption in XML tree.
363
364 * ADD_XMLOUTPUT_BUFFER R variable for Windows.
365
366 * Defined XMLTreeNode as an old-style class.
367
368 Version 3.5-1
369
370 * Additional workaround for libxml2 2.6.16 for printing HTML document.
371
372 * noMatchOk parameter for xpathApply.XMLInternalNode to suppress warnings about
373 finding no nodes when there is a namespace in the query.
374
375 * xmlNamespace<-() function and methods to allow one to set the namespace
376 on a node, e.g., by the namespace prefix.
377
378 * readHTMLTable() allows "factor" as an entry in colClasses.
379
380
381 Version 3.5-0
382
383 * Addeds nsDef parameter for parseXMLAndAdd().
384
385 * Minor addition to readHTMLTable() methods to handle malformed HTML
386 with all the tr nodes in the thead.
387
388 Version 3.4-3
389
390 * Set default of append parameter in xmlChildren<-() method for non-internal nodes
391 to FALSE so that we replace the existing nodes.
392
393 Version 3.4-2
394
395 Version 3.4-1
396
397 * Type in C code for method for xmlClone().
398
399 * Minor fixes for formatting of 2 help/Rd files.
400
401 * Removed definition of XPathNodeSet which is never used here but redefined in Sxslt.
402
403 * Fix when adding a default namespace to a node in an HTML document.
404
405 * Fix when adding a default namespace to a node in an HTML document.
406
407 Version 3.4-0
408
409 * Added xmlSearchNs() to aid looking for XML definitions by URL or prefix.
410
411 * Support in readHTMLTable() for identifying values formatted as percents
412 or numbers with commas. Use the classes FormattedInteger, FormattedNumber
413 and Percent in colClasses.
414
415 Version 3.3-2
416
417 * Better handling of namespace definitions and uses in newXMLNode
418 and separation of internal code into a separate function.
419
420 Version 3.3-1
421
422 * Configuration to conditionally compile code and export functions
423 for removing finalizers. This relies on C routines tha will be
424 added to the base R distribution, so not present in any released
425 version of R as yet.
426
427 Version 3.3-0
428
429 * addFinalizer added as parameter to many functions and methods that
430 can return a reference to an internal/C-level node. This controls
431 whether a finalizer is added to the node and reference counting
432 is performed. See MemoryManagement.pdf/.html for more details.
433
434 * One can set the suppressXMLNamespaceWarning as either an XML option (via setOption())
435 or as a regular R option (via options(suppressXMLNamespaceWarning = ...) )
436
437 * Added methods for docName() for XMLHashTreeNode and XMLNode.
438
439 * added docName when converting from an internal tree to an XMLHashTree.
440
441 * xmlHashTree() uses an environment with no parent environment, by default.
442
443 * Added an append parameter to addChildren().
444
445 * Fixed coercion from XMLInternalNode to XMLNode.
446
447 * Made the methods (e.g. xmlAttrs<-(), xmlParent(), ...)
448 for XMLNode and XMLInternalNode consistent.
449
450 * Made classes agree for xmlParse() and newXMLDoc()
451
452 * fixed corner/end cases for getSibling for XMLHashTreeNode
453
454 * Added xmlRoot<- methods for XMLInternalDocument and XMLHashTree.
455
456 * Minor enhancement to xmlToDataFrame() so that one can pass
457 the value from getNodeSet() directly as the first argument to xmlToDataFrame()
458 without passing it via the nodes parameter.
459
460 * Registered all of the native routines being invoked via .Call().
461
462 Version 3.2-1
463
464 * Turn reference counting on by default again.
465
466 Version 3.2-0
467
468 * Change to reference to normalizePath() which was moved from utils to base in R-devel/R-2.13
469
470 Version 3.1-1
471
472 * Minor change in readHTMLTable method to identify table header better.
473
474 Version 3.1-0
475
476 * Method for [[ for internal element nodes that is much faster (by avoiding
477 creating the list of children and then indexing that R list).
478 Thanks to Stavros Mackracis for raising the issue.
479
480 Version 3.0-0
481
482 * This is not a major release, but an incremental numbering from 2.9-0 to 3.0-0, but with
483 one potentially significant change related to creating nodes. newXMLNode() now uses
484 the namespace of the parent node if the namespace argument is not specified.
485
486 * Refinments to improve the garbage counting and referencing counting on internal nodes.
487
488
489 Version 2.9-0
490
491 * xmlAttrs(, TRUE) for internal nodes returns the URL of each namespace definition
492 in the names of the attr(, "namespaces") vector.
493
494 * Added parseXMLAndAdd() to parse XML from a string text and
495 add the nodes to a parent node. This facilitates creating
496 a large number of quite regular nodes using string processing
497 techniques (e.g. sprintf(), paste())
498
499 * xmlEventParse() with branches now has garbage collecting activated.
500
501 Version 2.8-1
502
503 * Filled in missing documentation
504
505 * Added missing init = TRUE for the parameters in one of the methods for xmlSource().
506
507 Version 2.8-0
508
509 * xmlClone() puts the original S3 classes on the new object.
510
511 * Trivial fix to readHTMLTable() to get the header when the table header is inside
512 a tbody.
513
514 * Garbage collection/Memory management re-enabled.
515
516 Version 2.7-0
517
518 * compareXMLDocs() function
519
520 * Added xmlSourceFunctions() and xmlSourceSection()
521
522 * Support in saveXML() for XMLInternalDocument for the prefix parameter.
523
524 * saveXML() and related methods can deal with NULL pointers in
525 XMLInternalDocument objects.
526
527 * fixed bug in catalogAdd().
528
529 * docName() made an S4 generic with S4 methods (rather than S3 methods).
530
531 * added catalogDump()
532
533 * readHTMLTable() puts sensible names on the data frames if there is no header for the table.
534
535
536 Version 2.6-0
537
538 * When copying a node from one document to another, the node is explicitly
539 copied and not removed from the original document. This also fixes a problem
540 with the name space not being on the resulting node.
541
542 * New functions for converting simple, shallow XML structure to an R data frame.
543 xmlToDataFrame() & xmlToList()
544
545 * addChildren() can handle _copying_ a node from a different document.
546
547 * as()/coerce() method for URI to character.
548
549 * New functions to convert an XML tree to an S4 object and also to infer
550 S4 class definitions from XML. (makeClassTemplate(), xmlToS4())
551
552 * Minor change to C code for compilation on Solaris and Sun Studio
553
554 Version 2.5-3
555
556 * Trivial change to an Rd file to add an omitted
557
558 Version 2.5-2
559
560 * Configuration enhanced to handle very old (but standard on OS X) versions of libxml which do not have
561 the xmlHasFeature() routine.
562 People with such an old version of libxml (i.e. 2.6.16) should consider upgrading. That is 5 years old.
563
564 Version 2.5-1
565
566 * Added a configuration check and compile time condition for the presence of XML_WITH_ZLIB. This
567 allows installation with older versions of libxml2 such as 2.6.26.
568
569 * Moved some old S3 classes to S4 class definitions to deal with recent changes to the methods package.
570
571 Version 2.5-0
572
573 * Added xmlParseDoc() and parser option constants. These allow one to parse a document
574 from a file, URL or string and specify any combination of 20 different options controlling
575 the parser, e.g. whether to replace entities, perform XInclude, add start and end XInclude nodes,
576 expand entities, load external DTDs, recover when there are errors.
577
578 * Added libxmlFeatures() to dynamically determine which features were compiled into the version
579 of libxml2.
580
581 * newXMLNode() has a new argument sibling which is used to add the new node as the sibling of this
582 node. The parametr 'at' is used as the value for the 'after' parameter in addSibling().
583
584 * saveXML() is now an S4 generic. (Changes in other packages, e.g. Sxslt, RXMLHelp.)
585
586 * Added readHTMLTable() which is a reasonably robust and flexible way to read HTML tables.
587
588 * Added runTime parameter for libxmlVersion() so we can get compile and run time version information.
589
590
591 Version 2.4-0
592
593 * Significant change to garbage collection facilities for internal/C-level nodes.
594 This works hard to ensure that XMLInternalDocument objects and XMLInternalNode objects
595 in R remain valid even when their "parent" container is released in R. See memory.pdf.
596 This can be disabled with configuration argument --enable-nodegc=no.
597
598 * Configuration option to compile with xmlsec1 (or xmlsec1-openssl). More to come on support for this.
599
600 Version 2.3-0
601
602 * Added getLineNumber() to be able to determine the line number of an XML node within
603 its original document.
604
605 * xmlApply() and xmlSApply() have a parameter to ignore the XInclude start and end nodes.
606
607 * xmlChildren() also have an omitNodeTypes parameter and by default exclude XInclude nodes.
608
609 * Added ensureNamespace() to add a namespace definition(s) if necessary.
610
611 Version 2.2-1
612
613 * source() method equivalent to xmlSource() and appropriate installation
614 changes for older versions of R ( < 2.8.0).
615
616 Version 2.2-0
617 * Added xmlClone() and findXInclude() functions.
618
619 * [Important] Bug fix regarding the error handling function for XML and HTML parsing.
620 Uncovered by Roger Koenker. This manifested itself in R errors of the form
621 "attempt to apply non-function".
622
623 Version 1.99-1
624
625 * addChildren() unconditionally unlinks nodes that already have a parent.
626
627 * Typo bug in removeChildren.XMLNode code found and fixed by Kate Mullen.
628
629 Version 1.99-0
630
631 * Added recursive parameter to xmlValue() function to control whether to work on just the
632 immediate nodes or also children.
633
634 * Correction for xpathSApply() when returning an array/matrix which referred to a non-existent variable.
635
636 * Faster creation of internal nodes via newXMLNode().
637
638 * xmlRoot() for XMLHashTree works for empty trees.
639
640 * Added xmlValue<-() function.
641
642 * Fix for removeAttributes() with namespaces.
643
644 * Addition to configure script of the argument --with-xml-output-buffer to force
645 whether to compile and use our own "local" version of xmlOutputBufferCreateBuffer()
646 which is needed on unusual systems. Supplied by Jim Bullard (UC Berkeley).
647
648
649 Version 1.98-1
650
651 * Deal with older S3-style classes with inheritance for 2.7.2 differently from the 2.8.0
652 mechanism.
653
654 * Changes to catch more cases of xmlChar * being treated as char * which causes the Sun compiler to
655 fail to compile DocParse.c
656
657 * Export class XMLNamespaceDefinitions which caused problems in the code in the caMassClass package.
658
659
660 Version 1.98-0
661
662 * The function XML:::xpathSubNodeApply() is the implementation of xpathApply() for an XMLInternalNode
663 from earlier versions of the package and which explicitly moves the node to a new document and performs
664 the XPath query and then re-parents the node. Instead of using this, users can use xpathApply()/getNodeSet()
665 and simply change the XPath expression to be prefixed with ., e.g. instead of //tr, use .//tr to root the
666 XPath query at the current node.
667
668 * Minor patch to configure.in to allow for libxml2-2.7.*.
669
670 * saveXML() for XMLInternalDocument now uses xmlDocFormatDump() ratehr than xmlSaveFile()
671 and so formatting is "better".
672
673 * The [ and [[ operators for XMLInternalDocument support a 'namespaces' parameter
674 for ease of extracting nodes. This is syntactic sugar for getNodeSet()/xpathApply().
675
676 * xmlParse() and htmlParse() return internal documents and nodes by default and are easier to type.
677 The results are amenable to XPath queries and so these are the most flexible representations.
678
679 * xmlRoot() has a skip argument that controls whether to ignore comment and DTD nodes.
680 The default is TRUE.
681
682 * Additional functionality for XMLHashTree and XMLHashTreeNode, including facilities for creating nodes
683 while adding them to the tree, copying sub-trees/nodes to separate trees.
684
685 * Functionality to convert from an XMLInternalNode to an XMLHashTree - as(node, "XMLHashTree").
686 This is also an option in xmlTreeParse(, useHashTree = TRUE/FALSE)
687 [or xmlTreeParse(, treeType = "hashTree")]
688
689 * Branch nodes from xmlEventParse(, branches = list(...)) are now garbage collected appropriately.
690
691 * xmlAttrs.XMLInternalNode now does not add the namespace prefix to the name of the attribute,
692 by default. Use xmlAttrs(node, addNamespace = TRUE) to get old behaviour.
693
694 * xmlGetAttr() has a corresponding new parameter addNamespace that is passed through to the call to
695 xmlGetAttr().
696
697 * getRelativeURL() function available for getting URI of a document from a given attribute
698 relative to a base URL, e.g. an HTML <a href=""/> or a <schema:import schemaLocation=""/>.
699
700 * xmlAttrs<- methods support an append (TRUE by default) to add values to the existing attributes,
701 or to replace the existing ones with the right-hand side of the assignment.
702
703 * xmlAttrs<- checks for namespaces in all the ancestors for XMLInternalNode and XMLHashTreeNode.
704
705 * Introduced the class XMLAbstractNode which is the parent for the XMLNode, XMLInternalNode and
706 XMLHashTreeNode, which allows high-level methods that use the API to access the elements of the nodes
707 to be defined for a single type.
708
709 * Changed name of XMLNameSpace class to XMLNamespace (lower-case 's').
710
711 Version 1.97-1
712
713 * Fix for configuration in detecting existence of encoding
714 enumerations in R. So now encoding of strings is working again.
715
716
717 Version 1.97-0
718
719 * Added xmlNativeTreeParse() as an alias for xmlInternalTreeParse()
720 and xmlTreeParse(, useInternalNodes = TRUE).
721
722 * Assignment to attributes of an R-level XML node works again, e.g.
723 xmlAttrs(doc[[3]][[2]])['foo'] = "bar"
724
725 * Subsetting ([[) for XMLHashNode behaves correctly.
726
727 * Added .children parameter to addTag() function in xmlOutputDOM() objects.
728
729 * Thanks to Michael Lawrence, a significantly simpler and more
730 general mechanism is used for getNodeSet()/xpathApply() when
731 applied to a node and not a document. This allows xpath queries
732 that go back up the ancestor path for the node.
733
734
735 Version 1.96-0
736
737 * Functionality for working with XML Schema now incorporated.
738
739 * xmlSchemaValidate() function for validating a document against a schema.
740
741 * xmlSchemaValidate() using structured error handlers to give
742 information about line numbers, columns, domain, etc. as well as
743 the message.
744
745 * xmlChildren() method for XMLInternalDocument
746
747 * Recognize additional internal node types,
748 e.g. XMLXIncludeStartNode, ...
749
750 * foo.dtd example now uses internal and external entities for illustration.
751
752
753 Version 1.95-3
754
755 * configuration change to support older versions of R that do not
756 have the C enumeration type cetype_t defined in Rinternals.h.
757
758 Version 1.95-2
759
760 * Fix for xpathApply()/getNodeSet() on the top-level node of a document
761 which left the original document with no children! Found by Martin Morgan.
762
763 Version 1.95-1
764
765 * Minor bug fixes regarding Encoding issues introduce in 1.95-0.
766
767 * xmlEventParse() calls R_CheckUserInterrupt() when making callbacks to R functions
768 and so should make the GUI more responsive.
769
770 * Test for older versions of libxml2 which did not have a context field in the xmlNs
771 data structure.
772
773 Version 1.95-0
774
775 * Use the encoding of the document in creating R character strings to identify
776 the Encoding() in R. There are probably omissions and potential problems, so
777 I would be very grateful for examples which fail, along with the file, the locale
778 and the R code used to manipulate these.
779
780
781 Version 1.94-0
782
783 * Fixed a bug in xpathApply()/getNodeSet() applied to an XMLInternalNode
784 which now ensures that the nodes emerge with the original internal document
785 as their top-level document.
786
787 * Added processXInclude() for processing individual XInclude nodes
788 and determining what nodes they add.
789
790 * If asText is TRUE in xmlTreeParse(), xmlInternalTreeParse(), ...,
791 no call to file.exists() is made. This is both sensible and
792 overcomes a potential file name length limitation (at least on
793 Windows).
794
795 * The trim parameter for xmlInternalTreeParse() and
796 xmlTreeParse(, useInternal = TRUE) causes simple text nodes
797 containing blank space to be discarded. saveXML() will, by
798 default, put them back but not if text nodes are explicitly added.
799
800 * xmlTreeParse(), xmlInternalTreeParse(), htmlTreeParser(),
801 parseDTD(), etc. take an error handler function which defaults to
802 collecting all the errors and reporting them at the end of the
803 attempt to parse.
804
805 * getXMLErrors() returns a list of errors from the XML/HTML parser
806 for help in correcting documents.
807
808 * Added xmlStopParser() which can be used to terminate a parser from
809 R. This is useful in handler functions for SAX-style parsing via
810 xmlEventParse().
811
812 * A handler function passed to xmlEventParse() can indicate that it
813 wants to be passed a reference to the internal xmlParserContext by
814 having the class XMLParserContextFunction. Such functions will be
815 called with the context object as the first argument and the usual
816 arguments displaced by 1, e.g. the name and attributes for a
817 startElement handler would then be in positions 2 and 3.
818
819 * When parsing with useInternalNodes= TRUE and trim = TRUE in
820 xmlTreeParse() or xmlInternalTreeParse(), blank nodes are discarded
821 so line breaks between nodes are not returned as part of the tree.
822 This makes pretty-printing/indenting work on the resulting
823 document but does not return the exact content of the original
824 XML. Use trim = FALSE to preserve the breaks.
825
826 * Added xmlInternalTreeParse() which is a simple copy of xmlTreeParse()
827 with useInternalNodes defaulting to TRUE, so we get an internal C-level tree.
828
829 * Added an xpathSApply() function that simplifies the result to a
830 vector/matrix, if possible.
831
832 * Added replaceNode() function which allows one to insert an internal node
833 with another one.
834
835 * addChildren() has a new at parameter to specify where in the list
836 of children to add the new nodes.
837
838 * newXMLNode(), etc. can compute the document (doc argument) from
839 the parent.
840
841 * The subset operator applied to an XMLInternalDocument and
842 getNodeSubset() and xpathApply() compute the namespaces from the
843 top-level of the document by default, so, e.g., doc[["//r:init"]] work.
844
845 * section parameter added to xmlSource() to allow easy subsetting to
846 a particular <section> within a document.
847
848 * added catalogLoad(), catalogAdd(), catalogClearTable() functions.
849
850 * Added docName() function for querying the file name or URL of a
851 parsed XML document.
852
853 * RS_XML_createDocFromNode() C routine adds root node
854 correctly via xmlAddChild().
855
856 * Slightly improved identification of HTML content rather than a file or URL name.
857
858 * Added a simplify parameter to the xmlNamespaceDefinition()
859 function which, if TRUE, returns a character vector giving the
860 prefix = URI pairs which can be used directly in xpathApply() and
861 getNodeSet().
862
863
864 Version 1.93-1
865
866 * Method for xmlNamespace with a character is now exported! Needed for cases that arise in
867 SSOAP.
868
869 Version 1.93-0
870
871 * The closeTag() function within an XMLInternalDOM object returned by xmlTree() provides
872 support for closing nodes by name or position in the stack of open nodes.
873
874 * xmlRoot() method for an XMLInternalDOM tree.
875
876 * Added a parent argument to the constructor functions for internal nodes, e.g. newXMLNode,
877 newXMLPINode, newXMLCDataNode, etc.
878
879 * doc argument for the constructor functions for internal nodes is now moved from second to third.
880 Calling
881
882 * Potentially changed the details about creating XML documents and nodes with namespaces. If these
883 negatively effect your code, please send me email ([email protected]).
884
885 * Enhancements and fixes for creating XML nodes and trees, especially with name spaces.
886
887 * Many minor changes to catch special cases in working with internal nodes.
888
889
890 Version 1.92-1
891
892 * Make addNode()/addTag() in XMLInternalDOM work with previously created XML nodes via newXMLNode().
893 Thanks to Seth Falcon for pointing out this omission. More improvements in the pipeline for generating
894 XML.
895
896 * addChildren for an XMLInternalNode can be given a list of XMLInternalNodes and/or character strings.
897
898 * xmlSource() handles r:codeIds better.
899
900 Version 1.92-0
901
902 * Added removeNodes function for unlinking XMLInternalNode objects directly by reference.
903
904 * xmlRoot() handles empty documents.
905
906 * Documentation cleanups.
907
908 Version 1.91-1
909
910 * Remove output about "cleaning"/releasing an internal document pointer.
911
912 * The warning from getNodeSet/xpathApply about using a prefix for the default namespace
913 now has a class/type of condition, specificall "XPathDefaultNamespace".
914
915 Version 1.91-0
916
917 * argument to add a finalizer for an XMLInternalDocument in xmlTreeParse()/htmlTreeParse() when
918 useInternalNodes = TRUE. If this is set, automatic garbage collection is done which will free
919 any sub-nodes. If you want to work with any of these nodes after the top-level tree variable
920 has been released, specify addFinalizer = FALSE and explicitly free the document yourself with the
921 free() function.
922
923 * Sme improvements on namespace prefixes in internal nodes. See newXMLNode().
924
925 * classes for additional XMLInternalNodes (e.g. XMLInternalCDataNode) now exported
926
927 * removeAttributes() has a .all argument to easily remove all the attributes within a node.
928 Supported for both R and internal style nodes.
929
930 * xmlAttrs<-() function for simply appending attributes to a node.
931
932 * If xmlTreeParse() is called with asText = FALSE and the file is not found, an error of class
933 "FileNotFound" is raised.
934
935 * [[ opertor for XMLInternalDocument to get the first/only entry in
936 the node set from an XPath query. This is a convenience
937 mechansim for accessing the element when there is only one.
938
939
940 Version 1.9-0
941
942 * Added xmlAncestors() functions for finding chain of parent nodes, and optionally applying a
943 function to each.
944
945 * xmlDoc() allows one to create a new XML document by copying an existing internal node, allowing
946 for work with sub-trees as regular documents, e.g. XPath queries restricted to a subset of the
947 tree.
948
949 * Ability to do XPath searches on sub-nodes within a document. getNodeSet() and xpathApply()
950 can now operate on an XMLInternalNode by creating a copy of the node and its sub-nodes into a
951 new document. However, these is memory leak associated with this and you should us xmlDoc()
952 to create a new document from the node and then perform the XPath query on that and free the
953 document.
954
955 Version 1.8-0
956
957 * Added xinclude argument to xmlTreeParse() and htmlTreeParse() to control whether
958 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"> should be resolved and
959 the appropriate nodes inserted and the actual <include> node discarded.
960
961 * The namespaces argument of getNodeSet() (and implicitly of the [ method for an
962 XMLInternalDocument object) can be a simple prefix name when referring to the
963 default namespace of the document, e.g.
964 getNodeSet(doc, "/r:help/r:keyword", "r")
965 when the document has a default namespace.
966
967 * Added a 'recursive = FALSE' parameter to xmlNamespaceDefinitions() to be able to
968 process all descendant nodes and so fetch the namespace definitions in an entire
969 sub-tree. This can be used as input to getNodeSet(), for example.
970
971 * as() method for converting an XMLInternalDocument to a node.
972
973 * xmlNamespaceDefinitions() handles the case where the top-level element
974 is not the first node, e.g. when there is a DOCTYPE node and/or a comment.
975
976 Version 1.7-3
977
978 * addChildren() coerces a string to an internal text node before adding the child.
979
980 Version 1.7-2
981
982 * Trivial error in free() for XMLInternalDocument objects fixed so the memory is released.
983
984 Version 1.7-1
985
986 * addition to configuration to detect whether the checked field of the xmlEntity structure is present.
987
988 Version 1.7-0
989
990 This a quite comprehensive enhancement to the facilities in the XML package. A lot of work on
991 the tools for creating or authoring XML from within R were added and improved. Using internal
992 nodes directly with newXMLNode() and friends, or using xmlTree() is probably the simplest.
993 But xmlHashTree() creates them in R.
994
995
996 * IMPORTANT: one can and should use the names .comment, .startElement, .processingInstruction,
997 .text, etc. when identifying general element handlers that apply to all elements of a particular type
998 in an XML document rather than to nodes that have a particular name. This differentiates between
999 a handler for a node named, say, text and a handler for all text elements found in the document.
1000 To use this new approach, call xmlTreeParse() or xmlEventParse() with
1001 useDotNames = TRUE
1002 This will become the default in future releases.
1003
1004 * namespaceHandlers() function provided to deal with node handler functions with XML name spaces where
1005 there may be multiple handlers for the same node name but which are in different XML name spaces.
1006
1007 * signature for entityDeclaration function in SAX interface is changed so that the second argument
1008 identifies the type of entity. Also, to query the value of an entity, the C code calls the
1009 getEntity() method of the handlers.
1010
1011 * addChildren() & removeChildren() and addAttributes() & removeAttributes() for an existing node allows for
1012 post-creation modification of an XML node.
1013
1014 * Improved support for name spaces on node attributes.
1015
1016 * xmlName<-() methods for internal and R-level XML nodes to change the name of a node.
1017
1018 * saveXML() and as(, "character") method for XMLInternalNode objects now to create a text representation of the
1019 internal nodes.
1020
1021 * xmlTree() allows for creating a top-level node in the call to xmlTree() directly and does not
1022 ignore these arguments.
1023
1024 * DTD and associated DOCTYPE can be created separately or directly in xmlTree().
1025
1026 * xmlTree() now allows the caller to specify the doc object as an argument, including NULL
1027 for when the nodes do not need to have a document object.
1028
1029 * Better support in xmlTree() for namespaces and maintaining a default/active namespace prefix that is to be
1030 inserted on each subsequent node.
1031
1032 * new functions for creating different internal node types - newXMLCDataNode, newXMLPINode, newXMLCommentNode, newXMLDTDNode.
1033
1034 * newXMLNode() handles text, using the new newXMLTextNode() and coerce methods.
1035
1036 * xmlTree() supports an active/default name space prefix which is used for new nodes.
1037
1038 * Resetting the state of the xmlSubstituteEntities variable is handled correctly in the case of an error.
1039
1040
1041
1042 Version 1.6-4
1043
1044 * xmlSize() method for an XMLInternalNode.
1045
1046 Version 1.6-3
1047
1048 * Handle change from Sys.putenv() to Sys.setenv().
1049
1050 Version 1.6-2
1051
1052 * Added a URI (old) class label to the result of parseURI, and exported that class for use in
1053 other packages (specifically SSOAP, at present).
1054
1055 * For subsetting child nodes by name, there is a new all = FALSE parameter which allows the caller
1056 to get the first element(s) that matches the name(s), or all of them with, e.g.
1057 node["bob", all = TRUE]. This allows us to avoid the equivalent idiom
1058 node[ names(node) == "bob" ]
1059 which is complicated when node is the result of an inline computation.
1060
1061 * added method for setting names on an XMLNode (names<-.XMLNode), not just for retrieving them.
1062
1063 Version 1.6-1
1064
1065 * Added catalogResolve() function for looking up local files and aliases for URIs, and
1066 PUBLIC and SYSTEM identifiers, e.g. in DOCTYPE nodes.
1067
1068 * saveXML method added for XMLFlatTree. (Identified by Alberto Monteiro.)
1069
1070 * Fixed saveXML methods for various classes.
1071
1072 * Doctype class: added validity method, improved coercion to character, and slightly more flexible
1073 constructor function. Validates PUBLIC identifier.
1074
1075 Version 1.6-0
1076
1077 * In saveXML() method for XMLInternalDocument, we "support" the encoding argument by passing it to
1078 xmlDocDumpFormatMemoryEnc() or xmlSaveFileEnc() in the libxml2 C code.
1079 We could also use the xmlSave() API of libxml2.
1080
1081 * htmlTreeParse() supports an encoding argument, e.g. htmlTreeParse("9003.html", encoding = "UTF-8").
1082 This allows one to correctly process HTML documents that do not contain their encoding information in the
1083 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=..."/> tag.
1084 The argument is also present in xmlTreeParse() but currently ignored.
1085
1086 Version 1.5-1
1087
1088 * updated documentation for the alias for free method for XMLInternalDocument.
1089
1090 Version 1.5-0
1091
1092 * added free() generic function and method for XMLInternalDocument
1093
1094 Version 1.4-2
1095
1096 * xmlTreeParse and htmlTreeParse will accept a character vector of length > 1
1097 and treat it as the contents of the XML stream and so call
1098 paste(file, collapse = "\n") before parsing. The asText = TRUE is implied.
1099 Thanks to Ingo Feinerer for prompting this addition.
1100
1101 Version 1.4-1
1102
1103 * Fix to ensure a connection is closed in saveXML. Identified by Herve Pages
1104
1105 * Update definition and documentation for xmlAttrs to take ... arguments.
1106
1107 Version 1.4-0
1108
1109 * Added fullNamespaceInfo parameter for xmlTreeParse() which, if TRUE,
1110 provides the namespace for each node as a named character vector giving
1111 the URI of the namespace and the prefix as the element name, i.e. c(prefix = uri)
1112 The default is FALSE to preserve the earlier behavior. The namespace object
1113 has a class XMLNamespacePrefix for the old-style, and XMLNamespace for the new
1114 style with c(name = uri) form.
1115 This information makes comparing namespaces a lot simpler, e.g. in SOAP.
1116
1117
1118 Version 1.3-2
1119 Mainly fixes for internal nodes.
1120
1121 * Export XMLNode, XMLInternalNode, XMLInternalElementNode classes
1122
1123 * as() method for XMLInternalNode wasn't recognized properly because
1124 the classes weren't exported.
1125 Also, the internal function asRXMLNode() accepts trim and ignoreBlanks
1126 arguments for cleaning up the XML node text elements that are created.
1127
1128 * export coerce methods.
1129
1130 Version 1.3-1
1131
1132 * parseURI() sets the port to NA if the value is 0.
1133
1134 Version 1.3-0
1135
1136 * The SAX parser now has a branches argument that identifies XML elements
1137 which are to be built into (internal) nodes and then the sub-tree/node
1138 is passed to the handler function specified in the element of the branches
1139 argument. This mixes the efficient SAX event-driven parsing with the easier
1140 programming tree-based model, i.e. DOM.
1141
1142 * XMLInternalNode objects in R now have extra class information identifying them as
1143 as regular element, text, CDATA, PI, ...
1144
1145 Version 1.2-0
1146
1147 * names() method for XMLInternalNode
1148
1149 * [ method for XMLInternalDocument and string using XPath notation.
1150
1151 * getNodeSet() has support for default namespaces in the XML document.
1152 It is available, by default, to the XPath expression with the prefix 'd'.
1153
1154 * Exported xmlNamespace() method for XMLInternalNode.
1155
1156 * xmlNamespaceDefinitions() made generic (S3) and new method for
1157 XMLInternalNode class.
1158
1159 Version 1.1-1
1160
1161 * Change to handling entities in printing of regular R-level XML text nodes
1162 created during xmlTreeParse() call. Identified by Ingo Feinerer.
1163
1164 * saveXML for an XMLNode object will take a file name and write to the corresponding
1165 file, overwriting it if it already exists.
1166
1167 Version 1.1-0
1168
1169 * xpathApply and getNodeSet take functions to be applied to nodes in a node
1170 set resulting from an XPath query.
1171
1172 Version 1.0-0
1173
1174 * Version skipped as it is not a milestone release, just ran out of numbers!
1175
1176 Version 0.99-94
1177 Changes from Russell Almond and suggestions from Franck Giolat for creating XML in R
1178
1179 * xmlNode() puts the names on children if omitted. Caller can use names other
1180 than the XML element name (but this is not necessarily advisable).
1181
1182 * Added xmlChildren() method to set the children.
1183
1184 * Printing of an XML node to the console handles empty nodes and text nodes better.
1185
1186 * xmlTextNode() will replace reserved characters with their entity equivalent, e.g.
1187 & with &amp; and < with &lt;. One can specify the entity vector including providing
1188 an empty one should one want to avoid replacement.
1189
1190 Version 0.99-93
1191 Changes from Martin Morgan
1192
1193 * import normalizePath from utils.
1194
1195 * Changes to configure.win to find 3rd party DLLs in bin/ directory, not lib/
1196
1197 Version 0.99-92
1198
1199 * Fix for setting DTD entity field uncovered by the strict type checking in R internals.
1200
1201 Version 0.99-91
1202
1203 * Added an encoding argument to saveXML(), initially for use in the Sxslt package.
1204
1205 Version 0.99-9
1206
1207 * Example of using namespaces in getNodeSet()
1208
1209 * Examples for xmlHashTree().
1210
1211 Version 0.99-8
1212
1213 * Introduced initial version of flat trees for storing the DOM in a
1214 non-hierarchical data structure in R. This allows us to work with
1215 a mutable tree and to perform certain operations across all the
1216 nodes more efficiently, i.e. non-recursively. Importantly, one
1217 can find the parent node of a given node in the tree which is not
1218 possible with the list of list approach. It does mean more
1219 computation for some common operations, specifically parsing.
1220 Indeed, it can be 25 times slower for a non-trivial file, i.e. one
1221 with. However, for a file with 7700 nodes, it still only takes 2
1222 1/2 seconds. So there is a trade-off. While there are a few
1223 versions in the code, xmlHashTree() is the one to use for speed
1224 reasons. xmlFlatListTree() is another and xmlFlatTree() is
1225 excruciatingly slow. See tests/timings.R for some comparisons.
1226 xmlGetElementsByTagName and other facilities work on these types
1227 of trees.
1228
1229 More functions and methods can and should be provided to work with
1230 these trees if they turn out to be used in any significant way.
1231
1232 * add the R attribute 'namespaces' to an XML node's attributes
1233 vector so that one can differentiate between conflicting attribute
1234 names with different namespaces.
1235
1236 * added parseURI() to return the elements of a URI from a string.
1237
1238
1239 Version 0.99-7
1240
1241 * Example of reading HTML tables using XPath and internal nodes in bondsTables.R
1242
1243 * Some additional methods for XMLInternalNode.
1244
1245 Version 0.99-6
1246
1247 * configure does not require the GNU sed, but can use any version of sed now that the
1248 use of + in the regular expression has been removed.
1249
1250 Version 0.99-5
1251
1252 * Added append.XMLNode and append.xmlNode to the exported symbols from the NAMESPACE
1253 file.
1254
1255 Version 0.99-4
1256
1257 * Fix for addComment() in xmlOutputDOM().
1258
1259 * Removed all the compilation warnings about interchanging xmlChar* and char*.
1260
1261 Version 0.99-3
1262
1263 * Added support in print methods for XML objects for indent = FALSE,
1264 and tagSeparator, which defaults to "\n". These can be used to print
1265 a faithful representation of an original XML document, but only when
1266 used in combination with
1267 xmlTreeParse( skipBlanks = FALSE, trim = FALSE)
1268
1269 Version 0.99-2
1270
1271 * Problems compiling with libxml2-2.5.11 and libxml2-2.6.{1,2}, so
1272 we now test for a recent version of libxml. The test uses sed -r
1273 which may cause problems. If one really wants to avoid the tests
1274 set the environment variable FORCE_XML2 to any value before running
1275 R CMD INSTALL XML.
1276
1277 * Documentation for getNodeSet() didn't refer to the new namespaces argument.
1278
1279
1280 Version 0.99-1
1281
1282 * getNodeSet() takes a namespaces argument which is named character vector of
1283 prefix = URI pairs of namespaces used in the XPath expression.
1284
1285 * Handlers for xmlEventParse() can include startDocument and endDocument elements
1286 to catch those particular events. Useful for closing connections and general cleanup,
1287 especially in the "pull" data source, i.e. connections or functions.
1288
1289 * xmlEventParse() when called with a function as the data source now doesn't have
1290 a new line appended to each string returned to the parser by the function.
1291
1292 * Passing a connection to xmlEventParse() now uses a regular R function to call
1293 readLines(con, 1) and no longer does this via C code to call readLines().
1294
1295 * Fix to the example in xmlEventParse() using the state variable.
1296
1297 Version 0.99-0
1298
1299 * Implementation for the endElement in the xmlEventParse() for saxVersion == 2.
1300
1301 * In xmlEventParse( , saxVersion = 2), the namespaces come as a named vector
1302 in the fourth argument.
1303
1304 Version 0.98-1
1305
1306 * Messages from errors are now more informative. Using saxVersion = 2 in xmlEventParse(), you get
1307 get the line and column information about the error.
1308
1309 Version 0.98
1310
1311 * Added saxVersion parameter to xmlEventParse() to control which interface is used at the C level.
1312 This changes the arguments to the startElement handler, adding the namespace for the
1313 element.
1314
1315 * Added xmlValidity() function to set the value of the default validity action. This allows us to do the
1316 setting in the R code. This is currently not exported.
1317
1318 * Added recursive parameter to xmlElementsByTagName() function. This provides functionality
1319 similar to getElementsByTagName() in XML parsing APIs for other languages.
1320
1321 * xmlTreeParse() called with no handlers and useInternalNodes returns a reference to the
1322 C-level xmlDocPtr instance. This is an object of class "XMLInternalDocument". This can be
1323 used in much the same way as the regular "XMLDocument" tree returned by xmlTreeParse,
1324 e.g. xmlRoot, etc.
1325
1326 * Added getNodeSet() to evaluate XPath expressions on an XMLInternalDocument object.
1327
1328 * Added a validate parameter to the xmlEventParse() function.
1329
1330
1331 Version 0.97-8
1332
1333 * Fix error where CDATA nodes and potentially other types of nodes (without element names) were being
1334 omitted from the R tree in a simple call to xmlTreeParse("filename") (i.e. with no handlers).
1335
1336 Version 0.97-7
1337
1338 * Documentation updates.
1339
1340 Version 0.97-6
1341
1342 * useInternalNodes added to xmlTreeParse() and htmlTreeParse().
1343 This allows one to avoid the overhead of converting the contents of nodes to
1344 R objects for each handler function call. Also, can access parents, siblings,
1345 etc. from within a handler function.
1346
1347 * Included parameterizations for Windows from Uwe Ligges to aid automated-building
1348 and finding the libxml DLL at run time.
1349
1350 Version 0.97-5
1351
1352 * Methods for accessing component of XMLInternalDocument and XMLInternalNode objects,
1353 e.g. xmlName, xmlNamespace, xmlAttrs, xmlChildren
1354
1355 * saveXML.XMLInternalDOM now supports specification of a Doctype (see Doctype).
1356
1357 * saveXML uses NextMethod and arguments are transferred. Identified by Vincent Carey.
1358
1359 * Suppress warnings from R CMD check.
1360
1361 * Change of the output file in saveXML() example to avoid conflict with Microsoft
1362 Windows use of name con.xml.
1363
1364 Version 0.97-4
1365
1366 * Quote URI values in namespace definitions in print.XMLNode.
1367
1368 Version 0.97-3
1369
1370 * Added a method for xmlRoot for HTMLDocument
1371
1372 * Changed the maintainer email address.
1373
1374 Version 0.97-2
1375
1376 * Added cdata to the collection of functions that are used in the handlers
1377 for xmlEventParse(). Omission identified by Jeff Gentry.
1378
1379 * Fixed the maintainer email address to [email protected]
1380
1381 Version 0.97-1
1382
1383 * Put the correct S3method declarations in the NAMESPACE.
1384
1385 Version 0.97-0
1386
1387 * Using a NAMESPACE for the package
1388
1389 Version 0.96-0
1390
1391 * Using libxml2 by default rather than libxml.
1392
1393 * Fixed typo. in PACKAGE when initializing the library.
1394
1395 Version 0.95-7
1396
1397 * When creating a namespace identifier, if the namespace doesn't have an href, then we put
1398 in an <NA> string.
1399
1400 Version 0.95-6
1401
1402 * Documentation updates for synchronization with the code.
1403
1404 Version 0.95-5
1405
1406 * Trivial bug of including extra arguments in call to UseMethod for
1407 dtdElementValidEntry that generated warnings.
1408
1409 Version 0.95-4
1410
1411 * Configuration now tries to find libxml 1, then libxml 2 unless explicitly
1412 instructed to find libxml 2 via --with-libxml2. So the change is to pick
1413 up libxml 2 if libxml 1 is not found rather than signal an error.
1414
1415 Version 0.95-3
1416
1417 * Remove the need to define xmlParserError. Instead, set the value of the error
1418 routine/function pointer to our error handler in the different default handlers
1419 in libxml. We now initialize these default objects when we load the library.
1420
1421 * When setting the environment variables LIBXML_INCDIR and LIBXML_LIBDIR, one
1422 needs to specify the -I and -L prefixes for the compiler and linker respectively
1423 in front of directory names.
1424
1425 * Detect whether the routine for xmlHashScan (in libxml2) provides a return value
1426 or not. This changed in version 2.4.21 of libxml2.
1427
1428 Version 0.95-2
1429
1430 * Configuration detects Darwin and handles multiplicity of xmlParserError
1431 symbol.
1432
1433 Version 0.95-1
1434
1435 * Configuration now supports the specification of the xml-config script
1436 to use via the environment variable XML_CONFIG or the --with-xml-config
1437 as in --with-xml-config=xml2-config
1438
1439 * Recognize file:/// prefix as URL and not switch to treating file name as
1440 XML text.
1441
1442 Version 0.95-0
1443
1444 * Event-driven parsing (SAX) can take a connection object or a function
1445 that is called when the parser needs more input. See the documentation
1446 for xmlEventParse().
1447
1448 * Classes and methods explicitly created during the installation.
1449 This will cause problems with namespaces until the saving of the image
1450 model works with namespaces.
1451
1452 Version 0.94-1
1453
1454 * Minor change to configuration script to avoid -L-L in specification of
1455 directory for XML library (libxml).
1456
1457 Version 0.94-0
1458
1459 * Use registration of C routines
1460
1461 * Added methods for saveXML for XMLNode and XMLOutputStream objects.
1462
1463 Version 0.93-4
1464
1465 * replaceEntities argument for xmlEventParse.
1466
1467 * S4 SAX methods assigned to the correct database.
1468
1469 Version 0.93-3
1470
1471 * Correct support for DTDs and namespaces in the internal nodes
1472 used in xmlTree(). Errors identified by Vincent Carey.
1473
1474 Version 0.93-2
1475
1476 * Bug in trimming white space discovered by Ott Toomet.
1477
1478 Version 0.93-1
1479
1480 * Documentation updates. Included xmlGetAttr.Rd.
1481
1482 Version 0.93-0
1483
1484 * Added toString.XMLNode
1485
1486 * Fixed the printing of degenerate namespaces in an XML node,
1487 i.e. the spurious `:'.
1488
1489 Version 0.92-2
1490
1491 * Fixed C bug caused by using namespace without a suffix,
1492 e.g. xmlns="http:...." assumed prefix was present.
1493 Thanks to David Meyer.
1494
1495 Version 0.92-1
1496 * Display the namespace definitions when printing an XMLNode object.
1497
1498 * New addAttributeNamespaces argument for xmlTreeParse() that controls whether
1499 namespaces are included in attribute names.
1500
1501 Version 0.92-0
1502
1503 * XMLNode class now contains a field for namespace definitions
1504 The `namespace' field is a character string identifying the prefix's
1505 namespace. The `namespaceDefinition' field contains the full definitions
1506 of each of the namespaces defined within a node.
1507
1508 * Printing of XLM nodes displays the namespace.
1509
1510 * xmlName() takes a `full' argument that controls whether the
1511 namespace prefix is prepended to the tag name.
1512
1513 Version 0.91-0
1514
1515 * Added a mechanism to the SAX parser to allow a state object
1516 be passed between the callbacks and returned as the result of
1517 the parsing. This avoids the need for closures. Also, works
1518 with S4 classes and the genericSAXHandlers() methods by allowing
1519 one to write methods for these generic callbacks that dispatch
1520 based on the type of the state object.
1521
1522 * Fix to make work properly with S4 class system.
1523
1524 Version 0.9-1
1525
1526 * Formatting of the help files to avoid long lines
1527 identified by Ott Toomet
1528
1529 * Addition of `ignoreComments' argument for xmlValue()
1530
1531 * Date in the DESCRIPTION file corrected (thanks to Doug Bates).
1532
1533 Version 0.9-0
1534
1535 * Added addCData() and addPI() to the handlers of the different
1536 XMLOutputStream classes.
1537 Code for XMLInternalDOM (i.e. xmlTree()) from Byron Ellis.
1538
1539 * print() method for XMLProcessingInstruction node has the terminating `?'
1540 as in <?pi-name text ?>.
1541
1542 Version 0.8-2
1543
1544 * Changes to support libxml2-2.4.21 (specifically the issues with
1545 the headers and parse error regarding xmlValidCtxt). Thanks to
1546 Wolfgang Huber for identifying this.
1547
1548 * Ignoring R_VERSION now, so dependency is R >= 1.2.0
1549
1550 Version 0.8-1
1551
1552 * Added an `attrs' argument to the xmlOutputBuffer and xmlTree
1553 functions for specifying the top-level node.
1554
1555 Version 0.8-0
1556
1557 * xmlValue() extended to work recursively if a node has
1558 only one child.
1559
1560 * T and F replaced by TRUE and FALSE
1561
1562 Version 0.7-4
1563
1564 * Support for Windows
1565
1566 Version 0.7-3
1567
1568 * Documents without <DOCTYPE ..> are handled correctly.
1569
1570 * Configuration tweak to set LD_LIBRARY_PATH to handle the case
1571 that the user specifies LIBXML_LIBDIR and it is needed to run the
1572 version test.
1573
1574 * Keyword XML changed to IO.
1575
1576 Version 0.7-2
1577
1578 * Fix for printing XMLNode objects to handle comments and elements
1579 with name "text". Identified by Andrew Schuh.
1580
1581 Version 0.7-1
1582
1583 * Minor fixes for passing R CMD check.
1584
1585 Version 0.7-0
1586
1587 * Generating XML trees using internal libxml structures:
1588 xmlTree(), newXMLDoc(), newXMLNode(), saveXML().
1589
1590 * Support parsing HTML (htmlTreeParse()) using DOM.
1591 Suggestion from Luis Torgo.
1592
1593 * Additional updates for libxml2, relating to DTDs.
1594
1595 Version 0.6-3
1596
1597 * Installation using --with-xml2 now attempts to link against libxml2.so
1598 and the appropriate header files.
1599
1600 * Use libxml's xml-config or xml2-config scripts if these are available.
1601
1602 Version 0.6
1603
1604 * xmlDOMApply for recursively applying a function to each node in a tree.
1605
1606 Version 0.5-1
1607
1608 * simplification of xmlOutputBuffer so that it doesn't put
1609 the namespace definition in each and every tag.
1610
1611 * configuration changes to support libxml2-2.3.6
1612 (look for libxml2, check if xmlHashSize is available)
1613
1614 * now dropping nodes if the handler function returns NULL.
1615 Updated documentation.
1616
1617 * spelling correction in the documentation
1618
1619 Version 0.5
1620 * xmlOutputBuffer now accepts a connection.
1621
1622 * Fixes for using libxml2, specifically 2.2.12.
1623 Also works for libxml2.2.8
1624
1625 * Enhanced configuration script to determine what features are available.
1626
1627 Version 0.4
1628
1629 * `namespace' handler in xmlTreeParse is called when a namespace
1630 declaration is encountered. This is called before the child nodes
1631 are processed.
1632
1633 * More documentation, in Tour.
1634
1635 * xmlValue, xmlApply, xmlSApply, xmlRoot, xmlNamespace, length, names
1636
1637 * Constructors for different types of nodes: XMLNode, XMLTextNode, XMLProcessingInstruction.
1638
1639 * Methods for print(), subsetting ([ and [[), accessing the fields
1640 in an XMLNode object.
1641
1642 * New classes for the different node types (e.g. XMLTextNode)
1643
1644 * Event driven parsing available via libxml. Expat is not needed but
1645 can be used.
1646
1647 * Document sources can be URLs (ftp and http) when using the libxml parser.
1648
1649 * Examples for processing MathML and SVG files. See examples/ directory.
1650
1651 * Examples for event driven parsing.
1652
1653
1654
1655 * Class of result from xmlTreeParse is XMLDocument.
1656
1657 * Comments, Entities, Text, etc. inherit from XMLNode
1658 in addition to defining their own XML<type> class.
1659
1660