replace XML entities:

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 62
This string contains < & >.

replace XML entities:

Strict Standards: Non-static method XML_Util::reverseEntities() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 69
This string contains < & >.

building XML declaration:

Strict Standards: Non-static method XML_Util::getXMLDeclaration() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 76

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 305

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419
<?xml version="1.0"?>

building XML declaration with additional attributes:

Strict Standards: Non-static method XML_Util::getXMLDeclaration() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 80

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 305

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

building DocType declaration:

Strict Standards: Non-static method XML_Util::getDocTypeDeclaration() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 88
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">

building DocType declaration with public ID (does not exist):

Strict Standards: Non-static method XML_Util::getDocTypeDeclaration() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 94
<!DOCTYPE package PUBLIC "-//PHP//PEAR/DTD PACKAGE 0.1" "http://pear.php.net/dtd/package-1.0">

building DocType declaration with internal DTD:

Strict Standards: Non-static method XML_Util::getDocTypeDeclaration() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 101
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0" [ <!ELEMENT additionalInfo (#PCDATA)> ]>


converting array to string:

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 114

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419
argh="tomato" foo="bar"

converting array to string (including line breaks):

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 128

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 427

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 427
argh="tomato" foo="bar"


splitting qualified tag name:

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 138
Array ( [namespace] => xslt [localPart] => stylesheet )

splitting qualified tag name (no namespace):

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 148
Array ( [namespace] => [localPart] => foo )

splitting qualified tag name (no namespace, but default namespace specified):

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 158
Array ( [namespace] => bar [localPart] => foo )

verifying 'My private tag':

Strict Standards: Non-static method XML_Util::isValidName() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 167

Strict Standards: Non-static method XML_Util::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 885

Strict Standards: Non-static method PEAR::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 908
PEAR_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 51 [message] => XML names may only contain alphanumeric chars, period, hyphen, colon and underscores [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /usr/local/lib/php/PEAR.php [line] => 533 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => XML names may only contain alphanumeric chars, period, hyphen, colon and underscores [1] => 51 [2] => 1 [3] => 1024 [4] => ) ) [1] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 908 [function] => raiseError [class] => PEAR [type] => :: [args] => Array ( [0] => XML names may only contain alphanumeric chars, period, hyphen, colon and underscores [1] => 51 ) ) [2] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 885 [function] => raiseError [class] => XML_Util [type] => :: [args] => Array ( [0] => XML names may only contain alphanumeric chars, period, hyphen, colon and underscores [1] => 51 ) ) [3] => Array ( [file] => /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php [line] => 167 [function] => isValidName [class] => XML_Util [type] => :: [args] => Array ( [0] => My Private Tag ) ) ) [callback] => )


verifying '-MyTag':

Strict Standards: Non-static method XML_Util::isValidName() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 173

Strict Standards: Non-static method XML_Util::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 876

Strict Standards: Non-static method PEAR::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 908
PEAR_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 52 [message] => XML names may only start with letter or underscore [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /usr/local/lib/php/PEAR.php [line] => 533 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => XML names may only start with letter or underscore [1] => 52 [2] => 1 [3] => 1024 [4] => ) ) [1] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 908 [function] => raiseError [class] => PEAR [type] => :: [args] => Array ( [0] => XML names may only start with letter or underscore [1] => 52 ) ) [2] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 876 [function] => raiseError [class] => XML_Util [type] => :: [args] => Array ( [0] => XML names may only start with letter or underscore [1] => 52 ) ) [3] => Array ( [file] => /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php [line] => 173 [function] => isValidName [class] => XML_Util [type] => :: [args] => Array ( [0] => -MyTag ) ) ) [callback] => )


creating a tag with namespace and local part:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 188

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 665
<foo:bar argh="fruit&amp;vegetable" key="value">I&apos;m inside the tag</foo:bar>

creating a tag with qualified name and namespaceUri:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 202

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /usr/local/lib/php/XML/Util.php on line 625

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 665
<foo:bar argh="fruit&amp;vegetable" key="value" xmlns:foo="http://foo.com">I&apos;m inside the tag</foo:bar>

creating an empty tag without namespace but namespace Uri:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 215

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /usr/local/lib/php/XML/Util.php on line 625

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419
<bar argh="fruit&amp;vegetable" key="value" xmlns="http://foo.com" />

