473,404 Members | 2,179 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,404 software developers and data experts.

Nant - cannot successfully get xmlpoke to work with xml containing namespace information

I have successfully setup numerous xmlpoke statements within an Nant
script but this specific situation I cannot figure out. I am including
a section of the xml code I am trying to access and update using an
xmlpoke statement. No matter what I try I continue to get "
[xmlpoke] No matching nodes were found with XPath
expression '/log
gingDistributorConfiguration/xmlSerializerSection/enterpriseLibrary.loggingDistributorSettings'.
Below is the error message, xml file I am trying to modify and the
corresponding xmlpoke expression which fails.

Error Message

[xmlpoke] No matching nodes were found with XPath expression
'/loggingDistributorConfiguration/xmlSerializerSection/enterpriseLibrary.loggingDistributorSettings'.

xmlpoke expression
<xmlpoke
file="..\src\LetterProcessingMonitor\loggingDistri butorConfiguration.config"

xpath="/loggingDistributorConfiguration/xmlSerializerSection/enterpriseLibrary.loggingDistributorSettings"
value="test" />
XML

<?xml version="1.0" encoding="utf-8"?>
<loggingDistributorConfiguration>
<xmlSerializerSection
type="Microsoft.Practices.EnterpriseLibrary.Loggin g.Distributor.Configuration.DistributorSettings,
Microsoft.Practices.EnterpriseLibrary.Logging, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null">
<enterpriseLibrary.loggingDistributorSettings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
defaultCategory="General" defaultFormatter="Text Formatter"
xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/loggingdistributor">
<sinks>
<sink xsi:type="FlatFileSinkData" name="Flat File Sink"
fileName="LPM_log.txt" header="" footer="" />
</sinks>
<categories>
<category name="General">
<destinations>
<destination name="Event Log Destination" sink="Event Log
Sink" format="Text Formatter" />
</destinations>
</category>
<category name="Category">
<destinations>
<destination name="My First Destination" sink="Flat File
Sink" format="Text Formatter" />
</destinations>
</category>
</categories>
<formatters>
<formatter xsi:type="TextFormatterData" name="Text Formatter">
<template><![CDATA[{timestamp} | {processId} |
{win32ThreadId} | {message} ]]></template>
</formatter>
</formatters>
</enterpriseLibrary.loggingDistributorSettings>
</xmlSerializerSection>
</loggingDistributorConfiguration>

Nov 23 '05 #1
0 1174

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

Similar topics

8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: george r smith | last post by:
I am curious, anyone using NAnt and what are their opinions. thanks grs
0
by: muesliflakes | last post by:
I wish to run Nant from my own application. I have included NAnt.Core and NAnt.DotNetTasks and calling out to NAnt as follows. StringWriter consoleOut = new StringWriter( ); Console.SetOut(...
3
by: prabhupr | last post by:
Hi Folks Not sure if this is the right group, if not please re-direct me to the right one. Here is my question =============== When I compile my ASP.NET WEB project from VS 2005 (.NET...
3
by: chrisjaycomer | last post by:
I have successfully setup numerous xmlpoke statements within an Nant script but this specific situation I cannot figure out. I am including a section of the xml code I am trying to access...
12
by: michael sorens | last post by:
So I have compiled a .dll file from a Visual Studio 2005 project containing a few dozen c# files. Now I want to automate this build using ant (have not yet looked at nant, but the rest of my...
0
by: Thomas Klein | last post by:
Hello, I want to build executable files (command line) with NANT. For example I have a source file X.cs in the namespace com.mycompany.examples. The class X inherits from a class Y which is...
0
by: james.mcdonagh | last post by:
Hi I am a newbie using nAnt for .net 2.0. As such I have not come across this bug before, and I would be happy of any help that you may be able to provide. In order to help I have included the...
0
by: Curtin1060 | last post by:
Hi, I have a simple exe.config issue where I'd like to swap out the config file with NAnt/XMLPOKE. I just can't figure out the correct xpath to get to the "file=" attribute. I want to swap in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.