PDA

View Full Version : QDomDocument and xml version/encoding definitions



estanisgeyer
18th September 2008, 14:44
Hi,

Is there any method of class QDomDocument to generate the "head" of the xml file? This "head" referring to is this:



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


Thanks,

Marcelo E. Geyer

caduel
18th September 2008, 15:34
QDomDocument::createProcessingInstruction()

e.g.

createProcessingInstruction("xml", "version=\"1.0\" encoding=\"utf-8\"");