xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cezar Andrei" <ce...@bea.com>
Subject RE: Best way to automatically tell "any" has been used?
Date Mon, 19 Jul 2004 16:33:11 GMT
Sal,

You can use the XmlObject.selectChildren(QNameSet) method, with the right qnameset. For details
see: http://wiki.apache.org/xmlbeans/SelectChildrenAndAttributesFeature

Cezar

-----Original Message-----
From: Campana Jr., Salvatore J [mailto:sal.campana@hp.com]
Sent: Monday, July 19, 2004 10:20 AM
To: xmlbeans-user@xml.apache.org
Subject: Best way to automatically tell "any" has been used?


If I have an object which has an "any" field and I am not sure at runtime if it has been set
or not, what is the best way to determine??

I know I can use a Cursor to peek inside the document, however I was wondering if there is
any sort of "isAnySet" sort of operation...I'd like to avoid using a cursor unless absolutely
necessary....

thx!





Sal Campana
HP Software
856.638.6284
sal_campana@hp.com 

- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message