Re: [R] xmlEventParse returning trimmed content?

2009-04-10 Thread Duncan Temple Lang
Just to hopefully complete this for the record. Johannes attachment didn't make it to the list, but in an off-list conversation, I believe the problem is not trimming of text (i.e. removing leading and trailing whitespace) but apparent truncation of text in an XML node. The xmlEventParse() functio

Re: [R] xmlEventParse returning trimmed content?

2009-04-10 Thread Johannes Graumann
Hi Duncan, Thanks for your thoughts. "trim=FALSE" does not fix my issues, so I attach pared down versions of my script and data file. Thanks for any further hint. Joh Duncan Temple Lang wrote: > Hi Johannes > > I would "guess" that the trimming of the text occurs because > you do not specif

Re: [R] xmlEventParse returning trimmed content?

2009-04-09 Thread Duncan Temple Lang
Hi Johannes I would "guess" that the trimming of the text occurs because you do not specify trim = FALSE in the call to xmlEventParse(). If you specify this, you might well get the results you expect. If not, can you post the actual file you are reading so we can reproduce your results. D. J

[R] xmlEventParse returning trimmed content?

2009-04-09 Thread Johannes Graumann
Hello, I wrote the function below and have the problem, that the "text" bit returns only a trimmed version (686 chars as far as I can see) of the content under the "fetchPeaks" condition. Any hunches why that might be? Thanks for pointer, Joh xmlEventParse(fileName, list( startElemen