HtmlAgility XPATH and XSL

Topics: Developer Forum
Dec 29, 2009 at 3:03 PM

I am not sure it is the right area to ask this questions.

I am working on a project where I have to make REST Api call,as a response i am getting back xml response.

For which I have to generate an html output,which i am not sure but i think i can use xpath and xsl to generate html.

Can i do it with htmlagilitypack?

Thanks

 

Dec 29, 2009 at 3:11 PM

Actually XSLT is perfect for doing that. I remember a time back when it was all the rage to dynamically generate HTML pages from XML using XSLT. I've done it in .NET and PHP. I don't think HtmlAgilityPack will help you, it is more useful for going the other direction, Html to XML.


XSLT is meant for transforming XML into other XML or something else. Though I must say while it is meant for that it has the drawback of being rather complex and hard to maintain. It may be easier to use LINQ to XML to dynamically generate the HTML.

 

Dec 29, 2009 at 3:24 PM

Darth,

Thank You..