Tools for parsing and generating XML within R and S-Plus