say I have an xml-file. Now what my program does depends on the "element". Is it possible for xml schemas to define the action that the program should do? Ie is the following possible:
<xs:element name="test" hidden=true action=myActionOnTestElement>
And then when xerces' parser reads elements of name "test" it also stores the action & that this element is "hidden". If this is impossible with xerces, is it possible at all with XML parsers?
It is completely possible. You might want to make sure that you get function pointers. Especially pointers to functions returning pointers.