Tuesday, November 13, 2012 6:54 AM
I have a big .net class and a few xslt files. I'm serializing my object to transform with my xslt files.
My class' name is Application and it has an Applicant property which contains a collection of applications.
When I serialize an instance of my class, normally the Xml that I obtained contains z:Ref="i18" attributes to prevent infinite Xml creation to describe existing referenced properties. But this situation changes the required Xpath expressions that I have to write in my Xslt file.
Do I have a chance to serialize my object containing the real entity values instead of z:Ref tags for a specified depth?
Here is my serialization code:
Thanks in advance,
Tuesday, November 13, 2012 9:37 AM
When using this method:
public static string SerializeToString(object obj)
XmlSerializer serializer = new XmlSerializer(obj.GetType());
using (StringWriter writer = new StringWriter())
I get an error if I make an infinitive loop. Otherwise I get this XML:
<?xml version="1.0" encoding="utf-16" ?>
<Application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Morten la Cour