A script-enabled browser is required for this page to function properly.

About inline DTD

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>

See also

About document type definition (DTD) formats

About external DTD