Hi,
I have read the XML spec, but cannot find anything
substantial on the following problem. Given this dtd
<!ELEMENT test (attribute)*>
<!ELEMENT attribute (value)>
<!ATTLIST attribute name CDATA #REQUIRED>
<!ELEMENT value (#PCDATA)>
and this XML
<?xml version="1.0"?>
<!DOCTYPE test SYSTEM "test.dtd" >
<test>
<attribute name="Temperatue">
<value>34.0</value>
</attribute>
<attribute name="Humidity">
<value></value>
</attribute>
</test>
what should a validating DOM parser produce for the second value
element?
Should the value element contain a Text node with an empty string or
not?
Is the spec open on this point?
I think there should be an "empty" Text node. Xerces does not.
What's your opinion?
regards
Per Norrman