if(child.nodeName == property){ 
if(child.nodeType === 1 /* ELEMENT_NODE */ && child.nodeName == property){ 
	setPropertyValue: function(/*String*/property, /*String||Array||XmlElement*/value){		//	summary:		//		Store a property value		//	description:		//		If 'property' starts with '@', 'value' is set to the attribute.		//		If 'property' specifies "text()", 'value' is set as the first		//		child text.		//		If 'value' is a string, a child element of the tag name		//		specified with 'property' is created and 'value' is set as		//		the first child text of the child element.		//		Otherwise, 'value' is set to as child elements.		//	property:		//		A property name		//	value:		//		A property value		if(!this.element){			return; //undefined		}		if(!property){			return; //undefined		}		if(property.charAt(0) == '@'){			var attribute = property.substring(1);			if(value){				this.element.setAttribute(attribute, value);			}else{				this.element.removeAttribute(attribute);			}		}else if(property == "text()"){			while(this.element.firstChild){				this.element.removeChild(this.element.firstChild);			}			if(value){				var text = this._getDocument().createTextNode(value);				this.element.appendChild(text);			}		}else{ // child elements			var nextChild = null;			for(var i = this.element.childNodes.length - 1; i >= 0; i--){				var child = this.element.childNodes[i];				if(child.nodeName == property){					if(!nextChild){						nextChild = child.nextSibling;					}					this.element.removeChild(child);				}			}			if(value){				if(dojo.isArray(value)){					for(var i in value){						var e = value[i];						if(e.element){							this.element.insertBefore(e.element, nextChild);						}					}				}else if(value instanceof dojox.wire.ml.XmlElement){					if(value.element){						this.element.insertBefore(value.element, nextChild);					}				}else{ // assume string					var child = this._getDocument().createElement(property);					var text = this._getDocument().createTextNode(value);					child.appendChild(text);					this.element.insertBefore(child, nextChild);				}			}		}	},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/3c460a90b68685cbb1eb00753cdccb7dea1b4a55/util.js/buggy/wire/ml/util.js