creating an XML tag with more namespaces:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 233

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 665
<foo:bar argh="fruit&amp;vegetable" key="value" xmlns:bar="http://bar.com" xmlns:pear="http://pear.php.net">I&apos;m inside the tag</foo:bar>

creating a tag with CData section:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 246

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::createCDataSection() should not be called statically in /usr/local/lib/php/XML/Util.php on line 661
<foo argh="fruit&amp;vegetable" key="value"><![CDATA[I'm inside the tag]]></foo>

creating a tag with HTML entities:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 261

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 665
<foo argh="t&uuml;t&uuml;" key="value">Also XHTML-tags can be created and HTML entities can be replaced &Auml; &auml; &Uuml; &ouml; &lt;&gt;.</foo>

creating a tag with createTag:

Strict Standards: Non-static method XML_Util::createTag() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 271

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /usr/local/lib/php/XML/Util.php on line 525

Strict Standards: Non-static method XML_Util::splitQualifiedName() should not be called statically in /usr/local/lib/php/XML/Util.php on line 625

Strict Standards: Non-static method XML_Util::attributesToString() should not be called statically in /usr/local/lib/php/XML/Util.php on line 653

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 419

Strict Standards: Non-static method XML_Util::replaceEntities() should not be called statically in /usr/local/lib/php/XML/Util.php on line 665
<myNs:myTag foo="bar" xmlns:myNs="http://www.w3c.org/myNs#">This is inside the tag</myNs:myTag>

trying to create an XML tag with an array as content:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 284

Strict Standards: Non-static method XML_Util::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 593

Strict Standards: Non-static method PEAR::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 908
PEAR_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 60 [message] => Supplied non-scalar value as tag content [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /usr/local/lib/php/PEAR.php [line] => 533 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => Supplied non-scalar value as tag content [1] => 60 [2] => 1 [3] => 1024 [4] => ) ) [1] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 908 [function] => raiseError [class] => PEAR [type] => :: [args] => Array ( [0] => Supplied non-scalar value as tag content [1] => 60 ) ) [2] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 593 [function] => raiseError [class] => XML_Util [type] => :: [args] => Array ( [0] => Supplied non-scalar value as tag content [1] => 60 ) ) [3] => Array ( [file] => /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php [line] => 284 [function] => createTagFromArray [class] => XML_Util [type] => :: [args] => Array ( [0] => Array ( [qname] => bar [content] => Array ( [foo] => bar ) ) ) ) ) [callback] => )


trying to create an XML tag without a name:

Strict Standards: Non-static method XML_Util::createTagFromArray() should not be called statically in /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php on line 296

Strict Standards: Non-static method XML_Util::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 599

Strict Standards: Non-static method PEAR::raiseError() should not be called statically in /usr/local/lib/php/XML/Util.php on line 908
PEAR_Error Object ( [error_message_prefix] => [mode] => 1 [level] => 1024 [code] => 61 [message] => You must either supply a qualified name (qname) or local tag name (localPart). [userinfo] => [backtrace] => Array ( [0] => Array ( [file] => /usr/local/lib/php/PEAR.php [line] => 533 [function] => PEAR_Error [class] => PEAR_Error [type] => -> [args] => Array ( [0] => You must either supply a qualified name (qname) or local tag name (localPart). [1] => 61 [2] => 1 [3] => 1024 [4] => ) ) [1] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 908 [function] => raiseError [class] => PEAR [type] => :: [args] => Array ( [0] => You must either supply a qualified name (qname) or local tag name (localPart). [1] => 61 ) ) [2] => Array ( [file] => /usr/local/lib/php/XML/Util.php [line] => 599 [function] => raiseError [class] => XML_Util [type] => :: [args] => Array ( [0] => You must either supply a qualified name (qname) or local tag name (localPart). [1] => 61 ) ) [3] => Array ( [file] => /home/miyasola/oldfile/usr/local/lib/php/doc/XML_Util/examples/example.php [line] => 296 [function] => createTagFromArray [class] => XML_Util [type] => :: [args] => Array ( [0] => Array ( [attributes] => Array ( [foo] => bar ) ) ) ) ) [callback] => )