final String qName = "myElement";
final String childName = "myChild";
final String grandChildName = "myGrandChild";
handler.startElement( "", "", qName, new AttributesImpl() );
handler.startElement( "", "", childName, new AttributesImpl() );
handler.startElement( "", "", grandChildName, new AttributesImpl() );
handler.endElement( "", "", grandChildName );
handler.endElement( "", "", childName );
handler.endElement( "", "", qName );
final Configuration configuration = handler.getConfiguration();