|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2016-08-01 12:43 UTC] bobik at ibobik dot cz
Description:
------------
This code will return nothing because of brackets characters in the tag name:
writer->startElement("tag-(with)-brackets");
On the http://php.net/manual/en/function.xmlwriter-start-element.php should be documented what characters should not be there.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 04:00:01 2025 UTC |
From reading the description of $name ("The element name."), I would assume that any valid XML Name as specified by the respective XML standard[1] is allowed. Note also that XMLWriter::startElement() is supposed to raise a warning, if an invalid $name is given, see <https://3v4l.org/OurBC>. [1] <https://www.w3.org/TR/REC-xml/#NT-Name> for XML 1.0