Hi, this is maybe very easy and there's something I'm sure missing here but I
can't find how to show an Xmldocument object in f.ex. ie without save
document as xml first.
Is this possible?
Thanks 7 4102
Hi,
Could you let me know what's f.ex? If you need to get the string which
represents the content of the XmlDocument object, just use
XmlDocument.OuterXml property.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Hi,
Could you let me know what's f.ex? If you need to get the string which
represents the content of the XmlDocument object, just use
XmlDocument.OuterXml property.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Yes, what I want is to show the xmlDoc trought Internet Explorer without
fisically store an XML file. Hope I'm explain myself better now :)
"Kevin Yu [MSFT]" wrote: Hi,
Could you let me know what's f.ex? If you need to get the string which represents the content of the XmlDocument object, just use XmlDocument.OuterXml property.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
Are you working on a winform project and trying to start an instance of IE
to show the XmlDocument? If so, I think it impossible to do this. Because
IE didn't expose an interface for us to open an in-memory stream. You have
to write it to a file first.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
I see, what if I use ActiveX WebBrowser could this work then?
Thanks for your help and time.
"Kevin Yu [MSFT]" wrote: Are you working on a winform project and trying to start an instance of IE to show the XmlDocument? If so, I think it impossible to do this. Because IE didn't expose an interface for us to open an in-memory stream. You have to write it to a file first.
Kevin Yu ======= "This posting is provided "AS IS" with no warranties, and confers no rights."
Hi,
The IE web browser control cannot do that either, as the Navigate method
only accepts a URL as parameter.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Sometimes it's better to check other newsgroups before writing non-competent
answers...
Here is the code that works this way... It does display xml in WebBrowser
components exactly like MS IE does.
However, you need to have xml.xsl file, that makes XML->HTML transformation.
It's possible to extract this file from IE resources or use google to find
it already in downloadable format.
void ShowXmlInWebBrowser(WebBrowser webBrowser, string xml)
{
XslCompiledTransform t = new XslCompiledTransform();
t.Load("xml.xsl");
MemoryStream ms = new MemoryStream();
StringReader sr = new StringReader(xml);
XmlReader r = XmlReader.Create(sr);
t.Transform(r, null, ms);
ms.Position = 0;
webBrowser.DocumentStream = ms;
} This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robert Mark Bram |
last post by:
Hi All,
Below are two pages I am testing: xmlTest.asp and basic.htm.
The idea is to have my asp page read display the (x)html page. Later I will
add code in the asp page to edit the contents...
|
by: Martin Honnen |
last post by:
With both .NET 1.0 and 1.1 I have found the following strange behaviour
where System.Xml.XmlDocument.LoadXml doesn't throw an error when parsing
a text node with a character reference to an invalid...
|
by: Graham Pengelly |
last post by:
Hi
I am trying to transform on System.Xml.XmlDocument into another using
XslTransform without writing the object out to a file. I am guessing it
should work something like this...
public...
|
by: Dave |
last post by:
Hi,
Is there an easier way to pull a subset of nodes from one XmlDocument to
another? I have the code below but would like to know if there is a more
streamlined method. Thanks, Dave
...
|
by: pete |
last post by:
Hi there,
Can someone explain to me why I can't bind to an XmlDocument but I can bind
to an XmlNodeList. It's my understanding that they both implement the
IEnumerable interface which is...
|
by: Peter Nofelt |
last post by:
Hey All,
I'm running into this issue with parsing through an xml document by
tag name. Below is an example xml document:
File Name: things.xml
<things>
<people>
<name>Peter</name>
|
by: Rob Panosh |
last post by:
Hello,
I am trying to create a xmlDocument from as dataset. My code is listed
below. All seems to go well until
xmlDocument.Load(CType(ms, System.IO.Stream)) ... I keep getting the
following...
|
by: John Smith |
last post by:
I'm writing webervice client using .Net 2.0. I have this class:
public class MyWebService : SoapHttpClientProtocol
{
public XmlDocument validate(string url,
XmlDocument xmlDocument)
{...
|
by: Darsin |
last post by:
What i am doing is to pull the data from a CMS and import it to Word
2007 Beta and i also have to export the data from Word 2007 Beta back
to that CMS. We have with us two Web Services of the CMS....
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |