Java Code Examples for com.sun.org.apache.xerces.internal.impl.xs.util.SimpleLocator

Following code examples demonstrate how to use com.sun.org.apache.xerces.internal.impl.xs.util.SimpleLocatorfrom java. These examples are extracted from various highly rated open source projects. You can directly use these code snippets or view their entire linked source code. These snippets are extracted to provide contextual information about how to use this class in the real world. These samples also let you understand some good practices on how to use com.sun.org.apache.xerces.internal.impl.xs.util.SimpleLocatorand various code implementation of this class.

    public void startDocument() throws SAXException {
        try {
            nsContext.reset();

            XMLLocator xmlLocator;
            if(locator==null)
                xmlLocator=new SimpleLocator(null,null,-1,-1);
            else
                xmlLocator=new LocatorWrapper(locator);

            fCore.startDocument(
                    xmlLocator,
                    null,
                    nsContext,
                    null);
        } catch( WrappedSAXException e ) {
            throw e.exception;
        }
    } 


Advertisement
Javadoc
An XMLLocator implementation used for schema error reporting. @xerces.internal @author Sandy Gao, IB

M

Read More
Advertisement