|
| From: | anonymous |
| Subject: | [Pnet-developers] [bugs #12076] XmlNode.SelectSingleNode throws exception |
| Date: | Tue, 22 Feb 2005 07:30:21 +0000 |
| User-agent: | Mozilla/5.0 (compatible; Konqueror/2.2-11; Linux) |
Follow-up Comment #1, bugs #12076 (project dotgnu-pnet):
What exception did it throw ?.
address@hidden tests]$ cat xpath.cs
using System;
using System.Xml;
public class XYZ
{
public static void Main ()
{
XmlDocument xmlDoc = new XmlDocument ();
xmlDoc.Load("xpath.xml");
XmlNode root = xmlDoc.FirstChild;
foreach (XmlNode node in root.ChildNodes)
{
XmlNode nodeSub = node.SelectSingleNode ("Dialogs");
if (null != nodeSub)
{
Console.WriteLine ("[" + nodeSub.OuterXml +
"]");
}
}
}
}
address@hidden tests]$ cscc -lSystem.Xml xpath.cs
address@hidden tests]$ ilrun a.out
[<Dialogs><Dialog><Assembly>this</Assembly><ClassName>TestDialog1</ClassName></ialog><Dialog><Assembly>this</Assembly><ClassName>TestDialog2</ClassName></Dialg></Dialogs>]
???.
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12076>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |