Returns the content of this CData
object
Examples
c = CData.new( "Some text" ) c.to_s # -> "Some text"
Returns an Array of Element
children. An XPath
may be supplied to filter the children. Only Element
children are returned, even if the supplied XPath
matches non-Element children.
doc = Document.new '<a>sean<b/>elliott<c/></a>' doc.root.elements.to_a #-> [ <b/>, <c/> ] doc.root.elements.to_a("child::node()") #-> [ <b/>, <c/> ] XPath.match(doc.root, "child::node()") #-> [ sean, <b/>, elliott, <c/> ]
Returns this entity as a string. See write().
Returns the string value of this text node. This string is always escaped, meaning that it is a valid XML
text node string, and all entities that can be escaped, have been inserted. This method respects the entity filter set in the constructor.
# Assume that the entity "s" is defined to be "sean", and that the # entity "r" is defined to be "russell" t = Text.new( "< & sean russell", false, nil, false, ['s'] ) t.to_s #-> "< & &s; russell" t = Text.new( "< & &s; russell", false, nil, false ) t.to_s #-> "< & &s; russell" u = Text.new( "sean russell", false, nil, true ) u.to_s #-> "sean russell"
Contains all discovered TupleSpaces except for the primary.
Contains all discovered TupleSpaces except for the primary.
Convert back to the [name, version, platform] tuple
Returns an Array of source URI
Strings.
Constructs String from URI
Constructs String from URI