Doc #72725 [Opn]: Document what are allowed characters for XMLWriter::startElement's name
| From: | cmb@php.net | Date: | Mon, 01 Aug 2016 13:24:11 +0000 |
| Subject: | Doc #72725 [Opn]: Document what are allowed characters for XMLWriter::startElement's name | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13768@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72725&edit=1
ID: 72725
Updated by: cmb@php.net
Reported by: bobik at ibobik dot cz
Summary: Document what are allowed characters for
XMLWriter::startElement's name
Status: Open
Type: Documentation Problem
Package: XML Writer
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2016-08-01 12:43:00] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72725&edit=1