Re: [xml] ATTRIBUTE NAME validation problem



Hi,

murali wrote:
<!ATTLIST doc : CDATA #IMPLIED>

is a valid declaration of attribute ":" for element doc.

But , currently LIBXML2 generates a error when it encounters this.

well, that's just because ':' isn't really a well-formed attribute name. So
you're actually lucky libxml2 tells you that, otherwise you'd generate XML
that no parser can parse.

Java xml parser also has the same behavior.

you see?

Stefan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]