structured docs similar to Java and PHP