Mvp.Xml
3.0.0
dotnet add package Mvp.Xml --version 3.0.0
NuGet\Install-Package Mvp.Xml -Version 3.0.0
<PackageReference Include="Mvp.Xml" Version="3.0.0" />
paket add Mvp.Xml --version 3.0.0
#r "nuget: Mvp.Xml, 3.0.0"
// Install Mvp.Xml as a Cake Addin
#addin nuget:?package=Mvp.Xml&version=3.0.0
// Install Mvp.Xml as a Cake Tool
#tool nuget:?package=Mvp.Xml&version=3.0.0
The original Mvp.Xml project, developed by Microsoft MVP's in XML technologies and XML Web Services worldwide. It is aimed at supplementing .NET XML processing. All the project's classes contain extensive tests to ensure its quality, as well as the peer review among this highly focused group of XML lovers.
Mvp.Xml project currently provides .NET implementations of EXSLT, XML Base, XInclude, XPointer as well as a unique set of utility classes and tools making XML programming in .NET platform easier, more productive and effective.
EXSLT
Example usage of EXSLT:
var xslt = new MvpXslTransform();
xslt.Load("foo.xsl");
// Optionally enforce the output to be XHTML
xslt.EnforceXHTMLOutput = true;
xslt.Transform(new XmlInput("foo.xml"), new XmlOutput("result.html"));
Usage in XPath-only context:
XPathExpression expr = nav.Compile("set:distinct(//author)");
expr.SetContext(new ExsltContext(doc.NameTable));
XPathNodeIterator authors = nav.Select(expr);
while (authors.MoveNext())
Console.WriteLine(authors.Current.Value);
XInclude
Example usage of XInclude:
var reader = new XIncludingReader(XmlReader.Create(uri));
var document = XDocument.Load(reader);
Miscelaneous
Some other helper classes include:
public XPathNodeIterator GetExpensiveBooks(IXPathNavigable doc, int minPrice)
{
string expr = "//mvp:titles[mvp:price > $price]";
// XPathCache optimally caches the compiled XPath expression and parameterizes it
return XPathCache.Select(expr, doc.CreateNavigator(), mgr, new XPathVariable("price", minPrice));
}
var xslt = new XslTransform();
xslt.Load("print_root.xsl");
var doc = new XPathDocument("library.xml");
var books = doc.CreateNavigator().Select("/library/book");
while (books.MoveNext())
{
// Transform subtree for current node
xslt.Transform(new SubtreeeXPathNavigator(books.Current), null, Console.Out, null);
}
Sponsors
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 net481 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- Devlooped.SponsorLink (>= 0.10.2)
- System.CodeDom (>= 6.0.0)
- System.Security.Permissions (>= 6.0.0)
- System.Xml.XmlDocument (>= 4.3.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Mvp.Xml:
Package | Downloads |
---|---|
InnovatorAdmin
A tool for managing Aras Innovator installations focusing on improving the import/export experience. |
|
NReco.Application
NReco.Application integrates external dependencies (NI.Ioc,Mvp.Xml,Log4Net,NReco) and provides basic NReco application context. |
|
Elision.Feature.Search-redist
This is the Elision search feature package to reference if you are building a module or other code that just needs to reference Elision search feature. If you need to install Elision's search feature, use the Elision.Feature.Search package instead. |
|
Elision.Feature.Search
This is the Elision search feature package to reference if you need to install the entire feature. If you are building a module or other code that just needs to reference Elision search feature, use the Elision.Feature.Search-redist package instead. |
|
Elision.Feature.Workflows
This package contains a workflow for use on component rendering datasources. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 161 | 3/27/2023 |
3.0.0-beta | 55 | 3/24/2023 |
3.0.0-alpha | 42 | 3/24/2023 |
2.3.0 | 3,487,699 | 7/24/2012 |