Link Search Menu Expand Document

XmlDocument.Save Method

Explanation Save the XML in a Writer object .

Added since Ver.4.0.0
Not supported in Mobile, AI
Call format xmldoc.Save( writer [, encoding ] )
Return value None
Arguments Object writer Writer Object of save destination (object that can use WriteString method)
String encoding Encoding method
The character strings that can be specified are "Shift_JIS", "UTF-8", "EUC-JP", and "ISO-2022-JP". If omitted, the encoding is Shift_JIS.

From here, added since Ver.4.2.0-->If the internal character code is UnicodeXML , only "UTF-8"can be specified, and if omitted, it will be"UTF-8".
<--Till here
Exception XML-4 No valid Write object specified
XML-5 Does not support the WriteString (string) method
XML-18 Encoding is not supported
XML-19 Encoding failed
Example of use
    var session = findHttpSession("http://host");
    var req = session.CreateRequest("path");
    xmldoc.Save(req);
    
Related item