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
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.
Password:
Status:
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: Fri Apr 26 08:01:30 2024 UTC