[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

XML serialization/deserialization

How do I suppress XML Serialization from encoding the < and > 
signs to &lt; ang &gt; ? I pass XML into COM+ component and it returns result XML via Message Queue. But  < and > signs of the presult XML are replaced by &lt;
and &gt; and I cannot to deserialize xml into my objects. I can not understand where replacement is occurred...

Thank you, Dmitri
0
DemyanikDN
Asked:
DemyanikDN
2 Solutions
 
GoodJunCommented:
do a httpdecoding before run the xml deserialization.
0
 
DemyanikDNAuthor Commented:
It is not web application and I don't want to reference Web namespace.
0
 
rminnichCommented:
I'm not sure if you can suppress the encoding of lt ang gt, but can your application change them back upon deserialization?  I'm thinking of using String.Replace(string, string) to convert &lt; to a < and &gt; to a >
 
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now