• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Display xml file in Pane

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a properties file from which i retreive values and display in JEditorPane.

Now instead of properties file i want to use a xml file(which uses a xsl file). How do i mention it here. If i do something like


it displays "text.xml" in the editor and not its contents.
 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas,

Well, why do you think it should display the contents?
Have a look at JEditorPane javadoc. As to 1.4.2 it only
supports html, rtf and txt. You are not exactly specifying
if you want to display the xml source or what? If it is
the source, display it as text/plain. If you want to see
the html (or whatever) after the xslt you are not displaying
the xml but something different. Then you have to do
the transformation first and then display the result.

P.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic