Any way to access attributes directly from XQItem class?
Wednesday, 11 December 2013 · 2 messages
CG
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
Quoted text · Ando Roy · 22 lines
On Wed, Dec 11, 2013 at 4:45 PM, Ando Roy <wisporaiden at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
AR
Ando Roy11 Dec 2013 17:45 #
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
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery