New XMLParser methods

at 2009-12-17 in Announcements by friebe (0 comments)

In the spirit of adding fluent interface usage to the XP Framework, we added two new method to the xml.parser.XMLParser class - withCallback() and withEncoding() - complementing the setCallback() and setEncoding() methods. This way, you can rewrite your source as follows:

<?php 
// Old
$p= new XMLParser();
$p->setCallback($this);
$p->parse(...);

// New
create(new XMLParser())->withCallback($this)->parse(...);
?>



Subscribe

You can subscribe to the XP framework's news by using RSS syndication.


Categories

News
General
PHP5
Announcements
RFCs
Further reading
Examples
Editorial
EASC
Experiments
Unittests
Databases
5.8-SERIES

Related

Find related articles by a search for «New».