pub fn node2object(e: &Element) -> Map<String, Value>
Converts treexml::Element into a serde_json hashmap. The latter can be wrapped in Value::Object.