|
next
|
 Subject: Xquery XML document with spceial characters Author: Ivan Pedruzzi Date: 11 Mar 2010 02:57 PM
|
If the XQuery result is a SQL statement than you can switch to method=text
Does it help?
declare option ddtek:serialize "method=text";
declare variable $cd :=
<WI>
<CODE>
insert into table_name(Col_1, Col_2) values ('A & D', 'A-->B');
</CODE>
</WI>;
data($cd/CODE)
output
----------
insert into table_name(Col_1, Col_2) values ('A & D', 'A-->B');
BTW are you aware that our XQuery engine allows you to execute SQL update statements against almost all major database products (SQL Server, DB2, Oracle, Sybase, MySQL, Informix) direclty from your query?
Here is an example
ddtek:sql-insert("table_name", "Col_1", "A & D", "Col_1", "A-->B")
Ivan Pedruzzi
Stylus Studio Team
|
|
|
|