XmlUtility 1.0.0
dotnet add package XmlUtility --version 1.0.0
NuGet\Install-Package XmlUtility -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XmlUtility" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XmlUtility --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XmlUtility, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install XmlUtility as a Cake Addin #addin nuget:?package=XmlUtility&version=1.0.0 // Install XmlUtility as a Cake Tool #tool nuget:?package=XmlUtility&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Xml.Linq;
using XmlUtility;
namespace XmlUtilityTester
{
internal partial class Form1 : Form
{
public Form1()
{
ListView listView = new ListView() { Parent = this, Dock = DockStyle.Top, View = View.Details, FullRowSelect = true, HideSelection = false, };
listView.Columns.AddRange(new ColumnHeader[]
{
new ColumnHeader(){Text="FullPath",Width=400, },
new ColumnHeader(){Text="Value",Width=300, },
new ColumnHeader(){Text="Type",Width=200, },
});
MenuStrip menuStrip = new MenuStrip() { Parent = this, };
ToolStripMenuItem toolStripMenuItemFile = new ToolStripMenuItem() { Text = "File", };
ToolStripMenuItem toolStripMenuItemOpen = new ToolStripMenuItem() { Text = "Open", };
toolStripMenuItemOpen.Click += (sender, e) =>
{
OpenFileDialog ofd = new OpenFileDialog() { InitialDirectory = Application.StartupPath, };
if (ofd.ShowDialog() == DialogResult.OK)
{
#if true
var list = XmlParser.Parse(ofd.FileName);
#else
/** Or specify a xml file */
var text = File.ReadAllText(ofd.FileName);
var xml = XElement.Parse(text);
var list = XmlParser.Parse(xml);
#endif
listView.Items.Clear();
listView.Items.AddRange(list.Select(x =>
new ListViewItem(new[] { x.FullPath, x.Value, x.Type })).ToArray());
}
};
toolStripMenuItemFile.DropDownItems.Add(toolStripMenuItemOpen);
menuStrip.Items.Add(toolStripMenuItemFile);
StartPosition = FormStartPosition.CenterScreen;
Font = SystemInformation.MenuFont;
Text = "XmlUtilityTester";
SizeChanged += (sender, e) =>
{
listView.Height = ClientSize.Height - menuStrip.Height;
};
ClientSize = new Size(800, 600);
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 106 | 6/16/2024 |