DOCTYPE-declaraties bewerken

De declaratie DOCTYPE wordt boven aan een XML-bestand gebruikt om het aan een DTD-bestand te koppelen. U kunt de declaratie van DOCTYPE bewerken om een ander DTD-bestand aan het XML-bestand te koppelen.

The following instructions were written for the Resource perspective, but they will also work in many other perspectives.

Ga als volgt te werk om de DOCTYPE-declaratie aan te passen:

  1. In the Design view of the XML editor, right-click DOCTYPE and click Edit DOCTYPE.
  2. The value in the Root element name field should match the root element of your XML file exactly. U moet de waarde in dit veld alleen bewerken als uw hoofdelement wordt gewijzigd.
  3. You can select a Public ID for any existing XML Catalog entries by clicking Browse. De waarde in het veld Openbaar ID is de openbare identificatie. Deze wordt gebruikt om een XML-bestand (met behulp van een XML-catalogusitem) aan een DTD-bestand te koppelen. For more information, see Adding entries to the XML Catalog.
  4. The value in the System ID field is the DTD the XML file is associated with. Type the path of the DTD file (or browse for it) you want the XML file associated with in this field.
    Note: When the XML file is processed by the XML processor, it will first try to use the Public ID to locate the DTD, and if this fails, it will use the System ID to find it.
  5. Klik op OK.
If you do not have a DOCTYPE declaration in your XML file, you can right-click in the Design view and click Add DTD Information to add one.
Verwante concepten
XML file associations with DTDs and XML schemas
Verwante taken
Editing with DTD or XML schema constraints
Adding entries to the XML Catalog
Updating XML files with changes made to DTDs and schemas
Editing in the Design view