[xslt] Set xmlDoc encoding type



Hi, how to set xmlDocPtr encoding type?

I tried this:

xmlDocPtr doc = xmlNewDoc(BAD_CAST "1.0");
doc->encoding = BAD_CAST "UTF-8";

When I call: "xmlFreeDoc(doc);" Error occurs.


Thanks,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]