[xml] xml writing comments

Hi my requirement is to create a soap based xml file using libxml2,xmltextwriter function. How do I write the first four lines with out the xmltag ?
POST /InStock HTTP/1.1
Host: www.example.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
<?xml version="1.0"?>
when i use xmlTextWriterWriteFormatComment if always puts the content inside
<!-- -->
any help please Thanks

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