Skip to Content
avatar image
Former Member

Export nested schema to DTD. Re-using elements

In order to create an xml output file, we created the entire schema in a query transform and then exported it do a DTD. (We tried importing an XSD that was available but this kept giving errors so we went for the DTD option).

After exporting it we did some manual adjustments to get the occurence of the elements right, as well as the correct names.

When importing the DTD then, we noticed that some elements are being re-used as a whole where the same name is used, even though not all attributes or child elements are needed there.

We deleted the incorrect attributes from the schema, but when creating the XML, they were still there. But because they are not populated, it remains empty, together with the entire element if there is no data in it. (Rather than not be visible as it should when there is no data in there).

Attached is the DTD file we're using. (Change the extension to DTD to use).

The element "Description" is the one causing issues. It is used throughout the schema but only in the first occurence it should contain the "type" attribute.

Could someone help us out or give us some information?


iati-test-2.txt (14.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers