XMLDocument, difference between innerxml and outerxml

MarkJones

New Member
OuterXml - gets the XML markup representing the current node and all its child nodes.InnerXml - gets the XML markup representing only the child nodes of the current node.But for XMLDocument node does it really matter? (resultwise, well I know it doesn't matter but logically?)example:\[code\] XmlDocument doc = new XmlDocument(); doc.LoadXml("<book genre='novel' ISBN='1-861001-57-5'>" + "<title>Pride And Prejudice</title>" + "</book>"); string xmlresponse = doc.OuterXml;\[/code\]
 
Back
Top