Any way to access attributes directly from XQItem class?
Hi all, I have a question regarding the XQItem class from the XQJ apis. Let's say that I have a XQResultSequence obtained from executing a query, with the result sequence containing a number of XQItem objects. If I were to print each of them as strings they would look like: <CUSTOMER UserID="abc" Password="123"/> How can I access the attributes in this XQItem directly? Must I write a parser for this, or is there an easier way? Regards, Roy
Hi Ando, this list is mainly about BaseX. To find out more about XQJ, you may get more help by targeting other platforms (such as StackOverflow). Sorry for the redirection, hope this helps, Christian ___________________________ On Wed, Dec 11, 2013 at 4:45 PM, Ando Roy <wisporaiden@gmail.com> wrote:
Hi all,
I have a question regarding the XQItem class from the XQJ apis.
Let's say that I have a XQResultSequence obtained from executing a query, with the result sequence containing a number of XQItem objects. If I were to print each of them as strings they would look like:
<CUSTOMER UserID="abc" Password="123"/>
How can I access the attributes in this XQItem directly? Must I write a parser for this, or is there an easier way?
Regards, Roy
_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
participants (2)
-
Ando Roy -
Christian Grün