Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: CommonXMLParser.java 130 2009-06-05 17:01:24Z karianna $
   * $URL: https://ikasaneip.svn.sourceforge.net/svnroot/ikasaneip/tags/ikasan-0.7.3/common/src/main/java/org/ikasan/common/CommonXMLParser.java $
   * 
   * ====================================================================
   * Ikasan Enterprise Integration Platform
   * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the 
  * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
  * or see the FSF site: http://www.fsfeurope.org/.
  * ====================================================================
  */
 package org.ikasan.common;
 
 import java.io.File;
 
 
Common XML Parser provides the base interface for all XML parsing.

Deprecated:
- This has been deprecated, use DocumentBuilderFactory instead
Author(s):
Ikasan Development Team
   
 public interface CommonXMLParser
 {
    
Parse resource given by URI into a document

 
     public Document parse(String uri)
         throws ParserConfigurationExceptionSAXExceptionIOException;

    
Parse byte stream into a document

 
     public Document parse(byte[] xmlDoc)
         throws ParserConfigurationExceptionSAXExceptionIOException;
    
    
Parse file into a document

 
     public Document parse(File file)
         throws ParserConfigurationExceptionSAXExceptionIOException;
    
    
Parse InputSource into a document

 
     public Document parse(InputSource is)
         throws ParserConfigurationExceptionSAXExceptionIOException;
    
    
Parse InputStream into a document

    public Document parse(InputStream is)
        throws ParserConfigurationExceptionSAXExceptionIOException;
    
    
Return true if it's a validating parse

Returns:
true if it's a validating parse
    public Boolean isValidating();
    
    
Set whether validation is on or not (and it's schema Type)

Deprecated:
- use the individual setter methods instead
Parameters:
validation
schemaType
    @Deprecated
    public void setValidation(Boolean validationString schemaType);
    
    
Set whether validation is on or not

Parameters:
validation
    public void setValidation(Boolean validation);
    
    
Set the required schemaType for validation.

Parameters:
schemaType
    public void setSchemaType(String schemaType);
    
    
True if the parse is name space aware, else false

Returns:
True if the parse is name space aware, else false
    public Boolean isNamspaceAware();
    
    
Set whether the parse is name space aware

Parameters:
namespaceAware
    public void setNamespaceAware(Boolean namespaceAware);
    
    
Set default entity resolver
    public void setEntityResolver();
    
    
Set specified entity resolver

Parameters:
entityResolver
    public void setEntityResolver(EntityResolver entityResolver);
    
    
Get the XML schema type

Returns:
XML schema type
    public String getXMLSchemaType();
    
    
Get the root name of the URI

    public String getRootName(String uri)
        throws ParserConfigurationExceptionIOExceptionSAXException;
    
    
Get the root name from the xml byte stream

    public String getRootName(byte xmlDoc[])
        throws ParserConfigurationExceptionIOExceptionSAXException;
    
    
Get the root name from the file

    public String getRootName(File file)
        throws ParserConfigurationExceptionIOExceptionSAXException;
    
    
Get the root name from the InputSource

    public String getRootName(InputSource is)
        throws ParserConfigurationExceptionIOExceptionSAXException;

    
Get the root name from the InputStream

    public String getRootName(InputStream is)
        throws ParserConfigurationExceptionIOExceptionSAXException;

    
Get the root name from the document

    public String getRootName(Document doc)
        throws ParserConfigurationExceptionIOExceptionSAXException;

    
Removes indentation.

Parameters:
node
    public void removeIndent(Node node);

New to GrepCode? Check out our FAQ X