damon2003
11-19-2008, 11:52 AM
Hi,
can someone please let me know how to include external xml files within an xml file,
thanks,
can someone please let me know how to include external xml files within an xml file,
thanks,
|
Click to See Complete Forum and Search --> : How to use xlink to include xml files within xml files damon2003 11-19-2008, 11:52 AM Hi, can someone please let me know how to include external xml files within an xml file, thanks, rpgfan3233 11-19-2008, 12:11 PM You don't use XLink for including an XML document in another XML document. XLink is a technology/specification that is used to describe links, not include the resources that are pointed to by that link. For including an external XML file, you would use XInclude. However, browsers don't deal with XInclude, AFAIK. You'd need a server, in other words. A sample of XInclude usage from Appendix C of the XInclude recommendation (http://www.w3.org/TR/2006/REC-xinclude-20061115/#examples): document.xml - <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2001/XInclude"> <p>120 Mz is adequate for an average home user.</p> <xi:include href="disclaimer.xml"/> </document> disclaimer.xml - <?xml version='1.0'?> <disclaimer> <p>The opinions represented herein represent those of the individual and should not be interpreted as official policy endorsed by this organization.</p> </disclaimer> Once again, I will warn that this is only done server-side using something like PHP. I hope this helps you to figure out a solution to your problem! webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |