php.net |  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
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 !
Your email address:
MUST BE VALID
Solve the problem:
19 + 24 = ?
Subscribe to this entry?

 
 [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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 16:22 UTC] chregu@php.net
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 <. 

chregu
 [2002-02-09 16:23 UTC] sander@php.net
You should use &lt; instead of <.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jun 19 14:01:24 2021 UTC