XPath supports various string functions, including starts-with(). See http://www.w3.org/TR/xpath
Brian > Hi all, > > > > I have been exporting SVN commit messages to an xml file, which I'm then > reading using xmltask (code below). > > > > Is it possible to only display the messages that start "[BUG]" (or only > copy those messages to a new xml file)? > I know Ant doesn't really do any kind of string functions or if > statements, but wondered if that was also the case for xmltask. > > > > I planned on outputting the result from the code below to a text file, > or copying only the msg paths to a new xml file, but if I can't limit it > to values that start with [BUG], I won't be able to produce a project > change log, which is the intended result. > > > > Kind regards, > > Phil > > > > <xmltask source="comment-output.xml"> > > <call path="log/logentry"> > > <param name="val" path="msg/text()"/> > > <actions> > > <echo>message = @{val}</echo> > > </actions> > > </call> > > </xmltask> > > > > Philip Jeary > Build and Deployment Manager > Dovetail Services > d +44 (0) 1795 414 563 > t +44 (0) 844 815 0855 > f +44 (0) 844 815 0866 > phil.je...@dovetailservices.com <mailto:phil.je...@dovetailservices.com> > > www.dovetailservices.com <http://www.dovetailservices.com> > > > > Dovetail. Subscriptions marketing and fulfilment > > > > > ______________________________________________________________________ > > This email (and any attachments) is confidential and may contain > personal opinions which are not the views of Dovetail Services (UK) > Limited unless specifically stated. If you have received it in error, > please delete it from your system. Do not use, copy or disclose the > information in any way nor act in reliance on it and notify the sender > immediately. Please note that: * Dovetail Services (UK) Limited > monitors all emails sent or received, any further communication will > signify your consent to this. > > Dovetail Services (UK) Ltd Registered in England and Wales Number 5412224 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev_______________________________________________ > Xmltask-users mailing list > Xmltask-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xmltask-users > -- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users