XQuery.ToXQueryX Method (string, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)XQuery.ToXQueryX Method (String, XmlWriter, XQueryVersion, BoundarySpace, XmlVersion)XQuery::ToXQueryX Method (String^, XmlWriter^, XQueryVersion, BoundarySpace, XmlVersion)

Writes the specified query to the specified XmlWriterXmlWriterXmlWriter using the XML Syntax for XQuery 1.0 (XQueryX).

Syntax

Public Shared Sub ToXQueryX( _
    query As String, _
    writer As System.Xml.XmlWriter, _
    xqueryVersion As XQueryVersion, _
    boundarySpace As BoundarySpace, _
    xmlVersion As XmlVersion _
)
public static void ToXQueryX(
    string query,
    System.Xml.XmlWriter writer,
    XQueryVersion xqueryVersion,
    BoundarySpace boundarySpace,
    XmlVersion xmlVersion
)
public:
static void ToXQueryX(
    String^ query, 
    System.Xml::XmlWriter^ writer, 
    XQueryVersion xqueryVersion, 
    BoundarySpace boundarySpace, 
    XmlVersion xmlVersion
)
 

Parameters

query

Type: System.StringSystem.StringSystem::String^

The XQuery program to convert to XML syntax.

writer

Type: System.Xml.XmlWriterSystem.Xml.XmlWriterSystem.Xml::XmlWriter^

The XmlWriterXmlWriterXmlWriter to which the XML syntax will be written.

xqueryVersion

Type: XmlPrime.XQueryVersionXmlPrime.XQueryVersionXmlPrime::XQueryVersion

The XQuery version.

boundarySpace

Type: XmlPrime.BoundarySpaceXmlPrime.BoundarySpaceXmlPrime::BoundarySpace

The default boundary space policy used in the conversion.

xmlVersion

Type: XmlPrime.XmlVersionXmlPrime.XmlVersionXmlPrime::XmlVersion

The XML version used by XQuery.

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmExceptionAn error occurred parsing the query.