I want to generating a XML file (test.xml) like as follow:
<?xml version="1.0" encoding="GBK"?>
<!DOCTYPE SCHEMA SYSTEM "HGWSPZJK.dtd"> ;I can not generate this line
<SCHEMA CRC="HGWSPZ201808_9131011571786229XM_CRC.XML" SSSQ="201808" CHSNAME="HGWSDKQD" NAME="HGWSPZ">
<TAXPAYER CJRMC="sigmagroup" CJRDM="9131011571786229XM" CJLX="DKZK" RECORDCOUNT="411" SBRQ="2018-08-31" NSRMC="sigmagroup" SWSBH="9131011571786229XM">
<Records>
<Record BZ="" JKKADM="2244" JKKAMC="shanghai" SE="5907.82" TFRQ="2018-08-23" FPHM="224420181000752586-L02"/>
<Record BZ="" JKKADM="2244" JKKAMC="shanghai" SE="4742.4" TFRQ="2018-08-21" FPHM="224420181000743016-L01"/>
<Record BZ="" JKKADM="2244" JKKAMC="shanghai" SE="18720" TFRQ="2018-08-14" FPHM="224420181000719215-L01"/>
</Records>
</TAXPAYER>
</SCHEMA>
I use XML.UDF
Local $oXMLile=_XML_CreateFile(@ScriptDir&"\test.xml","",True)
but there is no function CreateDocumentType
It is no effort even I test use
Local $doct=$oXMLfile.CreateDocumentType("SCHEMA", null, "HGWSPZJK.dtd", null)
$oXmlfile.appendChild($doct)
pls help me thanks.