The org.eclipse.equinox.util.xml
package contains classes that can read and parse a XML document. Through the XMLReader
class you can read a XML from an input stream or through a reader. To get aware of every read tag, you should pass a TagListener
implementation as an argument in the chosen read
method of XMLReader
. When the end of a tag is reached, the TagListener
will received an instance of TagClass
that represents this tag. To read the name, content, attributes and a child tag at a specific index, you can use TagClass
and XMLUtil
. With XMLUtil
you can also replace a tag. You cannot create new XMLs with the XML utilities.