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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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)

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 25 19:01:33 2024 UTC