final class \SmartXmlParser
{
} ->
- Language: PHP
- Located at: lib/framework/plugins/lib_xml.php
- Package: Plugins:ConvertersAndParsers
- Namespace: \
- Class Name: SmartXmlParser
- Version: v.20221220
- Depends: extensions: PHP XML ; classes: Smart
- Hints: The XML Parser may handle UTF-8 (default) and ISO-8859-1 encodings
- Usage: dynamic object: (new Class())->method() - This class provides only DYNAMIC 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
) {} ->
<?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
XML tag attributes are supported but not parsed.