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 e338b145d..a58b444d3 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))) } }