RosettaCodeData/Task/XML-DOM-serialization/Mathematica/xml-dom-serialization.math

4 lines
229 B
Plaintext

DOM = XMLObject["Document"][{XMLObject["Declaration"]["Version" -> "1.0","Encoding" -> "utf-8"]},
XMLElement["root", {}, {XMLElement["element", {}, {"Some text here"}]}], {}];
ExportString[DOM, "XML", "AttributeQuoting" -> "\""]