xml serialization
-
I gotten to the point where i can serialize an xml document using a class. I just cant figure out how to get a complex type to serialize. How should my class look if i need something like Mary Cummings
I think you'd need several classes for that:
class Family
{
public Mother Mother;
}class Mother
{
public Name Name;
}class Name
{
public string First = "Mary";
public string Last = "Cummings";
}If you serialized the Family class, it would result in something like your XML document. Of course, you'll probably want to use properties instead of public fields.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Just F-ing Do It :) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
I gotten to the point where i can serialize an xml document using a class. I just cant figure out how to get a complex type to serialize. How should my class look if i need something like Mary Cummings
This will help you: http://www.codeproject.com/soap/Serialization.asp
#region signature my articles #endregion
-
I gotten to the point where i can serialize an xml document using a class. I just cant figure out how to get a complex type to serialize. How should my class look if i need something like Mary Cummings
My article might help http://www.codeproject.com/soap/GameCatalog.asp[^] And my software can do it for you. http://www.bonesoft.com/XMLModeler/Demo.aspx[^]
Try code model generation tools at BoneSoft.com.
-
My article might help http://www.codeproject.com/soap/GameCatalog.asp[^] And my software can do it for you. http://www.bonesoft.com/XMLModeler/Demo.aspx[^]
Try code model generation tools at BoneSoft.com.
Interesting tool at first sight. Does it support inheritance? Rudolf Heijink
-
Interesting tool at first sight. Does it support inheritance? Rudolf Heijink
Building through XSD, yes it does. From straight XML there's no way to specify inheritance. Or were you asking about Pseudo code?
Try code model generation tools at BoneSoft.com.