|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15471 XML parser do not let use '<' in any attribute inside XML file
Submitted: 2002-02-09 16:15 UTC Modified: 2002-02-09 16:23 UTC
From: francis at vulcanonet dot com Assigned:
Status: Not a bug Package: XML related
PHP Version: 4.1.0 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: francis at vulcanonet dot com
New email:
PHP Version: OS:


 [2002-02-09 16:15 UTC] francis at vulcanonet dot com
XML parser do not let use '<'  in any attribute inside XML file. Example:

<elem attribute="<9" />

in this case, the parser send the message "not well-formed" (invalid token)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 16:22 UTC]
What did you expect? According to the XML-Specs, a XML-Document is not wellformed with a < in the attribute value. Use &lt; if you want to use a <. 

 [2002-02-09 16:23 UTC]
You should use &lt; instead of <.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 22 20:01:23 2021 UTC