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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 12:01:28 2024 UTC