Public bug reported:

According to the XML 1.0 standard, these are the characters allowed
between tags:

  Char     ::=          #x9 | #xA | #xD | [#x20-#xD7FF] |
[#xE000-#xFFFD] | [#x10000-#x10FFFF]

For reference purposes, here is the direct link to the W3 standard:

  http://www.w3.org/TR/2006/REC-xml-20060816/#charsets

The problem is that the lshw escape function only generates entities
from special characters, such as "<", ">" and "&". However, it lets
characters outside the allowed set to result in the output. For example,
here is output I have encountered recently from the serial number of a
CDROM device (where ^@ is a NUL character):

  <serial>[EMAIL PROTECTED]@[EMAIL PROTECTED] DVD RW AD-7200S 1.04 
Dec21,2007</serial>

I have attached a patch which should solve the problem by removing
invalid characters altogether.

** Affects: lshw (Ubuntu)
     Importance: Undecided
         Status: New

-- 
lshw -xml reporting invalid xml
https://bugs.launchpad.net/bugs/241675
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to