Angshuman Agarwal
Angshuman Agarwal

Reputation: 4866

Remove XML declaration using msxml6/IXMLDOMDocument2

I want to remove XML declaration only from an XML using C++/COM-

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

using the IXMLDOMDocument2 interface of msxml6

How can I achieve this ?

Upvotes: 0

Views: 413

Answers (1)

PeeWee2201
PeeWee2201

Reputation: 1534

Use IXMLDocument::xml property and save the string to a file.

Upvotes: 1

Related Questions