|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.quercus.lib.xml.Xml
public class Xml
XML object oriented API facade
Constructor Summary | |
---|---|
Xml(Env env,
java.lang.String outputEncoding,
java.lang.String separator)
|
Method Summary | |
---|---|
int |
getByteIndex()
|
int |
getColumn()
|
int |
getErrorCode()
|
java.lang.String |
getErrorString()
|
int |
getLine()
|
java.lang.String |
toString()
|
int |
xml_parse_into_struct(Env env,
StringValue data,
Value valsV,
Value indexV)
Parses data into 2 parallel array structures. |
int |
xml_parse(Env env,
StringValue data,
boolean isFinal)
xml_parse will keep accumulating "data" until either is_final is true or omitted |
Value |
xml_parser_get_option(Env env,
int option)
|
boolean |
xml_parser_set_option(int option,
Value value)
sets one of the following: _xmlOptionCaseFolding (ENABLED / DISABLED) _xmlOptionTargetEncoding (String) _xmlOptionSkipTagstart (int) _xmlOptionSkipWhite (ENABLED / DISABLED) XXX: currently only _xmlOptionCaseFolding actually does something |
boolean |
xml_set_character_data_handler(Env env,
Value handler)
Sets the character data handler function. |
boolean |
xml_set_default_handler(Env env,
Value handler)
The php documentation is very vague as to the purpose of the default handler. |
boolean |
xml_set_element_handler(Env env,
Value startElementHandler,
Value endElementHandler)
Sets the element handler functions for the XML parser. |
boolean |
xml_set_end_namespace_decl_handler(Env env,
Value endNamespaceDeclHandler)
Sets the endPrefixMapping handler |
boolean |
xml_set_notation_decl_handler(Env env,
Value handler)
Sets the notationDecl handler |
boolean |
xml_set_object(Value obj)
sets the object which houses all the callback functions |
boolean |
xml_set_processing_instruction_handler(Env env,
Value processingInstructionHandler)
Sets the processing instruction handler function |
boolean |
xml_set_start_namespace_decl_handler(Env env,
Value startNamespaceDeclHandler)
Sets the startPrefixMapping handler |
boolean |
xml_set_unparsed_entity_decl_handler(Env env,
Value handler)
Sets the unparsedEntityDecl handler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Xml(Env env, java.lang.String outputEncoding, java.lang.String separator)
Method Detail |
---|
public int getLine()
public int getColumn()
public int getByteIndex()
public int getErrorCode()
public java.lang.String getErrorString()
public boolean xml_set_element_handler(Env env, Value startElementHandler, Value endElementHandler)
startElementHandler
- must exist when xml_parse is calledendElementHandler
- must exist when xml_parse is called
public boolean xml_set_character_data_handler(Env env, Value handler)
handler
- can be empty string or FALSE
public boolean xml_set_default_handler(Env env, Value handler)
handler
-
public boolean xml_set_processing_instruction_handler(Env env, Value processingInstructionHandler)
processingInstructionHandler
-
public boolean xml_set_start_namespace_decl_handler(Env env, Value startNamespaceDeclHandler)
startNamespaceDeclHandler
-
public boolean xml_set_unparsed_entity_decl_handler(Env env, Value handler)
handler
-
public boolean xml_set_end_namespace_decl_handler(Env env, Value endNamespaceDeclHandler)
endNamespaceDeclHandler
-
public boolean xml_set_notation_decl_handler(Env env, Value handler)
handler
-
public boolean xml_set_object(Value obj)
obj
-
public int xml_parse(Env env, StringValue data, boolean isFinal) throws java.lang.Exception
data
- isFinal
-
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.lang.Exception
public int xml_parse_into_struct(Env env, StringValue data, Value valsV, Value indexV) throws java.lang.Exception
data
- valsV
- indexV
-
java.lang.Exception
public boolean xml_parser_set_option(int option, Value value)
option
- value
-
public Value xml_parser_get_option(Env env, int option)
option
-
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |