public class XmlParserHelper extends Object
Constructor and Description |
---|
XmlParserHelper() |
Modifier and Type | Method and Description |
---|---|
XMLEventReader |
createXmlEventReader(String resourceName,
InputStream xmlStream) |
Schema |
getSchema(String schemaResource)
Returns the XML schema identified by the given resource name.
|
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)
public Schema getSchema(String schemaResource)
schemaResource
- the resource name identifying the schema.null
if the resource was not found or could
not be loaded.Copyright © 2021 JBoss by Red Hat. All rights reserved.