c++ - Remove XML declaration using msxml2 IXMLDOMDocument2 -


i want remove xml declaration xml using c++

<?xml version="1.0" encoding="utf-8" ?> 

then want add line , resave xml

<?xml version="1.0" encoding="iso-8859-1" ?> 

all have , know how load xml document

hr = ixmldomdocument->load(vstrfilename, &status); 

using ixmldomdocument2 interface of msxml2

how can achieve ? programming environment borland c++ builder 6

thank you

<? text ?> processing instruction. node of type node_processing_instruction.

retrieve node first child of document, using get_childnodes , delete removechild.

then, use createprocessinginstruction new encoding , use insertbefore (with new first child) add document.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -