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 325333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:12:26+00:00 2026-05-12T09:12:26+00:00

In VB.net when loading in XML documents using System.Xml.Xmldocument is there a way that

  • 0

In VB.net when loading in XML documents using System.Xml.Xmldocument is there a way that I can specify a relative path to the file?

path = "file.xml"
xmld.Load(path)

The XML doc I’m trying to load is in the same directory as the VB class. But I’m having trouble accessing it without using a full path to the XML doc.

  • 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-12T09:12:26+00:00Added an answer on May 12, 2026 at 9:12 am

    Import only System.Xml and try…

    Dim xmlDoc As XmlDocument = New XmlDocument
     xmlDoc.Load(Server.MapPath("Divide.xml"))
    

    Divide.xml will obviously be replaced by your xml file’s name.
    From MSDN, Server.MapPath is as follows..

    Specifies the relative or virtual path
    to map to a physical directory. If
    Path starts with either a forward (/)
    or backward slash (), the MapPath
    method returns a path as if Path were
    a full, virtual path. If Path doesn’t
    start with a slash, the MapPath
    method returns a path relative to the
    directory of the .asp file being
    processed.

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

Sidebar

Ask A Question

Stats

  • Questions 163k
  • Answers 164k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I found a solutions. There is the link Put this… May 12, 2026 at 12:17 pm
  • Editorial Team
    Editorial Team added an answer Instead of introducing an external library, I ended up editing… May 12, 2026 at 12:17 pm
  • Editorial Team
    Editorial Team added an answer Your problem is the isolation level you are using. Unless… May 12, 2026 at 12:17 pm

Related Questions

I'm currently creating a WinForm in VB.NET bound to an access database. Basically what
I have this VB.Net 1.1 project that I have to make some changes to.
Our product currently spans a large number of technologies, including Java, PL/SQL, VB.Net and
I have created reports using Crystal Reports in my asp.net application(vb). It was fine.
In VB .NET, when you call RaiseEvent X(), is the function that handles the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.