I have an XML file that gets bulkloaded into a database. now at the top of the xml there is a doctype newfile.
<!DOCTYPE NEWFILE SYSTEM "XXX_OUT_1234_YYMMDD_00.dtd">
What i'd like to know is what it is used for and if it is needed there at all. The data gets loaded into SQL with a C# bulk uploader, using a schema and the filename (i put the basics below, there is quite a few more steps but i don't think its really relevant.)
SQLXMLBulkLoad3Class objBL = new SQLXMLBulkLoad3Class();
objBL.Execute (schema,filename);
the schema file has a name like this XXX_OUT_1234_090700_06.xsd similar to the Doctype.
Now the reason is that the doctype would be removed and i am not sure if it really has a use. i've looked around but mostly doctypes are used with websites (this is an old windows forms app.) most info i find is like the below and i'd like to know what the doctype does in this case.
Validating against a DTD is straight forward if the piece of XML contains a DOCTYPE declaration with a SYSTEM identifier that can be resolved at validation time. Simply create a Validator object using one of the single argument constructors.