Closed sandersn closed 5 years ago
I agree on 1
and 2
. For 3
, a better resolution would be for XMLDocType
to not extend XMLNode
at all. In that case some methods and properties from XMLNode
need to be redeclared in XMLDocType
. Could you please modify your PR accordingly:
1
and 2
3
so XMLNode
methods keep returning XMLElement
extends XMLNode
from XMLDocType
type
, parent
, children
and methods document
, doc
, end
in XMLDocType
attList
method attributeType
and defaultValueType
should not be optional, they are both required. The comment header which says these two arguments has default values is wrong.Thank you for the PR.
Edit: Also for 2
can you please keep the name XMLCharacterData
and make XMLText
, XMLComment
, etc. extend XMLCharacterData
instead of CharacterData
. Just to keep names consistent across the library.
I like the idea of taking XMLDocType out of the inheritance hierarchy. Let me know if that looks right to you.
Looks perfect. Thank you. Merging and releasing now.
Fixes #211