ExportXmlΒΆ

scene.spad line 3918

This package provides support for XML files

writeVRML: (XmlElement, String) -> Void
writeVRML(content, filename) writes the element as VRML2. VRML2 is not xml but it has the same semantics and node names as X3D but a different syntax so it makes sense to create an XML structure and then format the output differently.
writeXml: (XmlElement, String) -> Void
writeXml(content, filename) writes an xml element and all the elements below it to an xml file. This assumes that all elements, in a file, have a single root which is usually the case.