Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
222
XQuery Demo namespace
The MS XQuery managed classes reside in the namespace Microsoft.Xml.XQuery.
They are designed for use together with the existing classes in the System.Xml
namespace.
The managed classes in MS XQuery are: XQueryNavigator, XQueryDocument,
XQueryNavigatorCollection, XQueryExpression, and XQueryException. Let's have a
look at each one of them now.
XQueryNavigator
This class is used to create an XML object for navigation.
It is the object returned when an xquery is run over one or more
navigators in the navigator collection object.
The class is also used for the objects within the navigator collection.
All navigators possess the IXQueryNavigable Interface, which makes
navigation possible and optimizes it.
XQueryDocument
This class provides an XML object to run xqueries over.
It has a method to create a new navigator, over which an xquery can be
run.
XQueryNavigatorCollection
A collection of XQueryNavigator objects (navigators) to run xqueries
over.
It is possible to run xqueries over one or more of each of these
navigators.
XQueryExpression
This class provides an object which encapsulates the XQuery Expression
– it is parsed, checked for any syntax error, and finally compiled.
Any errors are reported during each phase. An XQueryException is
generated when the xquery is syntactically incorrect, if it generates a
compiler error, or if it exceeds a certain string length.
After each phase has completely processes successful, it is ready to be
run over the navigator collection – that is, the
XQueryNavigatorCollection object.
XQueryException
This class provides for any exception thrown by the XQuery classes.