TLio.FormatConverter.Xml
0.9.0-preview.11
This is a prerelease version of TLio.FormatConverter.Xml.
dotnet add package TLio.FormatConverter.Xml --version 0.9.0-preview.11
NuGet\Install-Package TLio.FormatConverter.Xml -Version 0.9.0-preview.11
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="TLio.FormatConverter.Xml" Version="0.9.0-preview.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TLio.FormatConverter.Xml" Version="0.9.0-preview.11" />
<PackageReference Include="TLio.FormatConverter.Xml" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TLio.FormatConverter.Xml --version 0.9.0-preview.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TLio.FormatConverter.Xml, 0.9.0-preview.11"
#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.
#:package TLio.FormatConverter.Xml@0.9.0-preview.11
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TLio.FormatConverter.Xml&version=0.9.0-preview.11&prerelease
#tool nuget:?package=TLio.FormatConverter.Xml&version=0.9.0-preview.11&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TLio.FormatConverter.Xml
The XML adapter for TLio format conversion, backed by
System.Xml.
dotnet add package TLio.FormatConverter.Xml
Most consumers do not reference this directly — TLio.FormatConverter brings it in along with
the JSON and YAML adapters and the convert / convertValue commands.
var converter = new FormatConverter.Core.FormatConverter();
converter.Register(new XmlFormatAdapter()); // format id: "xml"
What XML leaves open, and the setting that decides it
| Setting | Default | Decides |
|---|---|---|
attributePrefix |
"@" |
how an attribute is spelled elsewhere |
textProperty |
"#text" |
the key an element's own value takes when it also has attributes |
namespacePrefix |
"xmlns:" |
the key a namespace declaration takes |
arrayItemName |
"item" |
what an array item with no name of its own is called |
arrayHandling |
"wrapped" |
one element with items inside, or repeated siblings |
nullRepresentation |
"empty" |
<k/> or <k xsi:nil="true"/> |
nameSanitization |
"sanitize" |
a name XML cannot spell: rewritten, refused, or escaped |
inferTypes |
false |
whether 42 in text becomes a number |
cdataAsText |
false |
treat CDATA as plain text and drop the marker |
Output is the canonical document shape TLio's own XML adapter addresses — a wrapping element
with item children for arrays. arrayHandling: "repeated" writes the legacy shape, where the
parent element is what reads as the array.
License
MIT — see the repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- TLio.FormatConverter.Core (>= 0.9.0-preview.11)
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 |
|---|---|---|
| 0.9.0-preview.11 | 62 | 8/22/2026 |