Any control that has same functionality as IE to display XML

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,

Is there any control (free) that has same functionality as IE to display the
XML document without having to create a physical file?

if using Webbrowser control (ActiveX control) I have to create a xml file
and then use .Navigate(url) ...

Thanks!

John
 
Hi John,

Thank you for posting in the community!

Based on my understanding, you want to display xml in a control, and your
xml is maintained in memory not in the disk.

==============================================
Do you need a WinForm control or a webform control?

Actually, xml document structure is a hierarchical nodes collection. I
think you can display its in a tree structure, so I think you need a
extended treeview control.
The control below is a extended TreeView Web Control, which uses an XML
stream as its data source:
http://4guysfromrolla.411asp.net/func/goto?id=4475910&cob=4guysfromrolla

Althrough, it is not a WinForm control, you can learn how to get content
from XML stream. Then you can easily create a WinFrom extended TreeView
control.

Also, the site below contains a lot of extended treeview controls, hope it
can help you:
http://4guysfromrolla.411asp.net/home/assembly/navigator/treeview?cob=4guysf
romrolla

=============================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi John,

Does my reply make sense to you?

If you still have anything unclear, please feel free to tell me, I will
help you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thanks Jeffrey,

I understand you can display xml in a treeview but I really want to have the
same look and feel as the IE - or sometimes I even want to display a nice
html as some of microsoft setup program do - is there a way to use the
htmlite.dll in C# or VB.NET or do we have any .NET control to display
HTML/XHTML?

Thanks very much for your follow up!!! I really appreciate your efforts.

John
 
Hi John,

I will spend some time to do some research on this issue. I will reply to
you ASAP.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi John,

Sorry for letting you wait for so long time.

htmlite.dll is a undocumented dll, which you are not recommanded to use it.

After doing a lot of research on this issue, I think the realistic way to
get what you want is using WebBrowser control.

I can think of three ways of accomplishing this customer's goal:
-- Transform the XML into something that displays it the way you like, then
write this using document.write(). This may actually be less work than the
other ideas!
-- Write a pluggable protocol handler so that you can navigate to a URL
that actually generates the desired XML in memory.
-- With a Dev. Support case and sufficient time, we might find a way for
your customer to leverage the mechanism that IE uses to render XML files in
this display format. However, it's more likely that we would find that
the mechanism is just not exposed in a way that a web browser host could
take advantage of.

You can parse the xml stream yourself, then write the xml through html tag
to the WebBrowser control.

For how to use Html to display in a XML view way, you may use css and
javascript, please refer to the attached 2 files.

Then, you can follow these 2 files sample, to show your xml stream to the
web browser control yourself(That is the first solution).

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi John,

Have you received my files? Does my reply make sense to you?

If you need more help, please feel free to post, I will help you. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top