Subject:Comment in XQuery Author:Neal Walters Date:01 Feb 2005 06:24 PM
Can I comment out a statement or an XML fragment in XQuery?
If I try <!-- xxx -->, in some places it gets written to my output file,
and other places it says invalid character <.
For example, in the xquery below, could I comment-out just the "order by" clause?
How about the this statement: <ordid>{$ord/ORD_ID/text()}</ordid> ?
<NealQuery>
{
for $ord in
/RedOrders/RedOrderHeader[count(RedOrderDetail//SHIP_ADDR1)>1]
order by $ord/ORD_ID
return
<order>
<ordid>{$ord/ORD_ID/text()}</ordid>
{for $detail in $ord/RedOrderDetail
return
<addr>{$detail/SHIP_ADDR1/text()}</addr>
}
</order>
}
</NealQuery>