To download NI software, including the products shown below, visit ni.com/downloads.
Overview
In creating XML documents, we want to give the document a Document type Declaration or DTD. We can add the DTD to our XML forms with the LabVIEW XML API.
Description
This example shows how we can quickly add the DTD to an XML form by utilizing the property and invoke nodes of our document reference. We use the documents XML Implementation reference and 'Create Document type' method to create the DTD. Then we append the DTD to our XML document by using the documents reference's 'Append New Child' method. This adds the DTD to the form.
Requirements
Steps to Implement or Execute Code
Additional Images or Video
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
How to append the ATTLIST to Doc Type Declaration in XML file by LabVIEW?
Like this:
<?xml version="1.0">
<!DOCTYPE DTD [
<!ATTLIST name attname value>
]>