Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNeed to get the genuine xml data (not the html interpreted one)
https://www.eclipse.org/forums/index.php/mv/msg/277029/779951/#msg_779951
I assume that IE (Internet Explorer) is running behind the scene.
This OpenText server may answer with .xml when queried with an Object Action such as XmlExport.
The .xml data is translated by the web browser and using the getText method I get the translated html.
How can I obtain the original xml data as I could get in the browser if I would do mouse right click and then in the context menu, select view source code (of the web page).
any help would be greatly appreciated
Robert
]]>Robert Pastor2012-01-16T22:04:38-00:00Re: Need to get the genuine xml data (not the html interpreted one)
https://www.eclipse.org/forums/index.php/mv/msg/277029/846637/#msg_846637
public String getInnerXmlText() {
/* get the document object */
int[] rgdispid = auto.getIDsOfNames(new String[] {PROPERTY_DOCUMENT});
Variant pVarResult = auto.getProperty(rgdispid[0]);
if (pVarResult == null || pVarResult.getType() == COM.VT_EMPTY) {
System.err.println("swt IE: error while fetching the document: ");
if (pVarResult != null) pVarResult.dispose ();
return ""; //$NON-NLS-1$
}
//IHTMLDocument2
OleAutomation htmlDocument = pVarResult.getAutomation();
pVarResult.dispose();
}]]>PASTOR Robert2012-04-16T12:46:29-00:00Re: Need to get the genuine xml data (not the html interpreted one)
https://www.eclipse.org/forums/index.php/mv/msg/277029/854981/#msg_854981
I have the same problem, how can I resolve it without change IE class
Thanks]]>Momoh OUKFIF2012-04-24T12:12:43-00:00Re: Need to get the genuine xml data (not the html interpreted one)
https://www.eclipse.org/forums/index.php/mv/msg/277029/867388/#msg_867388
]]>Robert Pastor2012-05-01T09:09:39-00:00