_children : null,\r
_properties : null,\r
\r
- load : function(){\r
- this.getNodeProvider().loadNode(this);\r
+ load : function(depth, filter){\r
+ if(!depth) depth = 1;\r
+ if(!filter) filter = '';\r
+ this.getNodeProvider().loadNode(this, depth, filter);\r
},\r
\r
remove : function(){\r
this.getParent().removeChild(this.getName());\r
},\r
\r
- fromXmlString : function(xmlString){\r
- var domDocument = qx.xml.Document.fromString(xmlString);\r
- var root = domDocument.documentElement;\r
- this.fromDomElement(root);\r
- },\r
- \r
fromDomElement : function(domElement){\r
if(domElement.nodeType != 1) return;\r
for(var i=0;i<domElement.attributes.length;i++){\r
var att = domElement.attributes[i];\r
+ if(!this.itemIsRoot() && att.nodeName.substring(0,5) == "xmlns"){\r
+ continue;\r
+ }\r
var property = new org.argeo.jcr.ria.model.Property(att.nodeName);\r
this.addProperty(property);\r
property.fromDomElement(att);\r
//this.setLoadState("loaded");\r
},\r
\r
+ fromXmlString : function(xmlString){\r
+ var domDocument = qx.xml.Document.fromString(xmlString);\r
+ var root = domDocument.documentElement;\r
+ this.fromDomElement(root);\r
+ },\r
+ \r
toXmlString : function(recurse, childrenWriter){\r
var string = "<"+this.getName();\r
var props = this.getProperties();\r