746: /*Remove the header (21 characters)*/
747: --DBMS_LOB.copy (x_xml_doc, p_xml_src1, l_offset + 1);
748:
749: /*The following 3 lines of code ensures that XML data generated here uses the right encoding*/
750: l_encoding := fnd_profile.value('ICX_CLIENT_IANA_ENCODING');
751: l_xml_header := '';
752: DBMS_LOB.writeappend (x_xml_doc, length(l_xml_header), l_xml_header);
753:
754: -- Append the root tag to the XML doc