Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APPENDCHILDXML is not adding new child

user12569769Nov 16 2016 — edited Nov 21 2016

My database in 11g G. i am trying to add one child not but it is not adding.  Could you please suggest what i am doing wrong.

create table XMLTEST

(

  col_xmltype  XMLTYPE;

);

insert into xmltest (col_xmltype)

values (xmltype('<?xml version="1.0"?><?mso-application progid="Excel.Sheet"?><Workbook xsi:schemaLocation="urn:schemas-microsoft-com:office:spreadsheet excelsss.xsd" xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb"><Styles><Style ss:ID="Default" ss:Name="Normal"><Alignment ss:Vertical="Bottom"/><Borders/><Font/><Interior/><NumberFormat/><Protection/></Style></Styles><Worksheet><Table/></Worksheet><Worksheet><Table/></Worksheet></Workbook>'))

Query

select APPENDCHILDXML (col_xmltype,

                           '/Workbook',

                           'Worksheet',

                           XMLTYPE('  <Worksheet>

                                      <Table/>

                                    </Worksheet>'))

  from xmltest;

This post has been answered by odie_63 on Nov 17 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2016
Added on Nov 16 2016
6 comments
1,418 views