xml writer finished

all patterns with consequences, problems and contexts
all categories with patterns and childs

not yet
via factory