Bugs item #3390653, was opened at 2011-08-12 10:11 Message generated for change (Settings changed) made by rmboggs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3390653&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.91-alpha2 Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Jiho Han () Assigned to: Ryan Boggs (rmboggs) Summary: xmlpeek broken in 0.91alpha2 Initial Comment: xmlpeek would return the inner xml of the node found in the property specified. This worked in 0.85 but returns an empty string in 0.91alpha2. I'm not certain whether this has existed in previous versions or not. ---------------------------------------------------------------------- Comment By: Ryan Boggs (rmboggs) Date: 2011-10-17 18:48 Message: 10-17-2011 Nightly snapshot contains the fix. ---------------------------------------------------------------------- Comment By: Ryan Boggs (rmboggs) Date: 2011-10-16 21:01 Message: This report is actually a duplicate of 3366107. I just realized this. However, I just committed an update to XmlPeek to cvs that should address this issue. I was able to successfully test the sample provided by gntleone. The expected output is now the actual output when nant is built from cvs. If possible, please test by building from cvs. ---------------------------------------------------------------------- Comment By: Ryan Boggs (rmboggs) Date: 2011-10-13 18:23 Message: Hmm, I'll take a look. ---------------------------------------------------------------------- Comment By: Lee (gntleone) Date: 2011-10-13 08:51 Message: The old behavior of retrieving the full collection of nodes has been broken. The only thing returned now is the text contents of child nodes, not the full node. This has been broken since nant-0.91-alpha1. Example follows. test.xml <?xml version="1.0" encoding="utf-8" standalone="yes"?> <builds> <build name="TEST"> <date>10/13/2011 10:13:07</date> <buildNum>126</buildNum> <modules> <module name="TESTModule"> <FileVersion>11.0.2002.101</FileVersion> <ProductVersion>11.0.2002.101</ProductVersion> </module> </modules> </build> </builds> QUERY: <xmlpeek xpath="//builds" file="${project.versions}" property="xmlnodes"/> Expected output: <build name="TEST"> <date>10/13/2011 10:13:07</date> <buildNum>126</buildNum> <modules> <module name="TESTModule"> <FileVersion>11.0.2002.101</FileVersion> <ProductVersion>11.0.2002.101</ProductVersion> </module> </modules> </build> ACTUAL output: [xmlpeek] Found '1' nodes with the XPath expression '//builds'. [echo] xmlnodes: 10/13/2011 10:13:0712611.0.2002.10111.0.2002.101 ---------------------------------------------------------------------- Comment By: Dominik Guder (dogu) Date: 2011-09-25 13:22 Message: Until you provide a sample for this issue, I would suggest that you try to append "/text()" to your XPath so you should get the inner xml or value. Please drop me a note if I'm completely wrong. ---------------------------------------------------------------------- Comment By: Ryan Boggs (rmboggs) Date: 2011-08-14 13:06 Message: Hi, can you please provide a sample that can better illustrate this issue? I believe that this task is working fine for me, as far as I can tell. Thanks, Ryan ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3390653&group_id=31650 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers