The DTD can be specified inline with the XML file. In this case, you should not repeat the URL for the data source once it is entered in the Define XML Query dialog box. Inline DTD will be useful if the data definition is generated dynamically with the specific data source. This model is easier to maintain because the DTD always matches the XML data.
Here is an example for using inline DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Company [
<!ELEMENT Company (Department*)>
<!ELEMENT Department (Deptno, Dname,Loc)>
<!ELEMENT Deptno (#PCDATA)>
<!ELEMENT Dname (#PCDATA)>
<!ELEMENT Loc (#PCDATA)>
]>
<Company>
<Department>
<Deptno>10</Deptno>
<Dname>RESEARCH</Dname>
<Loc>NEWYORK</Loc>
</Department>
<Department>
<Deptno>20</Deptno>
<Dname>RESEARCH</Dname>
<Loc>NEWYORK</Loc>
</Department>
<Company>
About document type definition (DTD) formats
Copyright © 1984, 2005, Oracle. All rights reserved.