You should use HTML (com.google.gwt.user.client.ui.HTML) widget which is suitable for displaying html content.
HTML myHTML = new HTML(); myHTML.setHTML("<b>Test</b> and so on..."); Best regards! On Oct 29, 4:42 pm, thc <tclotwor...@integratedsecure.com> wrote: > Hey thanks Thomas. Label works good enough for my purposes.. > > On Oct 29, 10:49 am, Thomas Broyer <t.bro...@gmail.com> wrote: > > > > > On 29 oct, 15:31, thc <tclotwor...@integratedsecure.com> wrote: > > > > Hi, I am using an HTMLPanel to display the contents of xml files in a > > > browser. In the simplest case, the HTMLPanel strips off all tags and > > > displays only text. This is NOT what I want. > > > Then HTMLPanel isn't what you want. If you want "<foo>bar</foo>" to > > appear as "<foo>bar</foo>" (and not as "bar"), then you need something > > that calls setInnerText in the end, not setInnerHTML (which all > > widgets with "HTML" in their name do: HTML, InlineHTML and HTMLPanel). > > Try using a Label widget and its setText() method. > > > > Instead, I want the panel to display the xml exactly as it is in the > > > file, preferrably with collapseable nodes, etc, just as when you open > > > an xml file in IE or Firefox, etc. > > > You'd have to DIY, which is probably not worth the work... Have a look > > at the Frame widget if your XML can be access by an URL, to have the > > browser open the XML "file" and use its own representation > > (technically, this is using XSLT behind the scene, but that's really > > "browser internals"). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---