Welcome Guest, Not a member yet? Register   Sign In
How to use Php DOMDocument object in ci4
#1

$result is post parameter .I want to try but not working.

error: Class 'App\Controllers\DOMDocument' not found

$resultDocument = new DOMDocument();

$resultDocument->loadXML($result);


$stateNode = $resultDocument->getElementsByTagName("state")->item(2);


$status = "";

if( $statusNode != null )

  $status = $stateNode->nodeVal;

Thank you for helps.
Sercan YANBULOGLU
SEO links REDACTED, per forum policy
Reply


Messages In This Thread
How to use Php DOMDocument object in ci4 - by ProfessionalCoder - 02-18-2020, 07:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB