[rkward-devel] a new approach to external plugins

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Thu Sep 1 10:24:56 UTC 2011


Hi,

On Saturday 27 August 2011, meik michalke wrote:
> there's only one more thing which is so not working... it's reading XML
> nodes which have a text value with embedded other XML nodes. and non-empty
> tags without value or children turn into empty tags, i need to preserve
> that type info someway. but these are probably not issues for RKWard
> anyway.

I have not actually looked at your package, yet. So this is just a blind 
guess, but two suggestions:
1) You could treat text fragments as a sort of "pseudo" node, and keep them in 
the same list. Perhaps you'd keep one list of true child elements, and one 
list of all child fragments, where fragments can either be plain character, or 
a tag representation.
2) The text representation could simply strip all child tags. See e.g. 
http://doc.qt.nokia.com/4.6/qdomelement.html#text . Certainly not ideal, but 
it could be a start.

> compared to the XML package this one's really primitve, i don't know if
> it's meant for CRAN?

Well, given that there are installation problems with the XML package, I could 
certainly imagine there is a demand for a simple XML package, which may not 
cover everything, but "just works".

Regards
Thomas
-------------- 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/20110901/09bc48cd/attachment.sig>


More information about the Rkward-devel mailing list