グローバル変数 m_xDoc
のプロパティを持っています。
public XmlDocument xDoc
{
get {return m_xDoc; }
set {value = m_xDoc; }
}
string xml = "<head><body><Inner> welcome </head></Inner><Outer> Bye</Outer></body></head>"
そのプロパティに、この文字列をXMLドキュメントとして設定しなければなりません。
// using System.Xml;
String rawXml =
@"<root>
<person firstname=""Riley"" lastname=""Scott"" />
<person firstname=""Thomas"" lastname=""Scott"" />
</root>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(rawXml);
これで大丈夫だと思います。