makisfan
makisfan

Reputation: 135

How to convert the C# XML documentation generated by the compiler to some more readable format? like HTML

I get a custom c# library today with a .dll file and a xml documentation. the xml documentation looks like generated by the compiler with the format like

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>some_name_here</name>
    </assembly>
    <members>
        <member name="T:some_name_here">
...

Is there any convenient way to covert to file to something more readable, like html? Thank you.

Upvotes: 6

Views: 2458

Answers (2)

Tom Leys
Tom Leys

Reputation: 19029

The canonical way is to write an XSLT transform that will generate HTML directly from the XML.

See http://www.htmlgoodies.com/beyond/xml/converting-xml-to-html-using-xsl.html

Upvotes: 0

Douglas
Douglas

Reputation: 54877

I would suggest running it through the Sandcastle Help File Builder, which can convert your XML documentation into an HTML Help 1 (.chm) file or a website of HTML pages (among other formats).

Upvotes: 3

Related Questions