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

  • SEARCH
  • Home
  • 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 123101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:14:00+00:00 2026-05-11T04:14:00+00:00

Its a .vbproj and looks like this <Project DefaultTargets=Build xmlns=http://schemas.microsoft.com/developer/msbuild/2003> <PropertyGroup> <ProjectGuid>15a7ee82-9020-4fda-a7fb-85a61664692d</ProjectGuid> all i

  • 0

Its a .vbproj and looks like this

<Project DefaultTargets='Build' xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>     <PropertyGroup>         <ProjectGuid>15a7ee82-9020-4fda-a7fb-85a61664692d</ProjectGuid> 

all i want to get is the ProjectGuid but it does not work when a namespace is there…

 Dim xmlDoc As New XmlDocument()  Dim filePath As String = Path.Combine(mDirectory, name + '\' + name + '.vbproj')  xmlDoc.Load(filePath)  Dim value As Object = xmlDoc.SelectNodes('/Project/PropertyGroup/ProjectGuid') 

what can i do to fix this?

  • 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. 2026-05-11T04:14:01+00:00Added an answer on May 11, 2026 at 4:14 am

    The best way to do things like this (IMHO) is to create a namespace manager. This can be used calling SelectNodes to indicate which namespace URLs are connected to which prefixes. I normally set up a static property that returns an adequate instance like this (it’s C#, you’ll have to translate):

    private static XmlNamespaceManager _nsMgr; public static XmlNamespaceManager NsMgr {   get   {     if (_nsMgr == null)     {       _nsMgr = new XmlNamespaceManager(new NameTable());       _nsMgr.AddNamespace('msb', 'http://schemas.microsoft.com/developer/msbuild/2003');     }     return _nsMgr;   } } 

    I include only one namespace here, but you could have multiple. Then you can select from the document like this:

    Dim value As Object = xmlDoc.SelectNodes('/msb:Project/msb:PropertyGroup/msb:ProjectGuid', NsMgr) 

    Note that all of the elements are in the specified namespace.

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

Sidebar

Related Questions

Its my understanding that the questions in StackOverflow has the following format http://stackoverflow.com/questions/{question-id}/{slug-made-from-question-title} So
I have a WCF web service project, say FooService.vbproj with a FooService.svc endpoint. Its
Its ok as below: align top http://www.kerrydeaf.com/aa.png The problem: When I click the accodion
Its a follow up of this question. https://stackoverflow.com/questions/12260170/how-to-make-a-threadpool-to-be-nonblocking I have achieved it using interface.
Its possible to creating snap box, like facebook timeline or about.com without javascript/jquery?. And
Microsoft Visual Studio uses XML to save its .vcproj project files. So diffing XML
Its hard to explain this so I'll try my best. Is it possible to
Its posible to do this in actionbar sherlock? I know how set the icons
Its a interview question. Interviewer asked this basic shell script question when he understand
I have an msbuild project file that is used for building several C++ projects

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.