Hello group,
Before appending a child to a parent element , I want to check if this is
allowed by the DTD oder XSD at this position.
How is this possible.
Here a simple example.
I have an element "Root" which is loaded into an XMLDocument-object. The
DTD allows a "Para" after a "List" element. Before inserting an Element I
want to know if this element is allowed here.
I want to get a warning (in best case), when inserting a Para as first
child of the root element, because a "List" ist needed.
I want to get an error when inserting a "List" after a Para and
I want to get an error, when inserting another element (i.e. Chapter).
How is this possible? Any ideas?
Bye
Markus