if(_typedValue != null) {
return _typedValue;
}
Type t = TypeRegistry.safeGet(typeName());
assert (t != null);
Type mixed = new ComplexType(ContentType.MixedContent);
if(TypeUtil.subtypeOf(t, Untyped.UNTYPED) || TypeUtil.subtypeOf(t, mixed)) {
// - If the element is of type xdt:untyped,
// its typed-value is its dm:string-value as an xdt:untypedAtomic.
// - If the element has a complex type with mixed content (including xs:anyType),
// its typed-value is its dm:string-value as an xdt:untypedAtomic.