Smart.Framework Logo

final class \SmartXmlParser
{ } ->

Class: SmartXmlParser - Create a PHP Array from simple XML structures.
XML tag attributes are supported but not parsed.


class Methods

public function __construct ( $mode = "simple", $encoding = "" ) {} @ 
public function format ( $xml_str, $preserve_whitespace = false, $log_parse_err_warns = false, $use_strict_validation = false, $remove_xml_header = false ) {} -> 
public function transform ( $xml_str, $log_parse_err_warns = false ) {} -> 

class Properties


class Constants


Sample code: PHP

<?php

//-- Sample usage:
   
$arr = (new SmartXmlParser())->transform('<xml><data>1</data></xml>'); // [OK]
   
print_r($arr);
   
//--

// #end php code


documentation generated on: 2023-10-19 23:15:45 +0000


Smart.Framework © 2009-2023 unix-world.org