Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to parse HTML/XML with PHP
    primarykey
    data
    text
    <p>From gateway I get one very unsual result it's HTML inside XML, which confuses me. When I echo variable <code>$result</code> this is the output:</p> <pre><code>&lt;Results&gt; &lt;XML_Report&gt; &lt;Subject&gt; &lt;EFX_Code&gt;199&lt;/EFX_Code&gt; &lt;Referral&gt;SPECIAL_WOHA&lt;/Referral&gt; &lt;/Subject&gt; &lt;/XML_Report&gt; &lt;HTML_Report&gt; &lt;![CDATA[ &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;a name="mergereport" /&gt; &lt;p&gt;MERGE REPORT&lt;/p&gt; &lt;table border="1" WIDTH="100%" cellpadding=0 cellspacing=0&gt; &lt;tr&gt;&lt;td class=heading colspan=4 align="center" bgcolor="#c0c0c0"&gt;&lt;p class=heading&gt;Personal Information Since 08/09/09 FAD 04/17/12&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td width="15%" align=center&gt;&lt;p&gt;&lt;b&gt;Reported&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td align=center&gt;&lt;p&gt;&lt;b&gt;Bur&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td width="15%" valign=top align=right&gt;&lt;p class=pipad&gt;&lt;b&gt; Name&lt;br /&gt; SSN&lt;br /&gt; Inquiry SSN&lt;br /&gt; DOB&lt;br /&gt; Address &lt;/b&gt;&lt;/p&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt; &lt;/body&gt; &lt;/html&gt; ]]&gt; &lt;/HTML_Report&gt; &lt;/Results&gt; </code></pre> <p>How can I parse that variable to extract out only part of HTML I want eg. anything withing tags inside with PHP... I've browsed a lot but can't find any proper answer if such parsing is possible and more important HOW?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload