ShareThis

Tuesday, July 3, 2012

[C#] Populate XMLNode for Testing Purposes

XMLNode can be a nuisance because you cannot directly initialize it. If you need to have some populated XMLNode in your data, here is what you can do to populate it:


XmlDocument doc = new XmlDocument();
doc.LoadXml("<start><lap1></lap1><lap2></lap2><lap3></lap3></start>");
XmlNode node = doc.DocumentElement;

1 comments:

If you want your ex-girlfriend or ex-boyfriend to come crawling back to you on their knees (even if they're dating somebody else now) you gotta watch this video
right away...

(VIDEO) Why your ex will NEVER come back...

Post a Comment