Attr Object
The Attr object stores information about an attribute of an element object.
Properties
Name
String value, containing the name of the attribute.
Value
String value, containing the value of the attribute.
Methods
(none)
Associated objects
Attributes (Parent)
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 (name and value). 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 value contains 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 '.