I have a QTP script and that has to be executed using Quality Center. QTP script has to do some validations after loading the XML file. What are the advantages or the differences of having or not having the "<?xml version='1.0'?><!DOCTYPE MA SYSTEM 'dtd'>" code in xml file. This code is generated by xml editor when we open new xml file. In which case we can leave this code in the file and in which case we should remove?
The difference usually is for a program to check these attributes and configure it accordingly for further actions on document. These lines also help in making sure the XML follows a valid structure.
If you use XMLUtil to work with these XML files then you might want to remove these headers as i have noticed few issues in past because of these header information present. In case you use Microsft XML DOM then having this won't be an issue