473,387 Members | 1,760 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,387 software developers and data experts.

Trouble trying to edit vbProj using XMLDocument

ZAK
I have written a small program to edit VBProject files to all file get
written to same location and other things.

I need help . I can't find a way of selecting the OutputPath, I just get
either can't find node or "Expression must evaluate to a node-set."

Code

xDoc.Load(vbProjFile)

Dim Query As String =
"VisualStudioProject/VisualBasic/Build/Settings/Config/*[@Name='Release']"

Dim node As XmlNode = xDoc.SelectSingleNode(Query)
If node Is Nothing Then
Throw New Exception("Error Can't find node " + Query)
End If

console.writeline (xDoc.Attributes.GetNamedItem("OutPutPath").Value)

<VisualStudioProject>
<VisualBasic
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{E82A62F9-2B3E-45AF-8689-3BBE7DABF3DD}"
<Build>
<Settings
ApplicationIcon = "GeneralToxicology1-256.ico"
AssemblyKeyContainerName = ""
AssemblyName = "InLifeUI"
AssemblyOriginatorKeyFile = ""
AssemblyOriginatorKeyMode = "None"
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "WinExe"
OptionCompare = "Binary"
OptionExplicit = "On"
OptionStrict = "On"
RootNamespace = "Instem.Provantis.InLife.UI"
StartupObject = "Instem.Provantis.InLife.UI.Main"

<Config
Name = "Debug"
BaseAddress = "285212672"
ConfigurationOverrideFile = ""
DefineConstants = ""
DefineDebug = "true"
DefineTrace = "true"
DebugSymbols = "true"
IncrementalBuild = "true"
Optimize = "false"
OutputPath = "bin\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "1"
/>
Nov 21 '05 #1
0 1013

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: KathyB | last post by:
Hi again, I save a fairly small xmlDocument to a single db field, xDoc.OuterXML using a SQL insert statement...this works fine. However, I then need to select that field (xmlWF) into an...
2
by: Adrian Parker | last post by:
I have the following xml doc... <?xml version="1.0"?> <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope"> <Body> <StatusReport> <StatusRecord>...
4
by: Glenn M | last post by:
I have a shared XML file on a server . i also have one xslt file that performs a simple transform on in to view the data. now i want to have another page that lets users modify the shared xml...
1
by: Kevin | last post by:
I open the VB6 project in Visual Studio 2005 (not the BETA version) which starts the conversion wizard. It goes through the whole conversion process, then comes up with the error: Unable to...
4
by: jens Jensen | last post by:
Hello, I need to call a webservice with an System.Xml.XmlDocument objet and read the return value into and System.Xml.XmlDocument. The webservice was written with an oracle tool and wrapped...
5
by: sunyour | last post by:
I'm developing an application that takes a csproj file as input (and output). I've searched for a definition or schema file for the csproj xml-file to understand the possibilites and restrictions,...
2
by: josh | last post by:
Hi, I am trying to validate cXML documents against cXML.dtd using the XmlValidatingReader. If I set the XMLValidatingReader's ValidatingType to ValidationType.DTD, I get the following...
3
by: brian.newman | last post by:
I'm having trouble with XML in IE. I wrote the following function and it works fine in Firefox, but when I try to run it in IE, I get the error "getElementsByTagName(..).0' is null or not an...
0
by: Bob Altman | last post by:
I have a solution that contains a bunch of VB projects. I need to edit the text of the vbproj files to fiddle with build events in a way that the IDE doesn't let me do directly. Is there any way...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.