
Last chance! 50% off unlimited learning
Sale ends in
XMLNode
objects
into objects of that class. Specifically,
it treats the object as a string and creates
an XMLTextNode
object.asXMLNode(x)
XMLNode
object.
This is typically alread an object that inherits from XMLNode
or a string.xmlNode
xmlTextNode
# creates an XMLTextNode.
asXMLNode("a text node")
# unaltered.
asXMLNode(xmlNode("p"))
Run the code above in your browser using DataLab