Re: [bdbxml] *Another* Reshaping problem
John Snelson <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Green, Spence wrote: > Hey, > I can now successfully reshape my results, add metadata to them, > and access the string using XmlValue. Now I have one more issue. This > works: > > return <a><b>5</b><c>6</c></a> > > And this doesn't: > > return <b>5</b><c>6</c> > > I tried variable and static types (like above) in the latter expression > and still received the same XPath parser error. It faults on the <c> > tag, stating that ">" is an illegal comparison operator and it expected > $. I don't want to use the enclosing <a> tags. This is well-formed > XML. What's the issue here? You need to enclose the expression in brackets and use the sequence operator: return (<b>5</b>, <c>6</c>) Regards, John -- John Snelson, Berkeley DB XML Engineer Sleepycat Software, Inc http://www.sleepycat.com Contracted to Sleepycat through Parthenon Computing Ltd http://blog.parthcomp.com/dbxml ------------------------------------------ To remove yourself from this list, send an email to [email protected]