I have three xml files.
They are unrelated and have no common tags.
I want to construct a single xml file that will output the contents of the other three.
Is this possible?
I have just started this, so any examples would be great.
Here are two of the files I want to combine
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="patient.xsl" type="text/xsl"?>
<!DOCTYPE PatientDetails SYSTEM "patient.dtd">
<PatientDetails name="HAEMATOLOGY DEPT. MATER HOSP. DUBLIN 7">
<Patient>
<Name>
<LastName>Smith</LastName>
<FirstName>Claire</FirstName>
</Name>
<Address>
<Street>13 My Street</Street>
<Town>AnyTown</Town>
<City>Dublin</City>
<Country>Ireland</Country>
</Address>
<DOB>
<Day>20 </Day>
<Month>06 </Month>
<Year>1981</Year>
</DOB>
<Sex>Female</Sex>
<Nation>Irish</Nation>
</Patient>
</PatientDetails>
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="Clinician.xsl" type="text/xsl"?>
<!DOCTYPE ClinicianDetails SYSTEM "Clinician.dtd">
<ClinicianDetails name="HAEMATOLOGY DEPT. MATER HOSP. DUBLIN 7">
<Clinician>
<ClinicianName>
<LastName>Bates</LastName>
<FirstName>Mel</FirstName>
</ClinicianName>
<IDNo>567</IDNo>
<PagerNo>0000</PagerNo>
<PhoneNo>086231431</PhoneNo>
<JobDescription>Intern</JobDescription>
</Clinician>
</ClinicianDetails>
They are unrelated and have no common tags.
I want to construct a single xml file that will output the contents of the other three.
Is this possible?
I have just started this, so any examples would be great.
Here are two of the files I want to combine
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="patient.xsl" type="text/xsl"?>
<!DOCTYPE PatientDetails SYSTEM "patient.dtd">
<PatientDetails name="HAEMATOLOGY DEPT. MATER HOSP. DUBLIN 7">
<Patient>
<Name>
<LastName>Smith</LastName>
<FirstName>Claire</FirstName>
</Name>
<Address>
<Street>13 My Street</Street>
<Town>AnyTown</Town>
<City>Dublin</City>
<Country>Ireland</Country>
</Address>
<DOB>
<Day>20 </Day>
<Month>06 </Month>
<Year>1981</Year>
</DOB>
<Sex>Female</Sex>
<Nation>Irish</Nation>
</Patient>
</PatientDetails>
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="Clinician.xsl" type="text/xsl"?>
<!DOCTYPE ClinicianDetails SYSTEM "Clinician.dtd">
<ClinicianDetails name="HAEMATOLOGY DEPT. MATER HOSP. DUBLIN 7">
<Clinician>
<ClinicianName>
<LastName>Bates</LastName>
<FirstName>Mel</FirstName>
</ClinicianName>
<IDNo>567</IDNo>
<PagerNo>0000</PagerNo>
<PhoneNo>086231431</PhoneNo>
<JobDescription>Intern</JobDescription>
</Clinician>
</ClinicianDetails>