dk.brics.xact.operations
Class XMLParser

java.lang.Object
  extended by dk.brics.xact.operations.XMLParser

public class XMLParser
extends Object

Parser for XML templates.


Field Summary
static String XACT_NAMESPACE
          Namespace for XACT gap elements.
 
Method Summary
static XML parse(InputStream in, String encoding, boolean template, Map<String,String> namespaces, Origin origin)
          Parses the given XML template or document from its textual representation.
static void setResolver(EntityResolver resolver)
          Sets the entity resolver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XACT_NAMESPACE

public static final String XACT_NAMESPACE
Namespace for XACT gap elements.

See Also:
Constant Field Values
Method Detail

parse

public static XML parse(InputStream in,
                        String encoding,
                        boolean template,
                        Map<String,String> namespaces,
                        Origin origin)
                 throws IOException
Parses the given XML template or document from its textual representation. If template is set, the global and thread local namespace declarations apply, and gaps are recognized. If namespaces is non-null, this map overrides the global and thread local namespace declarations.

Throws:
IOException - if an I/O error occurs
XMLTemplateException - if the string is not a syntactically wellformed XML template or document

setResolver

public static void setResolver(EntityResolver resolver)
Sets the entity resolver.



Copyright © 2005-2011 Aarhus University.