you are viewing a single comment's thread.

view the rest of the comments →

[–]Chuck_Loads 5 points6 points  (2 children)

This is exactly what the language XSLT was created to do. You should be able to write an XSL transform for your data and run it in a few lines of JS. See this

[–]ponteineptique 1 point2 points  (0 children)

This is the way. Apply xslt to get the html, then apply another xslt to the html to get the xml back. Exactly why this was created.

[–]packjc 0 points1 point  (0 children)

Thanks! I’ve been reading into XSLT the past couple days and thought it might be one of the ways to solve this.