Things You'll Need:
- An XML parser
-
Step 1
Create an XML document using either a text editor or an XML development environment. For example:
<?xml version="1.0"?>
<root>
</root> -
Step 2
Decide on an internal or external Document Type Definition.
-
Step 1
Add the Doctype tag to your XML document. For example, if using an internal Document Type Definition, the Doctype tag for the sample XML file would look like this:
<!DOCTYPE rootdoc [
<!ELEMENT root (#PCDATA)>
]>












