--
Case 1:
When I run my application (No item in the list box), "SOMETIMES" the listbox would have a ListBoxItem which is in XmlDocument. So when I do listbox.Items[0].InnerXml, it would return "<ParentNode></ParentNode>".
My expectation is that it would not generate any item because the XPath specified is " /ParentNode/ChildNode" which obviously not XmlDocument in this case.
Case 2:
When I run my application (Atleast 1 item in the list box), the listbox would have a ListBoxItem which is in XmlNode. So when I do listbox.Items[0].OuterXml, it would return "<ChildNode><ChildNodeName/></ChildNode>".
Bookmarks