I should add that in FOMEntry I see setSummary(Div div) method calls the factory's newSummary() method passing the Div... But in FOMFactory newSummary only takes arguments Element, Text.Type.. So it returns newSummary(Text.Type.TEXT, parent) - treats the div as if it is a parent.
It doesn't work as I think it should work or the way you say it should work... I have version .4... is there a patch? M Harris <[EMAIL PROTECTED]> wrote: I've tried that to and I get this result: code: Div div = factory.newDiv(); div.setText("test value"); div.declareNS("http://www.somensurl.com/something", "prefix"); entry.setSummary(div); result: James M Snell wrote: In that case, you can create the div, then call the setSummary(div) method. - James M Harris wrote: > That works to an extent but I can't figure out how to get other namespaces in > the div element > I need this: > > > By doing setSummaryAsXhtml it seems to put the div automatically and not > allow me to add other namespaces. > > > James M Snell wrote: This should do it: > > entry.setSummaryAsXhtml("Some information here with a > class=\"..\">and a date formatted in XML format"); > > - James > > M Harris wrote: >> I'm a bit confused by reading the API. I can't figure out how to get the >> desired result >> >> >> >> Some information here with a and a date formatted in XML format >> > >> >> within an entry >> >> I tried creating a div with simple text but that did not even show up at all. >> >> > > >