microsoft.xml.query

  • Thread starter Thread starter bill yeager
  • Start date Start date
B

bill yeager

Does anybody know where I can download this class libary?
I'm trying to run an XQuery in my .net application, but
when I try and add the subject reference dll
(Microsoft.Xml.XQuery), it can't be found in the .net
references...

I downloaded the demo from http://xqueryservices.com, but
still could not find the reference to add to my
project.........
 
In order to start using XQuery expressions in your
ASP.NET Web applications, you must first download the
xquery.msi file at XQueryServices.com and start the
installation process.

http://xqueryservices.com/Setup/xquery.msi

The installation process will create a new directory,
C:\Program Files\XQuery Demo, which contains, among other
files and subdirectories, a file named
Microsoft.Xml.XQuery.dll. To use XQuery expressions in an
ASP.NET Web application, simply copy this file to
the /bin directory of your ASP.NET application. And
Import the namespace.

JN
NSQUARED2
 
Thanks a lot!
-----Original Message-----
In order to start using XQuery expressions in your
ASP.NET Web applications, you must first download the
xquery.msi file at XQueryServices.com and start the
installation process.

http://xqueryservices.com/Setup/xquery.msi

The installation process will create a new directory,
C:\Program Files\XQuery Demo, which contains, among other
files and subdirectories, a file named
Microsoft.Xml.XQuery.dll. To use XQuery expressions in an
ASP.NET Web application, simply copy this file to
the /bin directory of your ASP.NET application. And
Import the namespace.

JN
NSQUARED2


.
 
Johan, I was able to execute the query, but an empty
string was returned. I've looked at the examples, but
still can't quite figure out how to get the proper anser
out of the query.

The following is my XML file:
<code>
<AssemblyXMLLoader>
<DBVersion>
1.0.0.0
</DBVersion>
</AssemblyXMLLoader>
</code>
I want to retrieve the 1.0.0.0 value out of the document
using XQuery.

The following is my code snippet:
<code>
Dim strQuery As String
Dim strFilename As String = "F:\FPL Fibernet
General\Information
Management\Applications\Facility_API_Loader\AssemblyXMLLoad
er.xml"
Dim col As New XQueryNavigatorCollection()

col.AddNavigator(strFilename, "VersionCheck")

strQuery = "for $x in document
(""VersionCheck"")//DBVersion " & _
"return $x/somethingElse"

Dim expr As New XQueryExpression(strQuery)
Dim strAnswer As String = (expr.Execute(col)).ToXml
()
</code>

strAnswer returns an empty string. What would be the
proper coding in order to retrieve the 'dbversion' value
of 1.0.0.0 out of my xml document?
 
Back
Top