Bugs item #1560566, was opened at 2006-09-18 08:57
Message generated for change (Comment added) made by cchan_qa
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: Charles Chan (cchan_qa)
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/messa...@level='Error'])"
property="errorcount" />
ALWAYS fails with the following message:
Failed to select node with XPath expression 'count
(/Autotester/Script/messa...@level='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: Charles Chan (cchan_qa)
Date: 2010-02-20 04:16
Message:
The problem is in XmlPeekTask.cs. Specifically in GetNodeContents(), it is
using
nodes = document.SelectNodes(xpath, nsMgr);
Referring to MSDN, SelectNodes() specifically returns a XmlNodeList and
using count() is invalid.
----------------------------------------------------------------------
Comment By: Charles Chan (cchan_qa)
Date: 2010-02-16 15:09
Message:
Does this affect xpath count() only? What about other functions such as
exists() or string-length()?
If it only affect certain functions only, then it is truly odd.
----------------------------------------------------------------------
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
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers