StructSequence b = new StructSequenceImpl("b");
StructSequence c = new StructSequenceImpl("c");
root.addChild(ab).addChild(c);
ab.addChild(a).addChild(b);
StructSimple x1 = new StructSimpleImpl("x1").setSimplePattern("[a-z]{6,9}");
StructSimple y1 = new StructSimpleImpl("y1").setSimplePattern("[0-9]{5,9}");
y1.setMaxOccurrences(10).setMinOccurrences(2);
a.addChild(x1).addChild(y1);
StructSimple x2 = new StructSimpleImpl("x2").setSimplePattern("[a-z]{6,9}");
StructSimple y2 = new StructSimpleImpl("y2").setSimplePattern("[A-Z]{5,9}");
b.addChild(x2).addChild(y2);
StructSimple n = new StructSimpleImpl("n").setSimplePattern("[a-z]{6,9}");
StructSimple m = new StructSimpleImpl("m").setSimplePattern("[a-z]{5,9}");
c.addChild(n).addChild(m);
// n.setMinOccurrences(0);
DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();