簡體   English   中英

使用libxml2的XML注釋

[英]XML comments using libxml2

您好我的要求是使用libxml2,xmltextwriter函數創建一個基於soap的xml文件。 如何在沒有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

當我使用xmlTextWriterWriteFormatComment時(如果始終將內容放入其中)

<!-- -->

任何幫助,請謝謝

前4行是HTTP標頭,而不是XML內容。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM