[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: minddog
Subject: [DotGNU]System.Xml.XmlDocument
Date: Wed, 18 Dec 2002 01:14:02 -0700

Hey i'm working on this one method, but I realize rhysw is working on a big System.Xml makeover.  I want to know if I'm on the right track at all too, having a difficulty figuring out a way to convert an element found in XmlNodeReader to and XmlElement format. 
heres the snippet:
public virtual XmlElement GetElementById(string elementId)
    XmlNodeReader nodeReader = new XmlNodeReader(this);
    XmlElement element = null;
    while ( string value = nodeReader.MoveToNextAttribute() && nodeReader.EOF != true)
        if (value == elementId)
            //    now get the XmlNodeType.Element
            element = ??
    return element;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]