XML and SWT Browser with IE [message #855949] |
Wed, 25 April 2012 08:27 |
Momoh OUKFIF Messages: 3 Registered: April 2012 |
Junior Member |
|
|
Hello,
I use SWT Browser.setUrl(file.xml) method, by I can not get the contents of browser into a String using the method Browser.getText(). the result is :
<HTML><HEAD>
<STYLE>BODY{font:x-small 'Verdana';margin-right:1.5em}
.c{cursor:hand}
.b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none}
.e{margin-left:1em;text-indent:-1em;margin-right:1em}
.k{margin-left:1em;text-indent:-1em;margin-right:1em}
.t{color:#990000}
.xt{color:#990099}
Someone has an idea to get the contents well as the xml file into a string?
Note that I use Windows XP and IE
thanks!
[Updated on: Wed, 25 April 2012 09:39] Report message to a moderator
|
|
|
|
Re: XML and SWT Browser [message #857376 is a reply to message #856375] |
Thu, 26 April 2012 13:39 |
Momoh OUKFIF Messages: 3 Registered: April 2012 |
Junior Member |
|
|
Thanks!
But, the XML file is the response of a web service REST. ( and i can't use httpclient get method to get the result) .
when I set manually the URL in IE Browser, the XML file displayed correctly!
When I use web-kit ( default browser) in Linux environment, I haven't this problem.
I thik that IE use XSLT to display xml files, but i don't know how disable it
[Updated on: Thu, 26 April 2012 13:46] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03076 seconds