Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4612382
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:23:44+00:00 2026-05-22T01:23:44+00:00

I am a co-op student learning vb.net and I have a project which retrieves

  • 0

I am a co-op student learning vb.net and I have a project which retrieves data from an xml file within the program (based on selections made from combo boxes) and calculates and displays prices.

My XML looks like this:
<.Root>
….<.Processes>
……..<.Process>12345<./Process >
……..<.12345Material_Process>This Process<./12345Material_Process >
……..<.Rate>20<./Rate >
……..<.Type>Nitrogen<./Type >
……..<.Dia>0.125<./Dia >
.
.
.
…<./Processes>
….<.Machines>
……..<.Machine>AB12345
……..<.Machine_Type>12345 4000 <./Machine_Type >
……..<.AB12345Bed_Size>4000<./AB12345Bed_Size >
……..<.Base_Price>$831.00<./Base_Price >
.
.
.
….<./Machines>
<./Root>
*Periods are for display (Couldn’t figure out how to display xml code, I am that new with code!)

I have one combobox that loads data from the Processes section just fine, but then another uses the same method and gets an “IndexOutOfRange” error or “Column AB12345Bed_Size Not Found” even though I am using the same method for both. For “Processes” I am using DataView.Sort on “<12345Material_Process>” which reflects the selecteditem in the combobox. The program retrieves that row without a problem.
Here is the code that is giving me a problem:

   Dim xmlFile As XmlReader    
   xmlFile = XmlReader.Create("File.xml", New XmlReaderSettings())  
   Dim ds As New DataSet  
   Dim dv As DataView  
   ds.ReadXml(xmlFile)  

   dv = New DataView(ds.Tables(0))
   dv.Sort = strName & "Bed_Size"
   Dim index As Integer = dv.Find(cmbSize.SelectedItem)  

I have read msdn and tried to make sense of it, as well as searching through many forums and examples.
Any help is GREATLY appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:23:44+00:00Added an answer on May 22, 2026 at 1:23 am

    So obviously I don’t know XML very well. I renamed the “<.Machines>” tags as “<.Processes>” and now it works. Now that I think about it I had a similar problem before.
    So I guess I’d better sign up early for that XML class next term!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a student just learning xml and c#. I'm writing a program that will
I have a web app which has standard things for learning based app like
I work with my student group on a project : We have some problems
I am a .NET student and currently we are learning about Application Domains. We
I'm a university student learning programming. For practice I'm writing a blackjack program. I'm
I'm learning how to consume web services for a student project using the iPhone.
I am self-learning C++ from a text book and I have a problem to
i have added the following initializer for my asp.net web application :- namespace Learning.DAL
I'm a student, and for my next job, I have to program a module
I'm a student learning PHP. I basically make the stuff work, but never wondered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.