Added basic attribute and element nesting support.