Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

How can I convert an XML feed into HTML?

Sep 27, 2014 10:29PM PDT

I really need some help. I have been asked to incorporate a product feed, created for Google into HTML. I can find software that converts the raw data into an HTML table, but I especially need help to convert the image link into <img src ""> and the Product link to fit around the Title. (eg <a href=""><H1>... etc)

Please could anyone recommend how I could do this, or even better a good software that will enable me to?

Many thanks in advance.

Discussion is locked

- Collapse -
Answer
Re: convering XML to HTML
Sep 27, 2014 11:14PM PDT

The usual way is to use XSLT and maybe some awk-scripts for what XSLT can't do.
It seems time for your boss to invest in a few courses for you to learn to use the common tools.

Kees

- Collapse -
Answer
How can I convert an XML feed into HTML?
Nov 30, 2014 6:02PM PST

Use an XSLT stylesheet to transform the XML into another format using the XslTransform class.

- Collapse -
Answer
Convert XML feed into html
Dec 1, 2014 8:06PM PST

Generate the XSLT transform for HTML and and change the suitable elements of the input documents.