I think I understand what you mean. Those four classes are all generated from the wml.xsd and as a result are equal to the wml specification. I absolutely do not want to touch those areas of the framework.
I know what some of those elements represent, eg CTCustomXmlRun is a customXml element in a paragraph...
So far I will keep the patch as it is and wait what you think about it.
One more thing: In my opinion both the SdtElement and the new CTCustomXmlElement class need to extend the Child class, because in the way it is implemented now I can not access the parent from the interface:
Using java Syntax Highlighting
SdtElement e
= new SdtBlock
();
e.
getParent(); // not possible
Child c
= e
; // not possible, so c.getParent() does not work without a cast
Parsed in 0.015 seconds, using
GeSHi 1.0.8.4
Am I right, that we have to change it like this:
Using java Syntax Highlighting
public interface SdtElement
extends Child
{ ...
}
public class SdtBlock
implements SdtElement
{ ...
}
Parsed in 0.013 seconds, using
GeSHi 1.0.8.4
Richard