The code you posted doesn’t match your question, as the code has nothing to do with XOD files.
You can get the XFDF data from XOD file, by calling readerControl.docViewer.getAnnotationManager().exportAnnotations() once the document is loaded in WebViewer.
Why is extracting the XFDF from a XOD important for you?