Advertisement

08.14.2008 at 09:00AM PDT, ID: 23648601
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.5

How to read a XML file in VB.NET

Asked by vb2009 in Microsoft Visual Basic.Net

Tags: , , , ,

So I am trying to obtain some of the information from a XML file.
The issue I am having is my code is getting the first parts of what I want which are the rol obj_name and the user account_name but for some reason I can not figure out how to obtain the permission value.

So for example if I was to plug into Role_Search_Value_1.Text the value of afarner I should get a return of the role obj_name which would be Logistics, the account_name which would be afarner because thats who we searched for with the above code and the permission which would be 000F. For some reason I am not getting the permission though. I am very new to reading XML so I think I am not doing something right with xpath.

So the way it should work is a user inputs a user name they are looking for which is assigned to Role_Search_Value_1.Text.  The code should then return the information if that user is found along with the role obj_name they belong to, their account_name which would be in the Role_Search_Value_1.Text anyway and the permission.

Can somebody please guide me through it and show me where I am going wrong?
I am doing this through VB.NET

Thank you in advance.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
' HERE IS THE XML DATA
  <?xml version="1.0" ?> 
- <docuvault_settings>
- <role_list>
- <role obj_name="Logistics">
  <role_type>master_role</role_type> 
- <members>
  <user domain_name="GFSPROD" account_name="aclippert" permission="000F" /> 
  <user domain_name="GFSPROD" account_name="afarner" permission="000F" /> 
  <user domain_name="GFSPROD" account_name="akincaid" permission="000F" /> 
  <user domain_name="GFSPROD" account_name="akruitho" permission="000F" /> 
  <user domain_name="GFSPROD" account_name="arossow" permission="000F" /> 
  <user domain_name="GFSPROD" account_name="awhitmor" permission="000F" /> 
 
' HERE IS THE CODE I AM WORKING ON THATS NOT WORKING.
Dim m_xmld As XmlDocument
        Dim m_nodelist As XmlNodeList
        Dim m_node As XmlNode
        Dim Name As String
        Dim Permission As String
 
        m_xmld = New XmlDocument()
        m_xmld.Load("C:\Share\GR_Prd_DV1_roles.xml")
        m_nodelist = m_xmld.SelectNodes("docuvault_settings/role_list/role")
 
        For Each m_node In m_nodelist
 
            Dim RoleNode As XmlNode = m_node.SelectSingleNode("members/user[@account_name='" & Role_Search_Value_1.Text & "']")
 
            If RoleNode IsNot Nothing Then
 
                Name = m_node.Attributes.GetNamedItem("obj_name").Value
                Permission = m_node.Attributes.GetNamedItem("permission").Value
[+][-]08.14.2008 at 09:23AM PDT, ID: 22231648

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 09:27AM PDT, ID: 22231677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 09:29AM PDT, ID: 22231694

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 09:34AM PDT, ID: 22231750

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 10:39AM PDT, ID: 22232397

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 10:53AM PDT, ID: 22232545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:04AM PDT, ID: 22232655

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:13AM PDT, ID: 22232740

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:15AM PDT, ID: 22232756

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:26AM PDT, ID: 22232858

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:33AM PDT, ID: 22232930

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:35AM PDT, ID: 22232943

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 11:44AM PDT, ID: 22233017

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 12:17PM PDT, ID: 22233358

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 12:55PM PDT, ID: 22233697

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: microsoft, VB.NET, 2008, VB.NET, IE7
Sign Up Now!
Solution Provided By: jcoehoorn
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.14.2008 at 01:00PM PDT, ID: 22233739

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.14.2008 at 01:02PM PDT, ID: 22233758

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 05:47AM PDT, ID: 22237685

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.15.2008 at 10:56AM PDT, ID: 22240308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628