Determines, if a document element has mixed content.
| element: | Document element to be checked. |
Source Code
# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 716 def has_mixed_content?(element) if element.has_text? && element.has_elements? return true if element.texts.join('') !~ /^\s*$/s end false end
<code/>and<pre/>for code samples.