|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #72725 Document what are allowed characters for XMLWriter::startElement's name
Submitted: 2016-08-01 12:43 UTC Modified: 2016-08-01 13:24 UTC
From: bobik at ibobik dot cz Assigned:
Status: Open Package: XML Writer
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 - 22 = ?
Subscribe to this entry?

 [2016-08-01 12:43 UTC] bobik at ibobik dot cz
This code will return nothing because of brackets characters in the tag name:


On the should be documented what characters should not be there.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-01 13:24 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

[1] <> for XML 1.0
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 16 00:01:27 2019 UTC