[rkward-devel] XML parser
meik michalke
meik.michalke at uni-duesseldorf.de
Tue Aug 23 23:04:51 UTC 2011
hi,
ok, i think i'm done ;-)
am Montag 22 August 2011 (22:59) schrieb meik michalke:
> so the only missing thing is a paste method, to write an XML object back to
> a readably formatted file.
if you want to try it:
install.packages("XiMpLe", repo="http://R.reaktanz.de")
library(XiMpLe)
# create "about" XML object
about.node <- rk.XML.about(
about=list(
name="Square the circle",
desc="Squares the circle using Heisenberg compensation.",
version="0.1-3",
date=Sys.Date(),
url="http://eternalwondermaths.example.org/23/stc.html",
license="GPL",
category="Geometry"),
author=list(
c(name="E.A. Dölle", email="doelle at eternalwondermaths.example.org",
url="http://eternalwondermaths.example.org"),
c(name="A. Assistant", email="alterego at eternalwondermaths.example.org",
url="http://eternalwondermaths.example.org/staff/")
),
dependencies=list(
rkward.min="0.5.3",
rkward.max="",
R.min="2.10",
R.max=""),
package=list(
c(name="heisenberg", min="0.11-2", max="",
repository="http://rforge.r-project.org"),
c(name="DreamsOfPi", min="0.2", max="", repository="")),
pluginmap=list(
c(name="heisenberg.pluginmap",
url="http://eternalwondermaths.example.org/hsb"))
)
# paste XML tree:
cat(pasteXMLNode(about.node))
there's now also a pasteXMLTree() function to paste whole XiMpLe.doc objects.
viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20110824/5c236793/attachment.sig>
More information about the Rkward-devel
mailing list