tags:

views:

26

answers:

1

E.g. the WCF Service creates an XDocument with an element like this:

string content = <Wibble&gt";
XDocument message = new XDocument( new XELement("ElName", content) );

Our clients are stating that they get the above back as:

<ElName><Wibble></ElName>

We've not found any decode code in our WCF service or their client code. I think we're missing something, though could it be that WCF or XDocument is turning &lt;Wibble&gt into <Wibble> ? Note that we're using Net TCP binary encoding.

Thanks

A: 

This was happening when we called InnerText rather than InnerXml on an XmlDocument element. It seems that calling InnerText returns decoded XML.

ng5000