Dimitre wrote: You haven't defined what should "empty" mean exactly. Fantastic Dimitre! You are spot on. I did not define what I mean by “empty element”. I would like to do so now. First, examples of what I consider to be empty elements and examples of elements that I consider not empty.
In the following instance document, the B element is empty: <Row> In the following instance document the B element is empty: <Row> In the following instance document the B element is empty: <!DOCTYPE Row [ In the following instance document the B element is
not empty: <Row> In the following instance document the B element is
not empty: <Row> In the following instance document the B element is
not empty: <Row> In the following instance document the B element is
not empty: <Row> In the following instance document the B element is
not empty: <Row> In the following instance document the B element is
not empty: <Row> Those examples illustrate what I mean by an “empty element.” Now for a definition. [Definition] An element is empty if and only if the element consists of a text node containing a string of length zero and nothing else (no attribute, comment, processing instruction, child element,
or non-string value). Is that definition 100% precise? Does it cover every possible case? Can it be stated more succinctly and precisely? /Roger |