DmitryKoterov/dom_varimport — pull request #2 by dimasikturbo (2014-07-21 09:56:40+00:00)
Title: special key @attributes to set predefined attributes, ability to populat...

Hello,

I've been playing a bit with your extension and found it quite useful as in one of the current projects we are loading DOMs from associative arrays.
Besides straight array to DOM mapping we need to set multiple attributes and i decided to introduce "special" key @attributes which should contain a map of names => values. This map is loaded as attributes for a given node.
Another change is ability to populate any node, not just an empty DOM. This came up from the inability to set multiple node names that should be used for indexed arrays in PHP.