Would the Java Document.generateXML work on a Design document?

Hi there,since LS is red screening we were thinking to move to Java. Would that code work if docUNID is a uniqueId of a design document?

Document doc = Database.getDocumentByUNID((docUNID);

system.out.println(doc.generateXML());

:slight_smile: stw