[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML "include"?
- From: Michael Fitzgerald <email@example.com>
- To: Patrick Lightbody <firstname.lastname@example.org>
- Date: Fri, 19 Jan 2001 09:23:22 -0800
Will external entities do the trick?
<!ELEMENT docroot (#PCDATA)>
<!ENTITY mydoc1 SYSTEM "mydoc1.xml">
<!ENTITY mydoc2 SYSTEM "mydoc2.xml">
Instance document, docroot.xml:
<!DOCTYPE docroot SYSTEM "docroot.dtd">
From: Patrick Lightbody [mailto:email@example.com]
Sent: Friday, January 19, 2001 8:34 AM
Subject: XML "include"?
Schemas and DTDs have a way to include a file in them using <xsd:include />
and <!ENTITY % foo SYSTEM "">, respectively. Is there a way to take the
contents of an XML file and have them be included in another XML file?
What I've done is break down my schema in to several smaller schemas, each
piece representing an "object". Now I want to have XML files at that same
object level, all included to one XML file that works with the schema as a
whole. Is this possible?