System.Xml.XmlTextWriter.WriteStartDocument()
-
30-09-2019 - |
質問
????????????????????????????
??????????????????????????????????????????
????????????//Writes the XML declaration with the version "1.0" and the standalone attribute.
???XML????????????
?????????????
???.xml
???????????????
??????????????XmlTextWriter()????????????
解決
??????????????XmlWriter
???XmlTextWriter
?????????·????????????XmlWriter
????????????????XmlWriter.Create
??????
WriteStartDocument
??????????????????????
<?xml version="1.0" ?>
?????????XmlWriter
??????????????????????????????????????????? (????????????????????UTF-8?UTF-16??XML???????)
????????????????????? - ?XML?????????HAVE ?XML?????????????????????????????(???????????????)
他のヒント
?XML???????
<?xml version="1.0" encoding="utf-8"?>
??????????????????????????????????(???XML??????????????????????????)???????XML?????????????????
????
writer = XmlWriter.Create("file path");
?
???????????XmlTextWriter writer = new XmlTextWriter("file path", type);
????
???????????!
?????XmlTextWriter?????????????????????????????????????????XmlTextWriter XmlTextReader??????????????????????????????