Can xml-schema be used to define meta data (using xerces)?

Feb 17, 2013 at 11:12am
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?
Feb 17, 2013 at 11:18am
It is completely possible. You might want to make sure that you get function pointers. Especially pointers to functions returning pointers.
Topic archived. No new replies allowed.