You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
975 B

using System;
using System.Windows.Forms;
using System.Xml;
using System.Xml.XPath;
using System.IO;
namespace Emgu.UI
{
/// <summary>
/// Display the xml document using an explorer style form
/// </summary>
public partial class XmlViewDialog : Form
{
private string tempFile;
/// <summary>
/// Create the dialog to display the specific xml document
/// </summary>
/// <param name="doc">the document to be displayed</param>
public XmlViewDialog(XmlDocument doc)
{
InitializeComponent();
tempFile = System.IO.Directory.GetCurrentDirectory() + System.IO.Path.PathSeparator + "emguTemperaryFile.xml";
doc.Save(tempFile);
webBrowser1.Navigate(tempFile);
//webBrowser1.DocumentText = doc.OuterXml;
}
private void XmlViewDialog_FormClosed(object sender, FormClosedEventArgs e)
{
File.Delete(tempFile);
}
}
}