Hi,
i want to print xml header with xmldom. The problem is, it prints only the xml version but missing the encode information.
What i got :
<?xml version="1.0"?>
What i want:
<?xml version="1.0" encoding="UTF-8"?>
im using ORACLE 11g
And here is what i got so far:
doc := xmldom.newdomdocument;
xmldom.setversion(doc,'1.0');
xmldom.setCharset(doc,'UTF-8');
mainNode := xmldom.makeNode(doc);
rootElmt := xmldom.createElement(doc,'Dokument');
rootNode := xmldom.appendChild (mainNode,xmldom.makeNode(rootElmt));
SetCurNode (rootNode);
dbms_lob.createTemporary(vClob,true);
dbms_xmldom.writeToClob (doc,vClob);
xmldom.freedocument (doc);
Thanks in advance,
Ivan