XmlElement core property reference

The XmlElement instance contains the following core properties.

XmlElement property

Description

Type

QName

A read-only property that returns the element’s QName.

QName

Namespace

Returns an XmlNamespace object that represents the element’s namespace.

  • If this element was created with one of the method signatures with a QName, this property returns the namespace of the QName.
  • If this is element is XSD-based, this property returns the namespace as defined by the XSD.

XmlNamespace

TypeInstance

Returns the element's backing type instance.

gw.xsd.w3c.xmlschema.types.complex.AnyType or any subclass of that class

Nillness

Specifies whether this element is nil, which is an XML concept that is not the same as being null.

boolean

Important: If you get these properties on an XSD-based element, you must use a dollar sign prefix for the property name.

See also