Hello,
I notice that an XmlElement and an XmlDocument can both have identical
OuterXml, yet different values for FirstChild. For example, in the method
below, if you pass in an XmlDocument then FirstChild.OuterXml = "<href
Link='LinkHere'/>", but if you pass in an XmlElement, there are no Children
and FirstChild = null.
public Href(XmlNode xNode)
{
//expects: <href Link='LinkHere'/>
string s = xNode.FirstChild.OuterXml;
}
Can anyone explain this seeming discrepency?
Thanks,
Tim