question: returns the document of the given domsource . concode_field_sep PlaceHolder placeHolder concode_field_sep void staxSource concode_elem_sep void staxSource concode_elem_sep void result concode_elem_sep void streamResult concode_elem_sep void streamResult concode_elem_sep void staxResult concode_elem_sep void staxResult concode_elem_sep void saxSource concode_elem_sep void doWithSource concode_elem_sep void doWithResult concode_elem_sep void domSource concode_elem_sep void domResult concode_elem_sep void saxResult concode_elem_sep void streamSource concode_elem_sep void streamSource concode_elem_sep void source
target: Document function ( DOMSource arg0 ) { Node loc0 = arg0 . getNode ( ) ; if ( loc0 instanceof Document ) { return ( Document ) loc0 ; } else if ( loc0 != null ) { return loc0 . getOwnerDocument ( ) ; } else { return null ; } }