> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Richard Griffiths > Sent: dinsdag 13 december 2005 12:18 > To: [email protected] > Subject: [NAnt-users] Namespaces and Nant > > > I have the following fragment of xml > > <?xml version="1.0" encoding="utf-8" ?> > <objects xmlns="http://www.springframework.net" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.springframework.net > http://www.springframework.net/xsd/spring-objects.xsd"> > > > <object id="Configuration" > type="sdm.services.configurationservice.nofFramework.Configuration, > sdm.services.impl"> > <constructor-arg index="0"> > <value>ahahahahahahah</value> > </constructor-arg> > </object> > </objects> > > I need to change the value and have the following nant task > > target name="configfiles" description="Modify client and > server files for release > to system test."> > <xmlpeek > file="c:\builds\working\xmlfile1.xml" > > xpath="//[EMAIL PROTECTED]'Configuration']/constructor-arg/value" > > property="xpeek.value"> > </xmlpeek> > <echo message="Value = ${xpeek.value}" > /> > </target> > > I assume I need to add a namspace for > http://www.springframework.net, and hope > I have the xpath right. I'm getting no matching nodes found > for xpath. > > Not being up to speed on xpaths, I wonder if I'm in anyway > close with this and > would ask if someone could cast an eye over it and let me > know where I'm going > wrong?
Checkout the example in the <xmlpeek> doc page: http://nant.sourceforge.net/nightly/latest/help/tasks/xmlpeek.html Gert ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
