XML object in C#
C#
2
Posts
2
Posters
0
Views
1
Watching
-
How do I create a XML as an attribute or component of a object in C#?
-
How do I create a XML as an attribute or component of a object in C#?
I'm not sure exactly what you mean. However you may be able to solve your problem by simply reading your XML into a string &/or an XMLDocument object in the class.
//Read XML into a string (You will have to write getMyXml() method!!) string s = getMyXml(); //populate xml document XmlDocument x = new XmlDocument(); x.LoadXml(s);
I havn't tried either of these, so they may not do exactly what you expect!