XXX: Model Mismatch
-
XML::XPath: attributes are objects
- GetAttributes returns an array of attribute nodes
- getName, getValue, getLocalName
-
XML::Twig: attributes are stored in a hash
- with accessors: $elt->att( 'foo')
-
but more commonly $elt->{atts}->{foo}
- $elt->set_att( foo => $elt->att( 'foo')+1)
- $elt->{atts}->{foo}++
-