[xsd-users] Removing whitespace from xml document
PICKUP Simon
simon at thinkresearch.co.uk
Tue Sep 15 13:21:39 EDT 2009
Hi,
I am serialising to XML a system memory Document Object Model using the
simple serialisation function copied below. The problem is, the resulting
xml file is incredibly large due to all the tabs and whitespace in the file.
Is there any modifier or function I can use to write the xml file without
whitespace and tabs?
//SERIALIZE BACK TO XML
std::string filename =
"ACE_RUNWAY_"+sims_iter->getname()+"_"+sims_iter->getscenario()+".xml";
xml_schema::namespace_infomap map;
map[""].schema = "ACE_RUNWAY_ANALYSIS_DOM.xsd";
std::ofstream ofs (filename.c_str());
ACE_RUNWAY_ANALYSIS(ofs, R, map);
Many thanks
................................
Simon Pickup
' +44 (0) 1202 247 204
À +44 (0) 7595 280 363
* <mailto:conor at thinkresearch.co.uk> simon at thinkresearch.co.uk
................................
http://www.thinkresearch.co.uk/TRlogoemail_sig.jpg
<http://www.thinkresearch.co.uk/> www.thinkresearch.co.uk
Cromwell House | 64-68 Calvin Road | Bournemouth | Dorset | BH9 1LN | UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 17424 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20090915/e5a6a783/attachment.jpe
More information about the xsd-users
mailing list