auto-generating XML generator functions [was: very XiMpLe XML validation]
meik michalke
meik.michalke at uni-duesseldorf.de
Sun Feb 7 22:29:25 UTC 2016
hi,
Am Samstag, 30. Januar 2016, 17:11:59 schrieb meik michalke:
> in the develop branch, XiMpLe has a new object class XiMpLe.validity, a new
> constructor function XMLValidity() for objects of that class, and a new
> method validXML() to check XiMpLe node/tree objects against a given
> XiMpLe.validity definition.
yet another train ride... thomas suggested something similar to this way back,
and now it's possible: XiMpLe just gained a new method for objects of class
XiMpLe.validity, to generate XML generators from it.
that is, you call XMLValidity() to define the valid node structure, including
all child nodes and attributes, and the method XMLgenerators() turns that into
functions that will generate valid XML. it includes documentation for each
function in roxygen format, if you say so.
there's still some drawbacks. but i was able to contruct a full set of over 50
documented functions that cover the entire TCF format[1], after defining it
with XMLValidity() (~100 lines of code).
viele grüße :: m.eik
[1] http://weblicht.sfs.uni-tuebingen.de/weblichtwiki/index.php/The_TCF_Format
--
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: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20160207/ade2891d/attachment.sig>
More information about the rkward-devel
mailing list