[xml] ¿Non empty node?



Hi all, I've this problem with libxml.

I've an element KK which have an attribute AT.

In the XML doc I use:

<KK AT="kk"></KK>

In the DTD I declare:

<!ELEMENT KK EMPTY>
<!ATTLIST KK AT CDATA>

The first question: Is my element KK empty?

The second question: Why the "xmlValidateDocument" function invoque my
"errorfunct" with the string "Element KK was declared EMPTY this one has
content"?

The third question: Is there a bug in "xmlValidateDocument"?

P.D. Sorry, my english level isn't very high.


Samuel Díaz García

samueldg telefonica net
samueldiazgarcia hotmail com
samueldiaz airtel net
samueldiaz teleline es

c/ Guardabosques, 1 - 5ºC
41015 - Sevilla

Tlf./Fax: 954 94 27 76




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