You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cxx-dev@xmlbeans.apache.org by David Rennalls <dr...@gmail.com> on 2007/03/04 04:37:06 UTC
QName values not supported ?
Hi,
Are elements of type QName not supported ? I thought all the
built-in types were supported, based on
http://xmlbeansxx.touk.pl/docs/schema_builtin_types.html. My schema
has a complexType which can contain child elements of type xs:QName.
<xs:complexType name="MyType">
...
<xs:element name="Element" type="xs:QName" />
...
</xs:complexType>
However attempting to set that element on a bean results in an exception.
QName qname;
...
MyType bean(MyType ::Factory::newInstance());
bean->setElement(qName);
...
ERROR 3050792640 xmlbeansxx.XmlObjectBase - Exception (XmlObjectBase.cpp:344)
XmlObjectBase.cpp
...
343 void XmlObjectBase_I::setQNameValue(const QName &value) {
344 LOG4CXX_ERROR(LOG, "Exception");
345 throw XmlValueOutOfRangeException();
...
- David
---------------------------------------------------------------------
To unsubscribe, e-mail: cxx-dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: cxx-dev-help@xmlbeans.apache.org