method

encoding

encoding()
public

@return the XMLDecl encoding of this document as an Encoding object. If no XMLDecl has been set, returns the default encoding.