XmlAttributeΒΆ

scene.spad line 3712 [edit on github]

This package provides support for XML files XML attributes are inside the opening tag: <tagname attributes> and usually have the form: name=value

coerce: % -> String

coerce(x) outputs x as a string

outputVRML: (%, TextFile) -> Void

outputVRML(rp, f1) writes the attribute 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.

xmlAttribute: (String, List String) -> %

xmlAttribute: (name: String, values: List String) constructs a xmlAttribute from its name and list of values

xmlAttribute: (String, String) -> %

xmlAttribute(name, value) construct a xmlAttribute from its name and value