[xml] Adding encoding attribute



Another beginner question I’m sure.  I can’t figure out how to add an encoding attribute to the document.


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


I only have the following:


<?xml version="1.0"?>


Am I onto something with xmlNewDocProp?  I don’t see how to add/link the new attribute to the document.


Thanks for any help,


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