Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8428357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:02:00+00:00 2026-06-10T05:02:00+00:00

I am trying to display a formatted xml output in a Tab widget in

  • 0

I am trying to display a formatted xml output in a Tab widget in GWT. What I tried is the following:

final Tab myTab = new Tab("MyTab");
String instanceUrl = "someUrl/someXml.xml";
final HTMLPane dataPane = new HTMLPane();
dataPane.setContentsURL(instanceUrl);
dataPane.setContentsType(ContentsType.PAGE);
dataPane.setPane(dataPane);

What I am getting is an empty tab. Nothing is visualized but when I click on the page, the “View source” is displaying my XML in the way I want to see it in the tab.

Does anyone have any suggestions about it?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:02:01+00:00Added an answer on June 10, 2026 at 5:02 am

    Don’t do GWT yet. Try doing it on an HTML page.

    Create a blank .html file (not a .xml) file as a local file.

    In the body of the html page, place the whole bunch of XML stuffs you wanted to display.

    Then click the local html file you just created, to display it on the browser.

    Voila! The XML does not display.

    Why?

    All your tag brackets “<” and “>” must be encoded/escaped to tell the html pane that they are not HTML/XML of the page/pane but are meant to be displayed as-is.

    &GT; in place of >.
    &LT; in place of <.
    

    In GWT, use an encoding method from this class:
    http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/safehtml/shared/SafeHtmlUtils.html.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive been trying to display formatted content blocks from a xml file with no
I'm trying to get an html page to display an XML file formatted with
I'm trying to get the iPhone to display dates formatted by an NSDateFormatter in
I was trying to display formatted text and did some research here on SO
I'm trying to collect some information from a Atom formatted feed and display it
I am trying to display an email formatted as FirstName LastName <FirstNameLastName@domain.com> in HTML,
What is the best way to display a formatted NSString? I'm trying to format
I'm trying to display a differently-formatted page to mobile browsers using mod_rewrite based on
I'm trying to output XML using PHP, and when I look at the page
I am trying to format a string in the output differently than the way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.