Attribute value “001” of type ID must be an NCName when namespaces are enabled
问题 So i'm creating a xml file with my own DTD. The simplified XML is as follows: <!DOCTYPE catalog [ <!ELEMENT catalog (product+)> <!ELEMENT product (title?, price, creation_date?, weight?, color, description?)> <!ELEMENT creation_date (day, month, year)> <!ATTLIST product category (art|dinner_set|ovenware) "art"> <!ATTLIST product id ID #REQUIRED> <!ELEMENT id (#PCDATA)> <!ELEMENT title (#PCDATA)> <!ELEMENT price (#PCDATA)> <!ELEMENT day (#PCDATA)> <!ELEMENT month (#PCDATA)> <!ELEMENT year (