RosettaCodeData/Task/XML-DOM-serialization/Mathematica/xml-dom-serialization.math
2023-07-01 13:44:08 -04:00

3 lines
229 B
Text

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