[Generator] add a document for XML and JAVA Generator