mime4j 0.4 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News mime4j 0.4 (Default branch)
# 1  
Old 08-29-2008
mime4j 0.4 (Default branch)

mime4j provides a parser, MimeStreamParser, fore-mail message streams in plain RFC822 and MIMEformat. The parser uses a callback mechanism toreport parsing events such as the start of anentity header, the start of a body, etc. If youare familiar with the SAX XML parser interface youshould have no problem getting started withmime4j. The parser only deals with the structureof the message stream and won't do any decoding ofbase64 or quoted-printable encoded header fieldsand bodies. This is intentional - the parsershould only provide the most basic functionalityneeded to build more complex parsers.License: The Apache License 2.0Changes:
This release brings a number of significant improvements in terms of supported capabilities, flexibility, and performance. It has a revised and improved public API, support for parsing of 'headless' messages transmitted using non-SMTP transports such as HTTP, reduced external dependencies, improved parsing performance (up to 10x), support for RFC1864, RFC2045, RFC2183, RFC2557, and RFC3066, and a revised packaging and exception hierarchy.Image

Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
XML_SET_END_NAMESPACE_DECL_HANDLER(3)					 1				     XML_SET_END_NAMESPACE_DECL_HANDLER(3)

xml_set_end_namespace_decl_handler - Set up end namespace declaration handler

SYNOPSIS
bool xml_set_end_namespace_decl_handler (resource $parser, callable $handler) DESCRIPTION
Set a handler to be called when leaving the scope of a namespace declaration. This will be called, for each namespace declaration, after the handler for the end tag of the element in which the namespace was declared. 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 two 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) 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. 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. NOTES
Note This event is not supported under LibXML. SEE ALSO
xml_set_start_namespace_decl_handler(3). PHP Documentation Group XML_SET_END_NAMESPACE_DECL_HANDLER(3)