Re: [R] Problem with odfWeave: Unescaped '<' not allowed in attributes values

From: Max Kuhn <>
Date: Tue, 13 May 2008 13:05:28 -0400


> I am using the current version of odfWeave (0.7.5). The thing is, the file
> processed just fine in a previous version (0.7.3). Does anyone have any
> suggestion how to deal with this? I am now kind of locked since I cannot
> reproduce a report I was working on...

What version of the XML package are you using? What version of R etc?

There have been some changes to the XML package lately where encodings are handled differently. This affects you since OO (and other word processors) sometimes substitute "smart quotes" for regular quotes. For example:


instead of


(some dashes also get converted to long dashes)

These characters will cause the R parser to choke. I had previously coded around this, but interactions between odfWeave and XML are subverting those error traps (but I it still works on Linux and OS X, depending on your default encoding).

I'm working on a fix that will accomplish the same thing so you won't have to deal with these characters (as before)

Try searching through your to code chunks and Sexpr in your document for these characters and convert them to their usual analogs. Most applications with "smart quotes" allow you to turn them off.

Also, it is generally better to contact the package maintainer in situations like these.

If you still have issues after changing the characters, please let me know.

Max mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 13 May 2008 - 17:45:56 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 Tue 13 May 2008 - 19:30:37 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive