Download AltovaXML 2013
Transcript
Usage Java Interface 47 Sets the text value for the input XML data. Example: setInputXMLFromText( "<doc> <a>text</a> </doc>" ) Parameters: str: a string containing XML data. setSchemaFileName public void setSchemaFileName(java.lang.String str) Set file name of external Schema. Parameters: str: an absolute URL giving the base location of the Schema. setSchemaFromText public void setSchemaFromText(java.lang.String str) Sets text value for external Schema. Parameters: str: a string containing Schema as text. setTreatXBRLInconsistenciesAsErrors public void setTreatXBRLInconsistenciesAsErrors(boolean param) Sets a boolean value to treat XBRL inconsistencies as errors or not. Parameters: param: a Boolean value. XQuery public class XQuery extends java.lang.Object Description Class holding the XQuery 1.0 engine. No direct construction/access possible. Access the XQuery Engine by calling the function getXQuery() on an instance of AltovaXMLFactory. Methods The following methods are defined. addExternalVariable public void addExternalVariable(java.lang.String strName, java.lang.String strVal) Adds the name and value of an external variable. Parameters: strName: a string containing a valid QName as the variable name. strVal: a string containing the value of the variable; this value will be used as a string. addExternalVariableAsXPath public void addExternalVariableAsXPath(java.lang.String strName, java.lang.String strVal) Add name and value for an external variable, with value being evaluated as an XPath 2.0 © 2012 Altova GmbH AltovaXML 2013