I have the below query:
select XMLType('<root>
<TPL>
<fld>f7</fld><val>v1v2</val>
</TPL>
</root>') from dual;
When i execute the above query,it executes perfectly fine and i get the following output:
<root>
<TPL>
<fld>f7</fld><val>v1v2</val>
</TPL>
</root>
But when i execute the following(which is my requirement):
select XMLType('<root>
<TPL>
<fld>f7</fld><val>v1&v2</val>
</TPL>
</root>') from dual;
I am being asked to enter the value for '&' in a popup screen.
I have tried the following two ways:
select XMLType('<root>
<TPL>
<fld>f7</fld><val>v1&v2</val>
</TPL>
</root>') from dual;
select XMLType('<root>
<TPL>
<fld>f7</fld><val>v1''&''v2</val>
</TPL>
</root>') from dual;
But still unable to get the OUTPUT correctly which should be:
<root>
<TPL>
<fld>f7</fld><val>v1&v2</val>
</TPL>
</root>
How can i achieve this?