SQLEscapeXML
Guide to Escaping XML content for use with SQL insert
Index > Books > Declarative Development Guide > Reference Library > Accessor Listing > SQLEscapeXML

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:mod:db

Definition

Active URI Base

active:SQLEscapeXML

Format

<instr>
  <type>SQLEscapeXML</type>
  <operand>var:myxml</operand>
  <target>var:escaped</target>
</instr>

Syntax

ArgumentRulesDescription
typeMandatory SQLEscapeXML
operandMandatory the URI of the XML resources
targetMandatory Fragment OKtarget resource

The SQLEscapeXML accessor is used to escape all text elements in the operand XML document so that the text may be used in an SQL statement.

SQL parsers require apostrophe " ' " characters to be escaped to double apostrophes " '' ". This accessor escapes all text nodes (attributes and elements) in an XML document so that the text values may be used (substituted into) an SQL statement.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.