Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

38 lines (35 loc) · 1.11 KB

Description

This is a fairly simple libary that converts any XML file into HTML format so it can be displayed in a browser.

For Example, the following file

<My>
    <Awesome>XML</Awesome>
    <File />
</My>

Would be displayed as

My
  • Awesome
      XML
  • File

Usage

There are multiple options to call the Function. Both XDocuments and strings can be converted. Also you can optionally provide any writable Stream object to integrate the HTML generation into your own rendering pipeline without passing around strings.

You can optionally create an XmlToHtmlSerializationSettings instance and pass it to the function. This settings class contains a few useful options for serialization and HTML generation to customize the generated code.