class XmlParserFactory extends Object
Factory method targetting dynamic contexts which allows a new XmlParser
to be created.
It is intended to assist with migration from Groovy 2.5.x to Groovy 3+.
Code using this factory will not need to change moving from 2.x to 3+.
In Groovy 2.5.x, a groovy.util.XmlParser
will be returned.
For Groovy 3+, a groovy.xml.XmlParser
will be returned.
For contexts requiring additional static type checking, it is recommended simply to use the
normal constructor and change the package to groovy.xml
prior to reaching Groovy 4.
Constructor and description |
---|
XmlParserFactory
() |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.