Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Confusion in XML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Confusion in XML

 Post Reply Post Reply Page  <1 4567>
Author
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2003 at 6:30am
Yeah, I guess so, try it, and you'll know. I'll look up some tutorials on Xpath.
Gone..
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2003 at 9:26am
It isnt for Xpath expressions I just looked in VS.NET. I can't remember exactly what it said because its sunday and im nakered
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2003 at 10:04am
Haha, I'll try to find it to.
Gone..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2003 at 10:42am

... (error)

What am I doing wrong with this one? The .Select() should return a datarow, but it won't accept it.

Dim objDataSet As New DataSet, objDataRow As DataRow

objDataSet.ReadXml(HttpContext.Current.Server.MapPath("/Conf iguration/Account.config"))

objDataRow = objDataSet.Tables("Account").Select("AccountName = '" & "Test" & "' And AccountPassword = '" & "Bah" & "'")

Gone..
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2003 at 10:51am
If you have a look on the intellisense  on the select method:

Gets an array of all System.Data.DataRow objects.

So it doesnt execute an Xpath query But theres gotta be a way otherwise there wouldnt be a System.Xml.XPath namespace.

I was thinking load up an XML document, do the Xpath expression, Load it into a System.Xml.XmlTextReader, then load it into a System.DataSet.

But how would you do that?
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 10:23am
 I really don't know.. I can't find anything really usefull about Xpath expressions btw, I only find articles about the Xpath navigator =/
Gone..
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 11:02am
me too< ="">
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 5:03pm
Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  <1 4567>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.