If you like problems to resolve, here a big one :D
First, It isn't about serialization, ok?
Well, my situation... I am writting a function that I will pass as parameter a Xml (XmlDocument) and an object (Object) as reference. It will return to me a object (object that was referenced) filled with the values from the Xml (XmlDocument).
For example:
I have a Xml like:
<user> <id>1</id> <name>Daniel</name> </user> Also I have my function
public Object transformXmlToObject (XmlDocument xml, Object ref) { // Scroll each parameters in Xml and fill the object(ref) using reflection. return ref; } How will I use it?
I will use like this:
[WebMethod] public XmlDocument RecebeLoteRPS(XmlDocument xml) { // class user receive the object converted from the function User user = new User(); user = transformXmlToObject(xml, user); // object filled } I need help guys, please.
Best regards, Dan