Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • New - XmlDocument.GetElementsByTagNameresults in ArgumentOutOfRangeException

    0 answers - 2240 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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 gert.driesen (AT) pandora (DOT) be.
    shadow/794682006-09-21 23:46:16.000000000 -0400
    shadow/79468.tmp.143642006-09-21 23:46:16.000000000 -0400
    @@ -0,0 +1,62 @@
    +Bug#: 79468
    +Product: Mono: Class Libraries
    +Version: 1.1
    +S:
    +S Details:
    +Status: NEW
    +Resolution:
    +Severity:
    +Priority: Normal
    +Component: Sys.XML
    +AssignedTo: atsushi (AT) ximian (DOT) com
    +ReportedBy: gert.driesen (AT) pandora (DOT) be
    +QAContact: mono-bugs (AT) ximian (DOT) com
    +TargetMilestone:
    +URL:
    +Cc:
    +Summary: results in ARangeException
    +
    +Calling results in the following
    +exception:
    +
    +Unhandled Exception: System.ARangeException: Argument is out
    +of range.
    +Parameter name: destinationIndex + count destination.Length
    + at System.String.CopyTo (Int32 sourceIndex, System.Char[] destination,
    +Int32 destinationIndex, Int32 count) [0x00000]
    + at (System.String
    +prefix, System.String local) [0x00000]
    + at
    +(System.Xml.XmlNameEntryCache owner) [0x00000]
    + at System.Xml.XmlElement.get_Name () [0x00000]
    + at (System.String name,
    +Boolean matchAll, System.Collections.ArrayList list) [0x00000]
    + at (System.String name)
    +[0x00000]
    + at Test.Main (System.String[] args) [0x00000]
    +
    +To reproduce, compile and run the following code snippet:
    +
    +using System;
    +using System.I;
    +using System.Xml;
    +
    +public class Test
    +{
    + static int Main (String [] args)
    + {
    + XmlDocument doc = new XmlDocument ();
    + doc.LoadXml (_xml);
    + XmlNodeList nodeList = doc.GetElementsByTagName ("Signature");
    + if (nodeList.Count != 1) {
    + Console.WriteLine ("FAILURE");
    + return 1;
    + }
    + return 0;
    + }
    +
    + private const string _xml = "<?xml version='1.0' encoding='UTF-8'?>"
    + + "<ns0:DebtAmountRequest xmlns:ns0='http://whatever'>"
    + + " <Signature xmlns='#' />"
    + + "</ns0:DebtAmountRequest>";
    +}
    mono-bugs maillist - mono-bugs (AT) lists (DOT) ximian.com

Re: New - XmlDocument.GetElementsByTagNameresults in ArgumentOutOfRangeException


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Development"

EMSDN.COM