Posted on 04/06/2012 17:15:19
Hi Klaus,
You will have to implement an XSLT template to parse the XML into HTML.
Here is a few different approaches...
A) Paragraph template
Use the XSLT template as your paragraph template. You can load the XML document directly in the XSLT by using the
document function.
B) Content Integrator module
- "Indholdsintegration" in Danish
Insert the standard module (free!), specify the URL to the XML file and choose your XSLT file.
You can also enable caching (recommended).
C) GetXml.aspx (for local XML files - you could use the XSLT document function to also load an external XML file)
A very handy little utility for transforming XML documents, which you can use like this:
/Admin/Public/GetXml.aspx?XmlFile=/Files/Filer/MyData.xml&XsltFile=/Files/Filer/MyData.xslt&ContentType=text/html
You could then load the content from that url directly into an iframe or into a div by using some javascript magic :)
/Morten