参考 serialize()

serialize()

Returns the element as a String.

myXML.serialize() is useful for sending the element over the network or saving it to a file.

示例

Returns

String: element as a string.
Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.XML.js and open a pull request!

相关参考