How to extract text from body items

Hi all,

I’m writing a Java-Agent which should write the content (many lines of text) of body items in a log file. The problem is I’m getting not the whole text. Does anyone know a proper solution?

Is it also possible to generate XML from the content and how?

A section of code:

switch (item.getType())

{

case Item.RICHTEXT : type = "Rich text"; 

Enumeration values = item.getValues).elements();

while (values.hasMoreElements())

{

log.logAction("Body content: " + (String)values.nextElement());

}

break;

}

Thanks in advance,

Chris

Subject: RE: how to extract text from body items

Did you try using getFormattedText method?

Subject: RE: how to extract text from body items

yes it works…

thanks