|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xmlmind.domutil.LoaderImpl
com.xmlmind.xinclude.XLoader
public final class XLoader
An implementation of Loader which makes use
of the XInclude 1.1 processor contained in this package.
| Constructor Summary | |
|---|---|
XLoader()
|
|
XLoader(Console c)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getIdAttribute()
Returns a string pair containing the namespace URI and local name of the ID attribute. |
org.w3c.dom.Document |
load(java.io.InputStream in,
java.net.URL url)
Load document from specified input stream. |
void |
setIdAttribute(java.lang.String namespace,
java.lang.String localName)
Specifies the name of the ID attribute. |
void |
useId()
Convenience method equivalent to setIdAttribute(null, "id"). |
void |
useXMLId()
Convenience method equivalent to setIdAttribute(XML_NS_URI, "id"). |
| Methods inherited from class com.xmlmind.domutil.LoaderImpl |
|---|
createXMLReader, format, getConsole, getEntityResolver, isAddingElementPointer, load, load, setAddingElementPointer, setConsole, setEntityResolver |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XLoader()
public XLoader(Console c)
| Method Detail |
|---|
public void setIdAttribute(java.lang.String namespace,
java.lang.String localName)
By default, it's "xml:id".
This is needed to process XIncludes possibly found in loaded documents.
getIdAttribute()public java.lang.String[] getIdAttribute()
The ID attribute is needed to process XIncludes possibly found in loaded documents.
setIdAttribute(java.lang.String, java.lang.String)public void useXMLId()
setIdAttribute(XML_NS_URI, "id").
public void useId()
setIdAttribute(null, "id").
public org.w3c.dom.Document load(java.io.InputStream in,
java.net.URL url)
throws java.io.IOException
LoaderNote: xi:include elements (XInclude)
are expected to have been processed in the loaded document.
load in interface Loaderload in class LoaderImplin - input stream allowing to load the documenturl - URL of the document to be loaded if known;
null otherwise
java.io.IOException - if, for any reason, an I/O exception is
raised during the processing.
Note that XML parse exception and XInclude exception are reported
as IOExceptions.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||