Re: [xml-dev] Is an XQuery Document an XML Document?

From
Rich Salz <>
To
"Roger L. Costello" <>
Date
2004-11-28T15:23:05Z
ID
<>
Thread
Re: [xml-dev] Is an XQuery Document an XML Document?
> There is no XML declaration so you might conclude, "No, an XQuery document
> is  not an XML document."

The XML declaration is optional.

> <Equation> {if (1 < 2) then "TRUE" else "FALSE"} </Equation>

According to the note just before section 3.5.1
  When an XPath expression is written within an XML document, the XML
  escaping rules for special characters must be followed; thus "<" must be
  written as "&lt;".

-- 
Rich Salz                  Chief Security Architect
DataPower Technology       http://www.datapower.com
XS40 XML Security Gateway  http://www.datapower.com/products/xs40.html
XML Security Overview      http://www.datapower.com/xmldev/xmlsecurity.html