Module: Libxml4r::String
- Defined in:
- lib/libxml4r.rb
Instance Method Summary (collapse)
-
- (Object) to_xmldoc
:call-seq:.
Instance Method Details
- (Object) to_xmldoc
:call-seq:
str.to_xmldoc -> XML::Document
Returns an XML Document object, or nil if str could not be parsed as valid xml.
The resulting libxml instance can be parsed, manipulated, and converted back to a string.
206 207 208 |
# File 'lib/libxml4r.rb', line 206 def to_xmldoc return ::XML::Parser.string(self).parse end |