Document function ( Source arg0 ) { Document loc0 = tryExtractDocFromDOMSource ( arg0 ) ; return loc0 != null ? loc0 : toDocument ( arg0 , DocumentBuilderFactory . newInstance ( ) ) ; }
creates a dom document from a trax source . if the source is a domsource holding a documentnode , this one will be returned . otherwise #toinputsource and a namespace aware documentbuilder createdby the default documentbuilderfactory will be used to read the source . this may involve an xslt identity transform in toinputsource . concode_field_sep PlaceHolder placeHolder concode_field_sep Node tryExtractNodeFromDOMSource concode_elem_sep InputSource toInputSource concode_elem_sep InputSource toInputSource concode_elem_sep Document tryExtractDocFromDOMSource concode_elem_sep NamespaceContext toNamespaceContext concode_elem_sep Node toNode concode_elem_sep Node toNode