xmlDec Object
The xmlDec object stores the information that is associated with a <?xml ... ?> tag.
Properties
Encoding
String value, containing the information on the documents encoding.
Standalone
String value, containing either yes or no, the value of the standalone attribute of the xml declaration.
version
String value, containing the version of XML that the document is written in.
Methods
(none)
Associated objects
(none)
Remarks
There is no type checking on the saving of documents and there is no type checking in the values you put into these properties (encoding, standalone and version). This means that you have to check the types going into the new document yourself. It will produce an error when loading an XML document with invalid characters in these properties.
When saving a document, XMLParser is semi inteligent, if your one of your values contain a ' then it will surround the value with "s otherwise it will surround it with a '. This will not solve the problem completely, if your value has both 's and "s in it then the value will not be rejected, it will just be enclosed in "s as explained by the above rule, as it contains a '. In this case however, this should not be a problem as there should not be quotes of any kind in your values!