[Mono-bugs] [Bug 80526][Wis] New - looping XPathDocument

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 15 18:07:15 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by adriaanvk at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80526

--- shadow/80526	2007-01-15 18:07:15.000000000 -0500
+++ shadow/80526.tmp.13555	2007-01-15 18:07:15.000000000 -0500
@@ -0,0 +1,62 @@
+Bug#: 80526
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: adriaanvk at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: looping XPathDocument
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+I was using the System.Xml.XPath.XPathDocument and loads a very large xml
+file (8000rows) into it, in the form:
+<root>
+  <projects name="test"/>
+  <projects name="test1"/>
+  <activites name="test1"/>
+  <activites name="4test1"/>
+  <projects name="test1">
+    <note>test</note>
+  </projects>
+</root>
+after that i step through the records with the c# code:
+               string fileNameWithPath = "test.xml";
+               xmldoc = new XPathDocument(fileNameWithPath);
+            XPathNavigator navigator = xmldoc.CreateNavigator();
+            navigator.MoveToRoot();
+            navigator.MoveToFirstChild();
+            for(navigator.MoveToFirstChild(); navigator.IsNode;
+navigator.MoveToNext(System.Xml.XPath.XPathNodeType.Element))
+            {
+               string xml = navigator.OuterXml;
+               //do something with xmlstring
+            }
+In my case, once the xpathnavigator begins looping. navigator in the loop
+is everytime the same.
+
+Steps to reproduce the problem:
+1. build xml file
+2. compile c# code above
+3. program loops
+
+Actual Results:
+looping XPathNavigator
+
+Expected Results:
+
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list