Skip to content

Instantly share code, notes, and snippets.

@evera
Created April 19, 2012 23:14
Show Gist options
  • Save evera/2424801 to your computer and use it in GitHub Desktop.
Save evera/2424801 to your computer and use it in GitHub Desktop.
XML Threat protection
<XMLThreatProtection name="mypolicy">
<Source>request</Source>
<StructureLimits>
<NodeDepth>5</NodeDepth>
<AttributeCountPerElement>3</AttributeCountPerElement>
<NamespaceCountPerElement>2</NamespaceCountPerElement>
<ChildCount includeText="true"
includeComment="true"
includeProcessingInstruction="true"
includeElement="true">3</ChildCount>
</StructureLimits>
<ValueLimits>
<Text>15</Text>
<Attribute>10</Attribute>
<Namespace>10</Namespace>
<Comment>10</Comment>
<ProcessingInstructionData>10</ProcessingInstructionData>
</ValueLimits>
<NameLimits>
<Element>10</Element>
<Attribute>10</Attribute>
<Prefix>10</Prefix>
<ProcessingInstructionTarget>10</ProcessingInstructionTarget>
</NameLimits>
</XMLThreatProtection>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment