XML to Markdown format conversion

Viewed 3398

I need to convert an XML format file to Markdown via Pandoc or otherwise if possible. Following some recommendations, I have tried to convert it to the LaTeX format first and then to Markdown. All I have got in the Markdown file after conversion is just --------- (dashes).

The original content of the XML document to be converted is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<config>
<!--defining variable-->
<var-def name="http_response">
<!--passing the appropriate value from url_to_check column in input data file as a parameter for http plugin-->
<http url = "${url_to_check}"></http>
</var-def>
<!--exporting all original input columns-->
<export include-original-data="true">
<!--adding a new column with the http plugin result to the export file-->
<single-column name="http" value= "${http_response }"/>
</export>
</config>

Do you have any ideas how to do it? Thank you for your help in advance.

1 Answers

Put the XML content between two sets of ``` — one set before the XML text and the other one after it

```
<?xml version="1.0" encoding="UTF-8"?>
<config>
<!--defining variable-->
<var-def name="http_response">
<!--passing the appropriate value from url_to_check column in input data file as a parameter for http plugin-->
<http url = "${url_to_check}"></http>
</var-def>
<!--exporting all original input columns-->
<export include-original-data="true">
<!--adding a new column with the http plugin result to the export file-->
<single-column name="http" value= "${http_response }"/>
</export>
</config>
```
Related