user1021743
user1021743

Reputation: 506

Ignor XML tags inside element value

I have the next element

<statement id ="5">
       insert into TBTEMPLATES(CTDB_LAST_UPDATOR) values('<?xml version="1.0"     encoding="UTF-8"?><Interface xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="%s"><Change><ChangeRequest/></Change></Interface>');
</statement>

I want to print the value of that node as is it ,despite what i tried , i face this error always.

Unable to get the file C:\test\test1.xml-restable.xml for the XSL transformation. Error: Character 'x' is grammatically unexpected

Could any one help me.

Upvotes: 0

Views: 700

Answers (1)

kan
kan

Reputation: 28951

Use CDATA block http://www.w3schools.com/xml/xml_cdata.asp

<statement id ="5"><![CDATA[
       insert into TBTEMPLATES(CTDB_LAST_UPDATOR) values('<?xml version="1.0"     encoding="UTF-8"?><Interface xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:noNamespaceSchemaLocation="%s"><Change><ChangeRequest/></Change></Interface>');
]]></statement>

Upvotes: 1

Related Questions