}
public static void main( final String[] args ) throws Exception
{
final Document parsedDocument = Main.getDocument( "/innerifaces.xml" );
final RootIface rootIface = XML2Java.bind( parsedDocument, RootIface.class );
// Accessing first inner interface
final RootIface.NestedIface1 nested1 = rootIface.getNestedInterface();
System.out.println( "Value of attribute c1:attr is " + nested1.getAttrValue() );
System.out.println( "Value of element c1:elem is " + nested1.getElemValue() );
// Accessing second inner interface
final RootIface.NestedIface1.NestedIface2 nested2 = nested1.getNestedInterface();