Bring SimpleData elements into properties

SimpleData elements can be specified in ExtendedData elements. This pull request includes support for this, and also adds a check for the <code>firstChild</code> property to the <code>nodeVal</code> function.