Parser Class Snippets


10 November, 2014   

Easy way to parses RSS into an array

28 October, 2014   

Quick and simple example to parses RSS into an array

Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...

How to serve configuration settings from a config.ini file

Example source code for function pointer to member function of class

C++ code snippet for function pointer to member function of class

14 May, 2014   

Html Code example for hCalendar

To create the formatter paste this code into a new file and name it sfWidgetFormSchemaFormatterDefList.class.php. I saved it in /lib but it also makes sense to put it in /lib/form, depending on your personal preference.

Run the script to test whether you have the XMLHTTP Request object installed that comes with any version of the Microsoft XML Parser (MSXML).

Run the script to test whether you have the XMLHTTP Request object installed that comes with any version of the Microsoft XML Parser (MSXML).

30 January, 2011   

Applying Even/Odd Classes

16 February, 2011   

HTML5 Article Structure with hNews

HTML5 code for Article Structure with hNews

09 November, 2011   

How to set style of borders. here shown an example.

18 January, 2011   

Now you can write IE specific styles in a regular stylesheet, by prefacing the CSS selectors with body.

11 July, 2013   

Help manage mysql database common task

15 December, 2011   

An Example Java Code for Composition with public objects

11 September, 2011   

This is a minimal apache ant build.xml file that will quickly do all the things that you will generally want to do, including compiling and building a simple Java project to class files and jars. It provides targets to compile the class files and jars and to run the main class. The fields marked "My Project Name Here" and "My Main...

Automatically Discover Document Links And Apply Class

Code snippet to remove class after delay in jQuery.