473,382 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

problem with XML reader

2
i've been working on a project in vb and need some help i'm trying to read xml but i dont know what to do with one of the variables

Expand|Select|Wrap|Line Numbers
  1.  Function SearchAuction(ByVal TradeID As Integer, ByVal PlayerID As Integer) As Integer
  2.         Dim settings As New XmlReaderSettings()
  3.         settings.IgnoreComments = True
  4.         Dim SearchURL As String = Path.Combine(Request.PhysicalApplicationPath, "URL")
  5.         Using reader As XmlReader = XmlReader.Create(SearchURL, settings)
  6.             While (reader.Read())
  7.                 If (reader.NodeType = XmlNodeType.Element And "ResourceID" = PlayerID) Then
  8.                     TradeID = reader.LocalName
  9.                 End If
  10.             End While
  11.         End Using
  12.         rtbNews.Text = (rtbNews.Text & Environment.NewLine & "The TradeID " & TradeID & "was found")
  13.     End Function
  14.  
the line
Expand|Select|Wrap|Line Numbers
  1. Path.Combine(Request.PhysicalApplicationPath, "URL")
is the problem it keeps coming up with " 'Request' is not declared"
i do not know what to declare it as can anyone help?
Mar 27 '11 #1
0 811

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: kevininstructor | last post by:
I found code on the web which takes data from an MS-Access table (my test table has three rows by five fields) copies it to the Clipboard then into a range within MS-Excel. Data is stored in a...
2
by: Anthony Boudouvas | last post by:
Hi to all, i am just try to send emails in a timer-loop fashion, using the code below and i get the following error message: Could not create 'CDONTS.NewMail' The problem is not happening...
3
by: Ronin | last post by:
Hi i am using following code which extracts information from XML file and creates an instance of class which it adds to hash table. problem is i am unable to extract information from hashtable :...
3
by: Craig Lister | last post by:
Newbie alert! I am trying to get data from my mySQL database... With some help, I have got this far, but there is an exception in data.dll (??) on the : "OleDbDataReader Reader =...
0
by: R.A.M. | last post by:
Hello, Please help me with a problem of DataView definition for DataTable (DefaultView doesn't work). I have little experience. I present the problem here second time, because I haven't got any...
0
by: R.A.M. | last post by:
Hello, Please help me with a problem of DataView definition for DataTable (DefaultView doesn't work). I have little experience. I present the problem here second time, because I haven't got any...
31
by: Extremest | last post by:
I have a loop that is set to run as long as the arraylist is > 0. at the beginning of this loop I grab the first object and then remove it. I then go into another loop that checks to see if there...
2
by: ajikoe | last post by:
Hello, I use csv to take information from file. import csv reader = csv.reader(open('t.csv')) for row in reader: print row # it is perfectly OK ...
0
by: yiannisezn | last post by:
I have been working lately in a 3-tier model which I find very helpful. The only problem now is that I want to selectively show some of the properties on the datagrid. i.e. Employee.Name and...
0
by: ashes | last post by:
Hi, i created a register form on a website. The information from the form has to go in the customer table in a database in MS Access. the information is going into the table perfectly. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.