Valid element classes only accept children of the correct type.
This feature can probably be implemented as a hierarchy of empty interfaces.
It isn't enough to ensure document validity, but it's a huge step in that direction. The next step would require doing the same for attributes, but this would be a breaking change. I'll save the breaking changes for until I've proven that this technique works.
Valid element classes only accept children of the correct type.
This feature can probably be implemented as a hierarchy of empty interfaces.
It isn't enough to ensure document validity, but it's a huge step in that direction. The next step would require doing the same for attributes, but this would be a breaking change. I'll save the breaking changes for until I've proven that this technique works.