Forum Moderators: open

Message Too Old, No Replies

include page with .xml extension?

         

Vishal

4:20 pm on May 26, 2006 (gmt 0)

10+ Year Member



The way one can use include code like

<?php
include 'http://wxw.includesiteurlhere';
?>

Is there any function in xml which can be used within .xml file that will allow me to use xml file as usual(to setup feed), but will also allow me to include content from external file.

Thanks for the help.

choster

5:01 pm on May 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In XML by itself, no, because at its basic level XML is a descriptive language, not a programming language (it would be analogous to saying "is there a way in plain text to include another plain text document").

However, if you are processing the XML with XSL, you can use the document() function to load multiple XML documents and then use XSLT to combine them whichever way you want.

mrMister

12:17 pm on May 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, XSL is the way to go. There's a number of mechanisms for importing data from another file using XSL.

Vishal

12:46 pm on May 30, 2006 (gmt 0)

10+ Year Member



Hi,

Thank you for helping me out and pointing me in right direction.. I am headed that way to check out my options :)

Thank you again.