public class MunitAnnotatedDocumentLoader extends Object implements org.springframework.beans.factory.xml.DocumentLoader
We change the document loader in order to get the line numbers as element attribute.
This loaded uses SAX to parse the XML and instead of add attributes to the node it adds all data to the userdata section of the node| Constructor and Description |
|---|
MunitAnnotatedDocumentLoader(org.apache.xerces.parsers.DOMParser munitDomParser) |
| Modifier and Type | Method and Description |
|---|---|
protected XMLReader |
createSaxAnnotator(Document doc) |
Document |
loadDocument(InputSource inputSource,
EntityResolver entityResolver,
ErrorHandler errorHandler,
int validationMode,
boolean namespaceAware)
Load the
Document at the supplied InputSource using the standard JAXP-configured XML parser. |
public MunitAnnotatedDocumentLoader(org.apache.xerces.parsers.DOMParser munitDomParser)
public Document loadDocument(InputSource inputSource, EntityResolver entityResolver, ErrorHandler errorHandler, int validationMode, boolean namespaceAware) throws Exception
Document at the supplied InputSource using the standard JAXP-configured XML parser.loadDocument in interface org.springframework.beans.factory.xml.DocumentLoaderExceptionprotected XMLReader createSaxAnnotator(Document doc) throws ParserConfigurationException, SAXException
Copyright © 2016. All rights reserved.