diff --git a/play-ws-standalone-xml/src/main/scala/play/api/libs/ws/XMLBodyReadables.scala b/play-ws-standalone-xml/src/main/scala/play/api/libs/ws/XMLBodyReadables.scala index 728a3d8e..14454e98 100644 --- a/play-ws-standalone-xml/src/main/scala/play/api/libs/ws/XMLBodyReadables.scala +++ b/play-ws-standalone-xml/src/main/scala/play/api/libs/ws/XMLBodyReadables.scala @@ -25,7 +25,7 @@ trait XMLBodyReadables { * }}} */ implicit val readableAsXml: BodyReadable[Elem] = BodyReadable { response => - xml.XML.load(new InputSource(new ByteArrayInputStream(response.bodyAsBytes.toArray))) + XML.parser.load(new InputSource(new ByteArrayInputStream(response.bodyAsBytes.toArray))) } }