"Ing. Hans Pesata" <[EMAIL PROTECTED]> writes:

> I know this is not a typical XERCES-related question,
> but I would like to know, if and how it is possible to include
> XML-files with other XM-files ?!
> 
> I read about external entities, but these must be defined with a DTD
> and not within my XML-file ?!

Actually, this is a very typical question, and yes, you use external
entities. Instead of defining them in your DTD (i.e. the external
subset), you use the internal subset within your XML document:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE classes SYSTEM 'classes.dtd' [
  <!ENTITY Person SYSTEM "Person.xml" >
  <!ENTITY Security SYSTEM "Security.xml" >
  <!ENTITY Audit SYSTEM "Audit.xml" >
  <!ENTITY Organization SYSTEM "Organization.xml" >
  <!ENTITY SecurityGroup SYSTEM "SecurityGroup.xml" >
  <!ENTITY Contact SYSTEM "Contact.xml" >

]>
<classes>
&Person;
&Security;
&Audit;
&Organization;
&SecurityGroup;
&Contact;

</classes>
 
HTH,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to