If you like problems to solve, here's a big one: D
First, it's not about serialization, okay?
Well, my situation ... I am writing a function that I will pass as an Xml parameter (XmlDocument) and an object (Object) as a reference. It will return to me an object (the referenced object) populated with values from Xml (XmlDocument).
For instance:
I have Xml:
<user>
<id>1</id>
<name>Daniel</name>
</user>
I also have my function
public Object transformXmlToObject (XmlDocument xml, Object ref)
{
return ref;
}
How will I use it?
I will use it like this:
[WebMethod]
public XmlDocument RecebeLoteRPS(XmlDocument xml)
{
User user = new User();
user = transformXmlToObject(xml, user);
}
I need some help, please.
Regards, Dan
source
share