# Is there a tool for converting cmark XML to HTML?

**URL:** <https://talk.commonmark.org/t/is-there-a-tool-for-converting-cmark-xml-to-html/2636>\
**Category:** Application\
**Created:** [November 3, 2017, 9:27pm UTC](https://talk.commonmark.org/t/is-there-a-tool-for-converting-cmark-xml-to-html/2636 "2017-11-03T21:27:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericpruitt](https://talk.commonmark.org/user_avatar/talk.commonmark.org/ericpruitt/32/1272_2.png) [@ericpruitt](https://talk.commonmark.org/u/ericpruitt)\
**Post date:** [November 3, 2017, 9:27pm UTC](https://talk.commonmark.org/t/is-there-a-tool-for-converting-cmark-xml-to-html/2636/1 "2017-11-03T21:27:13Z")

</div>

Is there a preexisting tool that converts output generated by `cmark ... --to xml` to HTML? I would like to make transformations to the AST in XML form and generate HTML from the resulting XML.

---

<div class="post-metadata">

**Author:** ![nwellnhof](https://talk.commonmark.org/user_avatar/talk.commonmark.org/nwellnhof/32/564_2.png) [@nwellnhof](https://talk.commonmark.org/u/nwellnhof)\
**Post date:** [November 5, 2017, 11:22am UTC](https://talk.commonmark.org/t/is-there-a-tool-for-converting-cmark-xml-to-html/2636/2 "2017-11-05T11:22:52Z")

</div>

This could be done easily with an XSLT stylesheet.

---

<div class="post-metadata">

**Author:** ![ericpruitt](https://talk.commonmark.org/user_avatar/talk.commonmark.org/ericpruitt/32/1272_2.png) [@ericpruitt](https://talk.commonmark.org/u/ericpruitt)\
**Post date:** [November 5, 2017, 9:22pm UTC](https://talk.commonmark.org/t/is-there-a-tool-for-converting-cmark-xml-to-html/2636/3 "2017-11-05T21:22:00Z")

</div>

Sure – I can think of lots of ways this _could_ be done, and that’s why I explicitly asked about a preexisting tool.
