XML_SET_CHARACTER_DATA_HANDLER(3) 1 XML_SET_CHARACTER_DATA_HANDLER(3)xml_set_character_data_handler - Set up character data handlerSYNOPSIS
bool xml_set_character_data_handler (resource $parser, callable $handler)
DESCRIPTION
Sets the character data handler function for the XML parser $parser.
PARAMETERS
o $parser
- A reference to the XML parser to set up character data handler function.
o $handler
-$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function
named by $handler must accept two parameters:
handler (resource $parser, string $data)
o $parser
- The first parameter, parser, is a reference to the XML parser calling the handler.
o $data
- The second parameter, $data, contains the character data as a string.
Character data handler is called for every piece of a text in the XML document. It can be called multiple times inside each frag-
ment (e.g. for non-ASCII strings). If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
Note
Instead of a function name, an array containing an object reference and a method name can also be supplied.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group XML_SET_CHARACTER_DATA_HANDLER(3)
Check Out this Related Man Page
XML_SET_START_NAMESPACE_DECL_HANDLER(3) 1 XML_SET_START_NAMESPACE_DECL_HANDLER(3)xml_set_start_namespace_decl_handler - Set up start namespace declaration handlerSYNOPSIS
bool xml_set_start_namespace_decl_handler (resource $parser, callable $handler)
DESCRIPTION
Set a handler to be called when a namespace is declared. Namespace declarations occur inside start tags. But the namespace declaration
start handler is called before the start tag handler for each namespace declared in that start tag.
PARAMETERS
o $parser
- A reference to the XML parser.
o $handler
-$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function
named by $handler must accept three parameters, and should return an integer value. If the value returned from the handler is
FALSE (which it will be if no value is returned), the XML parser will stop parsing and xml_get_error_code(3) will return
XML_ERROR_EXTERNAL_ENTITY_HANDLING.
handler (resource $parser, string $prefix, string $uri)
o $parser
- The first parameter, parser, is a reference to the XML parser calling the handler.
o $prefix
- The prefix is a string used to reference the namespace within an XML object.
o $uri
- Uniform Resource Identifier (URI) of namespace.
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
Note
Instead of a function name, an array containing an object reference and a method name can also be supplied.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO xml_set_end_namespace_decl_handler(3).
PHP Documentation Group XML_SET_START_NAMESPACE_DECL_HANDLER(3)
I have 3 shell scripts below.... I need to write a command line parser
for these 3 utilities.
basically the parser will accept ANY number of commands in this syntax
-r = right -f = findtext -c = count so you do something like
mu.s -r 3 4 5 -f hello goodbye.txt -c *.c -h 5 4 3
right... (5 Replies)
Hi all,
I downloaded a XML parser lib from blastwave.org...
Its the "libxml2",but i am having trouble initializing it(or so it feels)...I kind of need it badly as the OSE version of the virtualbox 1.6.2 will not install unless i have one
The version was 2.6.3...
The min requirement from... (0 Replies)
Hi ,
I have a question about unix shell scripting. I hope someone may help me to solve problem. I have an output file which is XML file. Also , I have a parser that parses files to format without XML tag. The problem is , this XML file contains such counter names and values sometimes this... (3 Replies)
I have some data files that I can identify by a certain pattern in the names using find.
Every one of those data files has an XML file associated with it (can be multiple data files per XML file).
The XML file is always up one directory from the data file(s) in a folder calledRun##### -... (12 Replies)
Hi All,
I want to write a bash script in which a function needs to be called based on its first character in a supplied string. eg function "j" should be called when "jab" or "jgh" or "j" .... etc is hit. I have used complete -F in below script, however here function is invoked... (1 Reply)