[R] Adding style sheet line to xml output

From: Nick <nick.straw_at_gmail.com>
Date: Tue, 22 Jun 2010 06:45:15 -0700 (PDT)


I'm probably being dense but I can't work out how to add the second line:

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="style.xsl"?>
<catalogue>
...
...

I can get the first line using:

saveXML(xml$value(), prefix='<?xml version="1.0"?>', encoding="ISO-8859-1")

Any ideas?

Thanks.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 22 Jun 2010 - 16:04:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jun 2010 - 08:00:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive