Preethi Nair
Preethi Nair

Reputation: 1

XML comments using libxml2

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"?>

<soap:Envelope

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

soap:encodingStyle="http://www.w3

when i use xmlTextWriterWriteFormatComment if always puts the content inside

<!-- -->

any help please Thanks

Upvotes: 0

Views: 617

Answers (1)

William Walseth
William Walseth

Reputation: 2923

The first 4 lines are HTTP headers, not XML content.

Upvotes: 1

Related Questions