diff --git a/anyconfig/backend/xml.py b/anyconfig/backend/xml.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/xml.py
+++ b/anyconfig/backend/xml.py
@@ -35,11 +35,6 @@ from __future__ import absolute_import
 from io import BytesIO
 
 import sys
-
-import anyconfig.backend.base
-import anyconfig.compat
-import anyconfig.mdicts
-
 try:
     # First, try lxml which is compatible with elementtree and looks faster a
     # lot. See also: http://getpython3.com/diveintopython3/xml.html
@@ -50,6 +45,10 @@ except ImportError:
     except ImportError:
         import elementtree.ElementTree as ET
 
+import anyconfig.backend.base
+import anyconfig.compat
+import anyconfig.mdicts
+
 
 _PARAM_PREFIX = "@"
refactor: re-order imports to import standard lib/3rd party ones before app-specific ones