Bugs item #1560566, was opened at 2006-09-18 08:57
Message generated for change (Comment added) made by robm79
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1560566&group_id=31650

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gerald Schroecker (gschroecker)
Assigned to: Nobody/Anonymous (nobody)
Summary: xmlpeek with count() fails

Initial Comment:
The task <xmlpeek> does not work with the xpath count
() function:

e.g. 

<xmlpeek file="autotest.xml" xpath="count
(/Autotester/Script/[EMAIL PROTECTED]'Error'])" 
property="errorcount" />

ALWAYS fails with the following message:

Failed to select node with XPath expression 'count
(/Autotester/Script/[EMAIL PROTECTED]'Error'])'.
    The expression passed to this method should result 
in a NodeSet.

The file autotest.xml looks like that:

<Autotester Type="Errorlog">
  <Script Name="Autotest.tst">
    <Message Level="Error" Nr="1" Event="Begin" />
  </Script>
</Autotester>

-
Gerald

----------------------------------------------------------------------

Comment By: Rob M (robm79)
Date: 2007-04-16 20:05

Message:
Logged In: YES 
user_id=1771101
Originator: NO

I am also unable to get xmlpeek to work with the count function.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1560566&group_id=31650

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
nant-developers mailing list
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to