public class XmlModule extends AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
XmlModule() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getLoadedExtensions()
Returns the extensions loaded by the module.
|
static void |
libxml_clear_errors(Env env) |
static java.util.ArrayList<LibXmlError> |
libxml_get_errors(Env env) |
static LibXmlError |
libxml_get_last_error(Env env) |
static boolean |
libxml_use_internal_errors(Env env,
Value isKeepErrors) |
protected static void |
recordError(Env env,
int level,
int errorCode,
int column,
java.lang.String message,
java.lang.String file,
int line) |
protected static void |
recordError(Env env,
LibXmlError error) |
static Value |
utf8_decode(Env env,
StringValue str)
Converts from utf8 to iso-8859-1
|
static Value |
utf8_encode(Env env,
StringValue str)
Converts from iso-8859-1 to utf8
|
Value |
xml_error_string(int code)
Returns the error string for xml parser
|
Value |
xml_get_current_byte_index(Xml parser)
Returns the parser's byte
|
Value |
xml_get_current_column_number(Xml parser)
Returns the parser's column
|
Value |
xml_get_current_line_number(Xml parser)
Returns the parser's line
|
Value |
xml_get_error_code(Xml parser)
Returns the error code for xml parser
|
int |
xml_parse_into_struct(Env env,
Xml parser,
StringValue data,
Value valueArray,
Value indexArray) |
int |
xml_parse(Env env,
Xml parser,
StringValue data,
boolean isFinal) |
Xml |
xml_parser_create_ns(Env env,
java.lang.String outputEncoding,
java.lang.String separator)
XXX: Should we return warning if separator is
anything but ":"???
|
Xml |
xml_parser_create(Env env,
java.lang.String outputEncoding)
returns a new Xml Parser
|
boolean |
xml_parser_free(Xml parser)
stub function.
|
Value |
xml_parser_get_option(Env env,
Xml parser,
int option) |
boolean |
xml_parser_set_option(Xml parser,
int option,
Value value) |
boolean |
xml_set_character_data_handler(Env env,
Xml parser,
Value handler) |
boolean |
xml_set_default_handler(Env env,
Xml parser,
Value handler) |
boolean |
xml_set_element_handler(Env env,
Xml parser,
Value startElementHandler,
Value endElementHandler) |
boolean |
xml_set_end_namespace_decl_handler(Env env,
Xml parser,
Value handler) |
boolean |
xml_set_notation_decl_handler(Env env,
Xml parser,
Value handler) |
boolean |
xml_set_object(Xml parser,
ObjectValue obj) |
boolean |
xml_set_processing_instruction_handler(Env env,
Xml parser,
Value handler) |
boolean |
xml_set_start_namespace_decl_handler(Env env,
Xml parser,
Value startNamespaceDeclHandler) |
boolean |
xml_set_unparsed_entity_decl_handler(Env env,
Xml parser,
Value handler) |
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
public static final int XML_OPTION_CASE_FOLDING
public static final int XML_OPTION_SKIP_TAGSTART
public static final int XML_OPTION_SKIP_WHITE
public static final int XML_OPTION_TARGET_ENCODING
public static final int XML_ERROR_NONE
public static final int XML_ERROR_NO_MEMORY
public static final int XML_ERROR_SYNTAX
public static final int XML_ERROR_NO_ELEMENTS
public static final int XML_ERROR_INVALID_TOKEN
public static final int XML_ERROR_UNCLOSED_TOKEN
public static final int XML_ERROR_PARTIAL_CHAR
public static final int XML_ERROR_TAG_MISMATCH
public static final int XML_ERROR_DUPLICATE_ATTRIBUTE
public static final int XML_ERROR_JUNK_AFTER_DOC_ELEMENT
public static final int XML_ERROR_PARAM_ENTITY_REF
public static final int XML_ERROR_UNDEFINED_ENTITY
public static final int XML_ERROR_RECURSIVE_ENTITY_REF
public static final int XML_ERROR_ASYNC_ENTITY
public static final int XML_ERROR_BAD_CHAR_REF
public static final int XML_ERROR_BINARY_ENTITY_REF
public static final int XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF
public static final int XML_ERROR_MISPLACED_XML_PI
public static final int XML_ERROR_UNKNOWN_ENCODING
public static final int XML_ERROR_INCORRECT_ENCODING
public static final int XML_ERROR_UNCLOSED_CDATA_SECTION
public static final int XML_ERROR_EXTERNAL_ENTITY_HANDLING
public static final int XML_ERROR_NOT_STANDALONE
public static final int XML_ERROR_UNEXPECTED_STATE
public static final int XML_ERROR_ENTITY_DECLARED_IN_PE
public static final int XML_ERROR_FEATURE_REQUIRES_XML_DTD
public static final int XML_ERROR_CANT_CHANGE_FEATURE_ONCE_PARSING
public static final int XML_ERROR_UNBOUND_PREFIX
public static final int XML_ERROR_UNDECLARING_PREFIX
public static final int XML_ERROR_INCOMPLETE_PE
public static final int XML_ERROR_XML_DECL
public static final int XML_ERROR_TEXT_DECL
public static final int XML_ERROR_PUBLICID
public static final int XML_ERROR_SUSPENDED
public static final int XML_ERROR_NOT_SUSPENDED
public static final int XML_ERROR_ABORTED
public static final int XML_ERROR_FINISHED
public static final int XML_ERROR_SUSPEND_PE
public static final int LIBXML_ERR_WARNING
public static final int LIBXML_ERR_ERROR
public static final int LIBXML_ERR_FATAL
public static final java.lang.String LIBXML_DOTTED_VERSION
public java.lang.String[] getLoadedExtensions()
AbstractQuercusModule
getLoadedExtensions
in interface QuercusModule
getLoadedExtensions
in class AbstractQuercusModule
public static Value utf8_encode(Env env, StringValue str)
public static Value utf8_decode(Env env, StringValue str)
public Value xml_get_current_byte_index(Xml parser)
public Value xml_get_current_line_number(Xml parser)
public Value xml_get_current_column_number(Xml parser)
public Value xml_get_error_code(Xml parser)
public Value xml_error_string(int code)
public int xml_parse(Env env, Xml parser, StringValue data, boolean isFinal)
parser
- data
- isFinal
- java.lang.Exception
Xml.xml_parse
public Xml xml_parser_create(Env env, java.lang.String outputEncoding)
public Xml xml_parser_create_ns(Env env, java.lang.String outputEncoding, java.lang.String separator)
env
- outputEncoding
- separator
- public boolean xml_parser_set_option(Xml parser, int option, Value value)
parser
- option
- value
- Xml.xml_parser_set_option
public Value xml_parser_get_option(Env env, Xml parser, int option)
parser
- option
- Xml.xml_parser_get_option
public boolean xml_set_element_handler(Env env, Xml parser, Value startElementHandler, Value endElementHandler)
parser
- startElementHandler
- endElementHandler
- Xml.xml_set_element_handler
public boolean xml_set_character_data_handler(Env env, Xml parser, Value handler)
parser
- handler
- Xml.xml_set_character_data_handler
public boolean xml_set_start_namespace_decl_handler(Env env, Xml parser, Value startNamespaceDeclHandler)
parser
- startNamespaceDeclHandler
- Xml.xml_set_start_namespace_decl_handler
public boolean xml_set_object(Xml parser, ObjectValue obj)
parser
- obj
- public boolean xml_set_processing_instruction_handler(Env env, Xml parser, Value handler)
parser
- handler
- public boolean xml_set_default_handler(Env env, Xml parser, Value handler)
parser
- handler
- public boolean xml_set_notation_decl_handler(Env env, Xml parser, Value handler)
parser
- handler
- Xml.xml_set_notation_decl_handler
public boolean xml_set_end_namespace_decl_handler(Env env, Xml parser, Value handler)
parser
- handler
- public int xml_parse_into_struct(Env env, Xml parser, StringValue data, Value valueArray, Value indexArray)
parser
- data
- valueArray
- indexArray
- java.lang.Exception
public boolean xml_parser_free(Xml parser)
parser
- public boolean xml_set_unparsed_entity_decl_handler(Env env, Xml parser, Value handler)
parser
- handler
- Xml.xml_set_unparsed_entity_decl_handler
public static boolean libxml_use_internal_errors(Env env, Value isKeepErrors)
public static void libxml_clear_errors(Env env)
public static java.util.ArrayList<LibXmlError> libxml_get_errors(Env env)
public static LibXmlError libxml_get_last_error(Env env)
protected static void recordError(Env env, int level, int errorCode, int column, java.lang.String message, java.lang.String file, int line)
protected static void recordError(Env env, LibXmlError error)