Functiondojox.wire.ml.XmlElement.setPropertyValue

dojo.require("dojox.wire.ml.util");
defined in dojox/wire/ml/util.js

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.

Usage

function (/*String*/ property, /*String|Array*/ value) (view source)
parametertypedescription
propertyStringA property name
valueString|ArrayA property value