<?xml version="1.0" encoding="utf-8"?>
<methodCall><methodName>number</methodName></methodCall>
boost::property_tree::ptree assuranceprofilelookup_node;
assuranceprofilelookup_node.put("methodCall.methodName", method_name);
write_xml("AssuranceProfileLookup.xml", assuranceprofilelookup_node);
assuranceprofilelookup_node.find("xml")->second.erase("<xmlattr>");
How to remove encoding from above program I am trying to erase it but giving seg fault
Few examples I got but it is not using ptree, if possible I want to delete from ptree element