|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.mxquery.xdmio.XDMInputFactory
public class XDMInputFactory
| Constructor Summary | |
|---|---|
XDMInputFactory()
|
|
| Method Summary | |
|---|---|
static XMLSource |
createDOMInput(Context ctx,
org.w3c.dom.Node node,
QueryLocation location)
Create an XML input using a DOM node instance. |
static XMLSource |
createSAXInput(Context ctx,
org.xml.sax.XMLReader saxInput,
QueryLocation location)
Create an XML input using a SAX/XMLReader instance |
static XMLSource |
createStaxInput(Context ctx,
javax.xml.stream.XMLStreamReader staxInput,
QueryLocation location)
Create an XML input using a StAX/XMLStreamReader instance |
static XMLSource |
createTidyInput(Context ctx,
java.io.Reader xml,
QueryLocation location)
Create an XHTML input from a character stream provided by a Reader. |
static XMLSource |
createUpdateableDOMInput(XQStaticContext ctx,
org.w3c.dom.Node node,
QueryLocation location)
Create an updateable XML input by binding against a DOM node instance. |
static XMLSource |
createXMLInput(Context ctx,
java.io.Reader xml,
boolean doc,
int valMode,
QueryLocation location)
Create an XML input from a character stream provided by a Reader. |
static XMLSource |
createXPPInput(Context ctx,
org.xmlpull.v1.XmlPullParser pullParser,
QueryLocation loc)
Create an XML input using an XML Pull Parser instance |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XDMInputFactory()
| Method Detail |
|---|
public static XMLSource createXMLInput(Context ctx,
java.io.Reader xml,
boolean doc,
int valMode,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runxml - A Reader producing a character streamdoc - Shall the result be treated as document or as element (the latter is not supported by all parsers)valMode - The type of validation that should be performed on the input, can be Context.NO_VALIDATION, Context.DTD_VALIDATION, Context.NO_VALIDATION, Context.SCHEMA_VALIDATION_LAX, Context.SCHEMA_VALIDATION_STRICTlocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createXPPInput(Context ctx,
org.xmlpull.v1.XmlPullParser pullParser,
QueryLocation loc)
throws MXQueryException
ctx - The context in which the input should runpullParser - A XML Pull Parser instanceloc - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createStaxInput(Context ctx,
javax.xml.stream.XMLStreamReader staxInput,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runstaxInput - A StAX/XMLStream Readerlocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createSAXInput(Context ctx,
org.xml.sax.XMLReader saxInput,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runsaxInput - A SAX/XML Readerlocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createDOMInput(Context ctx,
org.w3c.dom.Node node,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runnode - A DOM nodelocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createUpdateableDOMInput(XQStaticContext ctx,
org.w3c.dom.Node node,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runnode - A DOM nodelocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
public static XMLSource createTidyInput(Context ctx,
java.io.Reader xml,
QueryLocation location)
throws MXQueryException
ctx - The context in which the input should runxml - A Reader producing a character streamlocation - The location of input in the query, set to QueryLocation.OUTSIDE_QUERY_LOC if not required
MXQueryException
|
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||