Hi Eric,
I mean that the policy content in the xml response is in PCDATA format with < " and so forth, e.g (in bold);
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<l7:Item xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Name>resetpassword</l7:Name>
<l7:Id>1a4b4e04dc13b35423193f2aebc8c025</l7:Id>
<l7:Type>SERVICE</l7:Type>
<l7:TimeStamp>2015-09-01T12:09:28.293+02:00</l7:TimeStamp>
<l7:Link rel="self" uri="https://localhost:8443/restman/1.0/services/1a4b4e04dc13b35423193f2aebc8c025"/>
...
<l7:Resources>
<l7:ResourceSet tag="policy">
<l7:Resource type="policy" version="12"><?xml version="1.0" encoding="UTF-8"?>
<wsp:Policy xmlns:L7p="http://www.layer7tech.com/ws/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
<wsp:All wsp:Usage="Required">
<L7p:SetVariable>
<L7p:Base64Expression stringValue="YXBwbGljYXRpb24vanNvbg=="/>
<L7p:VariableToSet stringValue="resp.content-type"/>
</L7p:SetVariable>
<wsp:OneOrMore wsp:Usage="Required">
<wsp:All wsp:Usage="Required">
<L7p:ContentType>
<L7p:ChangeContentType booleanValue="true"/>
<L7p:NewContentTypeValue stringValue="application/json"/>
</L7p:ContentType>
<L7p:AuditDetailAssertion>
<L7p:Detail stringValue="Evaluate request body"/>
<L7p:Level stringValue="WARNING"/>
</L7p:AuditDetailAssertion>
<L7p:HttpRoutingAssertion>
<L7p:AssertionComment assertionComment="included">
<L7p:Properties mapValue="included">
<L7p:entry>
<L7p:key stringValue="RIGHT.COMMENT
etc...
Whereas when exported from PolicyManager i get the "unescaped" XML, such as:
<wsp:Policy xmlns:L7p="http://www.layer7tech.com/ws/policy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2002/12/policy">
<wsp:All wsp:Usage="Required">
<L7p:SetVariable>
<L7p:Base64Expression stringValue="YXBwbGljYXRpb24vanNvbg=="/>
<L7p:VariableToSet stringValue="resp.content-type"/>
</L7p:SetVariable>
<wsp:OneOrMore wsp:Usage="Required">
<wsp:All wsp:Usage="Required">
<L7p:ContentType>
<L7p:ChangeContentType booleanValue="true"/>
<L7p:NewContentTypeValue stringValue="application/json"/>
</L7p:ContentType>
<L7p:AuditDetailAssertion>
<L7p:Detail stringValue="Evaluate request body"/>
<L7p:Level stringValue="WARNING"/>
</L7p:AuditDetailAssertion>
<L7p:HttpRoutingAssertion>
<L7p:AssertionComment assertionComment="included">
<L7p:Properties mapValue="included">
<L7p:entry>
<L7p:key stringValue="RIGHT.COMMENT"/>