Skip to content

Commit

Permalink
Added libxml dependency for Str::is_xml() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Bellini committed Oct 31, 2012
1 parent a5dca07 commit ee824d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/str.html
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ <h4 class="method" id="method_is_html">is_html($string)</h4>

<article>
<h4 class="method" id="method_is_xml">is_xml($string)</h4>
<p>The <strong>is_xml</strong> method check if a string is a valid xml.</p>
<p>The <strong>is_xml</strong> method check if a string is a valid xml. Requires the <a href="http://www.php.net/manual/en/ref.libxml.php" target="_blank">libxml extension</a>.</p>
<table class="method">
<tbody>
<tr>
Expand Down Expand Up @@ -593,7 +593,7 @@ <h4 class="method" id="method_is_xml">is_xml($string)</h4>
<tr>
<th>Example</th>
<td>
<pre class="php"><code>Str::is_xml('&lt;?xml version="1.0" encoding="utf-8"?>&lt;xml>&lt;foo>bar&lt;/foo>&lt;baz>qux&lt;/baz>&lt;/xml>');
<pre class="php"><code>Str::is_xml('&lt;?xml version="1.0" encoding="utf-8"?>&lt;xml>&lt;foo>bar&lt;/foo>&lt;/xml>');
// returns true</code></pre>
</td>
</tr>
Expand Down

0 comments on commit ee824d6

Please sign in to comment.