NEWS {XiMpLe} | R Documentation |
added curly brackets to the function bodies of all setGeneric()
calls to
satisfy roxygen2
allowing empty attributes (attr=""
), these were skipped, but only if
there was more than one attribute
new attribute "as.list"
added to XMLScan()
, if TRUE forces the return
value to be a list of length 1 (default is still to directly return the
single node).
new method XMLScanDeep()
recursively scans for attributes and returns all
which were found
added a proper GPL notice at the beginning of each R file
the vignette was moved from inst/doc to inst/vignettes
synced names of Author: and Maintainer: in DESCRIPTION with Autors@R:
internally replaced paste(..., sep=""
) calls with paste0(...). for R
versions older than 2.15 (when paste0()
was introduced), a wrapper function
should kick in, so we don't need to change the dependencies.
new methods XMLScan()
and XMLScan()
<- to search an XML tree recursively
for appearances of certain node names
renamed getter methods from getXML*() into the more generic XML*()
added setter methods XML*()<- to all getter methods
added tests for getter/setter methods
added proper is.XiMpLe.node()
and is.XiMpLe.doc()
functions
added getter functions for all slots in XiMpLe.node and XiMpLe.doc
objects (e.g., getXMLName()
to get the name slot of a XiMpLe.node object)
added examples to all functions
added a vignette
additional tests for node()
<-
fixed dropping of last tag/text value if XML was incomplete, e.g., just an excerpt of a full tree
fixed handling of empty tags completely without space, e.g. "<br/>" instead of "<br />"
parsing error for DOCTYPE nodes mixed up elements and previously ignored
the "decl"
value
node()
<- now replaces both text values and pseudo tags with a new value.
this can still be problematic for child nodes which contain a mix of
pseudo and actual tags, so a warning will be given until this is resolved
node()
now reports text values of nodes which have "value"
and a pseudo
tag at the same time as one character string, like pasteXML does
eliminated a memory problem for large XML trees. calling unlist()
with
use.names=FALSE really makes a difference...
reviewed the garbage collecting and internally moved it out of
XML.nodes()
into XML.single.tags()
forcing garbage collection gc()
in internal function XML.nodes()
, which
iterates through parsed XML trees
better handling of text value indentation via "shine"
and "tidy"
added a LICENSE file
debianized the sources
parseXMLTree()
now takes connections as "file"
parameter
commented CDATA tags (like they're used in XHTML) can now be detected and pasted
pasteXMLTag()
adjusts indentation level of value tags and comments
feeding internet addresses to parseXMLTree()
no longer throws an error,
skipping normalize.path()
then now
parseXMLTree()
now preserves newlines in value tags and comments
node()
now also works with single XiMpLe.node objects (not only full
trees)
added pasteXML methods to paste objects of classes XiMpLe.node and
XiMpLe.doc in a more general manner. the former functions pasteXMLNode()
and
pasteXMLTree()
are replaced by mere wrapper frunctions to pasteXML()
and
should not be used any longer.
fixed dropped text value if node also had child nodes in pasteXML()
fixed missing quotes in DOCTYPE id (pasteXML()
)
added functions XMLNode()
and XMLTree()
as constructor functions for XML
nodes and trees.
added opton "object"
to parseXMLTree()
, to be able to parse XML trees not
only from files, but also character vectors
output of internal function XML.single.tags()
has no colname any more
text values of nodes are no longer followed by an empty newline in
pasteXMLNode()
fixed bug in parsing of attributes, their names are now all quoted by default o not run into issues if they contain R-sensitive characters (like "http-equiv")
re-formatted the ChangeLog so roxyPackage can translate it into a NEWS.Rd file
rewrote large parts of internal function XML.single.tags()
for more
efficiency, allthough it's still quite lethargic when handling huge XML trees
added "&" to the special characters for "tidy"
(only applies if theres
space before and after)
"tidy"
now also indents text in comments and CDATA if it includes the
newline character
added "tidy"
option to the paste functions, which is TRUE by default
since "<" and ">" are invalid in attributes and text anyway
fixed tree parsing bug (in rare cases, comment and CDATA entries caused parsing to choke on empty lines)
added show methods for objects of class XiMpLe.doc and XiMpLe.node
changed default 'shine' value of pasteXMLNode()
and pasteXMLTree()
from 2
to 1
pasteXMLNode()
and pasteXMLTree()
now try to call each other if fed with
the wrong class object, but a warning is given
changed handling of 'value' in pasteXMLNode()
, now reflects 'shine'
setting/indentation
added docs for classed XiMpLe.doc and XiMpLe.node
fixed outstanding issue with complex value structures
changed "Author@R" to "Authors@R" in DESCRIPTION (for R >= 2.14)
fixed missing "methods"
dependecy
adjusted docs a little
added option "indent.by"
to the paste functions, in case one prefers
space over tab.
moved all rk.* functions out of this package and into its own (rkwardplugdev)
tiny improvements to XML formatting
added functions rk.XML.tabbook()
, rk.XML.dropdown()
, rk.XML.plugin()
rk.XML.pluginmap()
and rk.plugin.skeleton()
[to be moved again]
improved handling of comments a lot
fixed typo bug in XML.single.tags()
improved support for comments and CDATA
improved XML formatting
added functions pasteXMLTree()
and pasteXMLNode()
added validity checks for classes XiMpLe.doc and XiMpLe.node
added function rk.XML.about()
[which will probably be moved out of the
package]
writing new node values with node<-() partly works
rewrote and renamed getNode()
to node()
checks XML and DTD declaration now
added getNode()
method
iterating through an XML tree actually works now
initial release via reaktanz.de