public class XmlParserHelper extends Object
Constructor and Description |
---|
XmlParserHelper() |
Modifier and Type | Method and Description |
---|---|
XMLEventReader |
createXmlEventReader(String resourceName,
InputStream xmlStream) |
String |
getSchemaVersion(String resourceName,
XMLEventReader xmlEventReader)
Retrieves the schema version applying for the given XML input stream as
represented by the "version" attribute of the root element of the stream.
|
public String getSchemaVersion(String resourceName, XMLEventReader xmlEventReader)
The given reader will be advanced to the root element of the given XML structure. It can be used for unmarshalling from there.
resourceName
- The name of the represented XML resource.xmlEventReader
- An STAX event readerpublic XMLEventReader createXmlEventReader(String resourceName, InputStream xmlStream)
Copyright © 2007-2017 Red Hat, Inc. All Rights Reserved