stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


RSS native parsing in the next Firebird







RSS native parsing in the next Firebird

RSS native parsing in the next Firebird 02/10/2004 02:42 AM

This is new to me. I was checking out the nightly builds of Firebird 0.8 betas (windows and linux, mac< /a>) and they' ve got an rss button and panel that parses RSS, with titles linking to the main window. Slick, but they need to let you track which ones have new/old items.

update: It turns out I'm actually a dumbass. I installed this RSS extension so long ago I forgot about it, and because I never saw it show up in any menu, I figured it never "took" on my Firebird install. Then when I had the new nightly build the toolbars were out of whack on first run so I went to customize them and saw the RSS button for the first time, and assumed it came with Firebird 0.8. My bad.




This is a GrokNews Entry: (what is grok?)





Similar Items

RSS native parsing in the next Firebird

Grok Headline matches for RSS native parsing in the next Firebird

Go native with Java Native Interface


Go native with Java Native Interface 03/15/2003 02:55 AM
CNET Mar 15 2003 1:24AM ET

Parsing RSS At All Costs


Parsing RSS At All Costs 01/22/2003 07:41 PM
In his second Dive into XML column, Mark Pilgrim describes his parse-at-all-costs parser of ill-formed RSS feeds, using Python's sgmllib.

More XML: Parsing with Evolt.org


More XML: Parsing with Evolt.org 08/14/2002 08:16 AM

Parsing XML with Perl


Parsing XML with Perl 07/21/2002 10:36 PM
CNET Jul 21 2002 10:12PM ET

Parsing OWL in RDF/XML Published


Parsing OWL in RDF/XML Published 01/22/2004 03:25 AM
2004-01-21: The Web Ontology Working Group has released Parsing OWL in RDF/XML as a Working Group Note. The OWL language is used to publish and share sets of terms called ontologies, supporting advanced Web search, software agents and knowledge management. This document describes a strategy for OWL-RDF parsers. Read about the Semantic Web. (News archive)

Article on Parsing RSS


Article on Parsing RSS 11/18/2002 12:58 PM
I have put up an article on how I parse RSS files. Also, in the same article I provide my RSS parser as a free download. I'd appreciate any feedback on it. The WAI compliancy will have to wait another day. One thing the Bobby accessibility validator doesn't like about my site is the links below every new post. The "permalink" and "comments" are specifically what it doesn't like. This is because the same text is repeated for each news post, although each one points to something (slightly) different. I don't want to get rid of these links, so I'm looking for a suitable (perhaps graphical) alternative.

BitFlux Blog: Parsing Bad XML in PHP 5.1


BitFlux Blog: Parsing Bad XML in PHP 5.1 08/19/2004 10:10 AM
In a new note from the BitFlux blog, Christian Stocker has information about the latest patch comitted to the PHP 5.1 branch that allows you to parse not well-formed XML documents and adds the missing elements, eg. missing closing tags.

Functional XML Parsing Framework 5.1


Functional XML Parsing Framework 5.1 09/16/2004 09:22 PM
SAX/DOM/SXML parsers with support for XML namespaces and validation.

Features: Non-Extractive Parsing for XML


Features: Non-Extractive Parsing for XML 05/19/2004 07:15 PM
Changing the way XML parsers are written can make parsing more efficient and more flexible.

Parsing the News.com RSS feed with PHP


Parsing the News.com RSS feed with PHP 12/11/2003 02:48 AM
CNET Dec 11 2003 2:44AM ET

Pull Parsing in C# and Java


Pull Parsing in C# and Java 05/23/2002 10:39 PM

Parsing a Querystring With Perl


Parsing a Querystring With Perl 12/19/2002 07:40 PM
Stickysauce Dec 19 2002 6:46PM ET

Independently Parsing Perl


Independently Parsing Perl 06/17/2005 04:30 PM
Stodgy, boring languages have great editors. What's keeping Perl from refactoring support, perfect syntax highlighting, and other advanced transformation techniques? It's really difficult to parse Perl. Fortunately, Adam Kennedy's PPI project provides a standalone Perl parser that operates correctly on all but 28 of the 38,000 CPAN modules. Here's how it works and what you can do with it.

Python parsing module


Python parsing module 12/18/2003 01:00 PM
pyParsing Python library - version 1.0.1 released

dtddoc step 1: Parsing a DTD


dtddoc step 1: Parsing a DTD 10/02/2002 09:35 AM
Our quest to build a better automatic DTD documentation tool begins with a quick look at some of the available DTD parsers for Java, Perl, and PHP. By Michael Classen. 1002

Simple XML parsing with SAX and DOM
(OnJava.com)


Simple XML parsing with SAX and DOM
(OnJava.com)
07/01/2002 08:28 AM

On IBM and native XML


On IBM and native XML 04/06/2005 04:46 AM
Comment Abusing the natives

IBM to Add Native XML for DB2


IBM to Add Native XML for DB2 01/06/2005 02:43 PM
Internet News Jan 6 2005 6:40PM GMT

Firebird


Firebird 06/14/2004 11:37 AM

As will surprise nobody who knows me, the shininess of the Firebird database server had been blinding me since I posted that interview yesterday. It was calling my name, so I just had to download and install it.

I'm extremely happy with what I found — it's a free database server with a ton of features you're not going to find in MySQL. There's a self-extracting Windows installer, it installs itself as a service, and it even gives you a little Control Panel applet to manage it.

It has support for foreign keys, views, triggers, and stored procedures (with what looks like a very rich procedure language). There's full PHP support through the ibase_* set of functions and it's supported in the ADODB database abstraction library.

There's not much in the way of free clients. It comes with a command line client, of course, but I didn't find any free graphical clients. There's this one and this one, but they run from $79 to $250.

I still don't quite have a handle on the genesis of the project. I gather it came out of Borland's InterBase product, but I'm not sure if InterBase continues, or if it was abandoned (there's a Windows 2003 version of it, so it's probably still alive in some form). Firebird (and InterBase) penetration appears to be most heavy in Europe. It's commonly used with the Delphi language (another Borland product).

In browsing some of the message boards about Firebird, I got the same...vibe that I got about MySQL five years or so ago. There's a lot of buzz, and there seems to be a lot of transfer from MySQL to Firebird. The talk all seems to be exceedingly positive.

So why would you use MySQL over Firebird given that the latter has support for so many more features and is just as free? I guess I'm a little more confident with MySQL's battle-worthiness, given that it's been around the block so many times. (But by the same token, InterBase wasn't in beta or anything — that was a production quality database server.)

So am I ready to switch all my stuff over to Firebird? No...not yet. But I don't think I'll look at MySQL quite the same way ever again. This seems like a very attractive option.

Click here to comment on this entry


"Firebird"


"Firebird" 02/19/2004 03:22 PM

Parsing XML documents with Perl's
XML::Simple


Parsing XML documents with Perl's
XML::Simple
09/20/2004 12:46 AM
CNET Sep 20 2004 4:09AM GMT

Re: Internet Explorer URL parsing
vulnerability


Re: Internet Explorer URL parsing
vulnerability
12/09/2003 03:45 PM
soulshok_at_hippie.dk (Dec 09 2003)

WPkontakt message parsing error


WPkontakt message parsing error 12/24/2004 12:36 PM
Jaroslaw Sajko (Dec 23 2004)

Internet Explorer URL parsing
vulnerability


Internet Explorer URL parsing
vulnerability
12/09/2003 01:22 PM
bugtraq_at_zapthedingbat.com (Dec 09 2003)

RE: Internet Explorer URL parsing
vulnerability


RE: Internet Explorer URL parsing
vulnerability
12/10/2003 01:52 PM
http-equiv_at_excite.com (Dec 09 2003)

Liberal XML parsing related to
personality?


Liberal XML parsing related to
personality?
02/12/2004 07:41 PM
The heat of the discussion on liberal XML parsing has subsided, so this is actually a little late. That's because I wasn't sure if I should post this. But a post by Dave Winer today convinced me to post it anyway. Let me just say up front that I could be completely wrong. ?

High Speed XML Parsing is Not Intuitive


High Speed XML Parsing is Not Intuitive 02/11/2004 03:58 AM
For a PHP weblog, there haven't been many PHP articles or links recently. This is because I feel most recent PHP articles I read have nothing fresh to say, repeating material I linked to 2 or 3 years ago. Perhaps I'm getting jaded. So to keep things fresh, here's a new article, mostly original, and hopefully of some interest to everyone!

Last year, Tim Bray, one of the co-authors of the XML spec, mentioned that he used Perl regular expressions to parse XML.

Now here's the dirty secret; most of it is machine-generated XML, and in most cases, I use the perl regexp engine to read and process it.

I was struck by this because I would have thought XPath or SAX would provide better performance as they are APIs tuned specifically for XML.

I decided to do some benchmarks to determine which techniques were better. I also wanted a realistic test, so I benchmarked parsing the RSS feed of this web-site, searching for the contents of all title tags, and returning the contents as an array. The RSS file is from Nov 2003 (yes i did this benchmark that long ago), and is about 20K and has 12 title tags, so the returned array will have 12 title strings.

The techniques used were:

1. Regular expression: preg_match_all('/<title>([^<]*)/',$rss,$titles_arr))

2. Explode('<title>', $rss) then strip the matching </title> tag using strpos() and substr().

3. XPath, using $title_nodes = $ctx->xpath_eval("//title");

4. SAX, wrote an element handler function that matched and processed the title tag.

5. DOM, using $titles = $dom->get_elements_by_tagname('title'). Intuitively, this should have been the slowest, as the whole tree is generated.

Results

Here are the timings for processing the RSS file 1000 times. Faster is better.

            seconds       Relative 
                          to REGEX
REGEX       0.1080          1.00
EXPLODE     0.1696          1.57
DOM         6.3212         58.53
XPATH       8.3417         77.24
SAX        10.0851         93.38

Conclusion

Intutively, I would have thought that XPath would be the fastest as XPath expressions can be compiled and tuned for XML. But the best performance was achieved using regular expressions, which is what Tim is using.

It appears that the DOM, SAX and XPath libraries remain immature (compared to the Perl-compatible regex library) and are not highly optimized. Strangely enough, DOM performance is better than XPath and SAX! Perhaps someone else can explain why.

If anyone is interested, i can post the source.

Test platform: Windows 2000, PHP 4.3.3. I also tested on Linux, PHP 4.3.2, with similar results.


Introduction to Event-Driven XML Parsing


Introduction to Event-Driven XML Parsing 02/10/2004 02:49 AM
Apple documents the new-in-Panther NSXMLParser class.

S-exp-based XML parsing/query/conversion


S-exp-based XML parsing/query/conversion 09/16/2004 07:33 PM
SSAX-SXML Release 5.1

Making the News: Parsing RSS Feeds With
PHP


Making the News: Parsing RSS Feeds With
PHP
11/13/2002 08:59 AM

dtddoc step 1: Parsing a DTD
(WebReference.com)


dtddoc step 1: Parsing a DTD
(WebReference.com)
10/08/2002 09:14 AM

The State of the Union Parsing Tool


The State of the Union Parsing Tool 02/05/2005 09:55 PM

style.org/stateoftheunion/parse
track this site | 3 links


Warcraft III Replay Parsing Library


Warcraft III Replay Parsing Library 08/09/2004 11:30 AM
W3RepLib 0.9 beta released!

URL Parsing Bug in IE Invites Phishing
Attacks


URL Parsing Bug in IE Invites Phishing
Attacks
06/11/2004 09:09 PM
The bug, which affects fully patched versions of IE, lets malicious sites assume the privileges of more trusted zones.

BitFlux Blog: Parsing Bad XML - Part 2


BitFlux Blog: Parsing Bad XML - Part 2 08/20/2004 08:31 AM
In response to his introduction of the non-well-formed XML patch the other day, Christian Stocker has a new posting with a bit of a rebuttal on the subject.

Parsing XML documents with Perl
(Builder.com)


Parsing XML documents with Perl
(Builder.com)
07/18/2002 07:34 PM

Flaw in Microsoft JPEG Parsing


Flaw in Microsoft JPEG Parsing 09/14/2004 06:12 PM

Boost performance when parsing (Java
Pro)


Boost performance when parsing (Java
Pro)
09/12/2002 07:48 AM

Eclipse goes native


Eclipse goes native 06/25/2004 04:59 PM
- Redhat frees Eclipse from the VM, via Sc ott Delap
Grok Description matches for RSS native parsing in the next Firebird
GrokA matches for RSS native parsing in the next Firebird

Firefox and RSS; Question about Closing
Tabs


Firefox and RSS; Question about Closing
Tabs
09/17/2004 12:41 PM
The new version of Mozilla Firefox is out and supports RSS. Don Park calls the RSS support "crappy and useless." Question: One of my favorite features in Safari for OS X is the little circled X in each tab, so you can close it by clicking on the actual tab instead of having to go all the way to the right side of the window in Firefox to click the close-the-tab X there. Is there any Firefox add-on that makes it do the same thing?

Request for Feature: Firefox: See all
tabs


Request for Feature: Firefox: See all
tabs
09/17/2004 12:28 PM
The multiple tab feature of Firefox (and Opera before it) is enough of a reason to drop Microsoft Internet Explorer ... which, apparently, people are doing at an increased pace, although IE still has something like 93% of the market. But I currently have 31 instances of Firefox open, each with 1-4 tabs. So, I'd like an extension that lists all the open tabs in all the open instances. My dream extension would let me jump to any of those tabs. It would also let me close them or close multiple instances with a single click. And it would give...

Spread Firefox Download Counter
Relaunched, Firefox Downloads Top 44
Million


Spread Firefox Download Counter
Relaunched, Firefox Downloads Top 44
Million
04/11/2005 11:59 PM

XP SP2: Download and Save For
Installation on Multiple Computers


XP SP2: Download and Save For
Installation on Multiple Computers
08/10/2004 12:00 AM
Tech-Recipes Aug 10 2004 3:13AM GMT

To Save Yourself a Trip, Download Pesky
Forms


To Save Yourself a Trip, Download Pesky
Forms
12/25/2003 02:02 AM
New York Times Dec 25 2003 0:16AM ET

Firefox beast million-download deadline


Firefox beast million-download deadline 09/27/2004 06:50 AM
CNET Sep 27 2004 10:08AM GMT

FireFox surpasses million-download goal


FireFox surpasses million-download goal 09/21/2004 10:36 AM

Firefox beats million-download deadline


Firefox beats million-download deadline 09/20/2004 06:35 PM
With days to spare, open-source browser meets 10-day goal of 1 million downloads.

Firefox smashes 1 million download
deadline


Firefox smashes 1 million download
deadline
09/21/2004 09:08 PM
Techzonez Sep 22 2004 1:06AM GMT

Essential Firefox extensions you should
download today - part 4


Essential Firefox extensions you should
download today - part 4
04/15/2005 03:16 PM
If the last three days' worth of Firefox extensions have only whetted your appetite for more, we're here for one last installment to feed that hunger.

Essential Firefox extensions you should
download today - part 2


Essential Firefox extensions you should
download today - part 2
04/13/2005 02:37 PM
Yesterday we look at three useful Firefox extensions -- small applications that add functionality to Mozilla's Web browser. Here are a few more favorites.

Essential Firefox extensions you should
download today - part 1


Essential Firefox extensions you should
download today - part 1
04/12/2005 02:48 PM
The Mozilla Foundation's Firefox browser is without a doubt an open source software success story. One of its strengths is the active development community that works to expand and improve the browser's functionality through the development of Firefox extensions -- small applications that add functionality to Firefox. Here are a few of my favorite extensions, all tested with Firefox 1.0.1 on Windows XP and Mandrakelinux.

Essential Firefox extensions you should
download today - part 3


Essential Firefox extensions you should
download today - part 3
04/14/2005 04:55 PM
Following the first and second parts of this series, here are a couple more worthwhile Firefox extensions.

Mozilla / Firefox Download Dialog Source
Spoofing


Mozilla / Firefox Download Dialog Source
Spoofing
01/04/2005 11:22 AM
Secunia Advisory: SA13599 Critical: Less critical Impact: Spoofing Where: From remote Solution Status: Unpatched Software: Mozilla 1.7.x, Mozilla Firefox 1.x Secunia Research has discovered a vulnerability in Mozilla / Mozilla Firefox, which can be exploited by malicious people to spoof the source displayed in the Download Dialog box. The problem is that long sub-domains and paths aren’t displayed correctly, which therefore can be exploited to obfuscate what is being displayed in the source field of…

Direct and Related Links for 'Mozilla / Firefox Download Dialog Source Spoofing'


Save time, save effort, save money


Save time, save effort, save money 05/28/2004 04:57 PM
CNET Asia May 28 2004 9:16PM GMT

Mozilla / Mozilla Firefox Download
Dialog Source Spoofing


Mozilla / Mozilla Firefox Download
Dialog Source Spoofing
01/04/2005 11:22 AM
Description: Secunia Research has discovered a vulnerability in Mozilla / Mozilla Firefox, which can be exploited by malicious people to spoof the source displayed in the Download Dialog box. The problem is that long sub-domains and paths aren’t displayed correctly, which therefore can be exploited to obfuscate what is being displayed in the source field of the Download Dialog box. The vulnerability has been confirmed in Mozilla 1.7.3 for Linux, Mozilla 1.7.5 for Windows, and…

Direct and Related Links for 'Mozilla / Mozilla Firefox Download Dialog Source Spoofing'


Vulns: WebCT Campus Edition HTML Tags
HTML Injection Vulnerabilities


Vulns: WebCT Campus Edition HTML Tags
HTML Injection Vulnerabilities
05/20/2004 05:40 PM
SecurityFocus May 20 2004 8:47PM GMT

Vulns: Google Toolbar About.HTML HTML
Injection Vulnerability


Vulns: Google Toolbar About.HTML HTML
Injection Vulnerability
09/20/2004 03:18 PM
SecurityFocus Sep 20 2004 6:14PM GMT

Vulns: Horde IMP HTML+TIME HTML
Injection Vulnerability


Vulns: Horde IMP HTML+TIME HTML
Injection Vulnerability
08/06/2004 04:29 PM
SecurityFocus Aug 6 2004 8:16PM GMT

Blake Ross on Firefox Developer
Recruitment and Why Firefox Will Never
Grow Up


Blake Ross on Firefox Developer
Recruitment and Why Firefox Will Never
Grow Up
02/01/2005 10:05 PM

America's Man in the White House
Continues to Lie Like a Thief and Our
Soldiers Continue to Die: When Will the
Spoiled, Lying, Rich Kid Be Held
Accountable? Save the Nation. Save Our
Soldiers. Impeach and Prosecute Bush and
Cheney for High Crimes


America's Man in the White House
Continues to Lie Like a Thief and Our
Soldiers Continue to Die: When Will the
Spoiled, Lying, Rich Kid Be Held
Accountable? Save the Nation. Save Our
Soldiers. Impeach and Prosecute Bush and
Cheney for High Crimes
11/02/2003 06:30 AM

story.news.yahoo.com/news?tmpl=story&cid=540&e=1&u=/ap/20031101/ap_ on_re_mi_ea/iraq
track this site | 3 links


CSS Tabs


CSS Tabs 07/02/2004 04:29 PM
If you've ever built any sort of web application, you've probably found yourself using tabs to create some part of the interface. I'm no Eric Meyer, but I came up with a pretty handy way to do that this afternoon. Read on to see my example, and if you have any cool CSS tricks we should know about, post a comment!

Continue reading "CSS Tabs"

C lick here to comment on this entry


adbar for Firefox: Opera's least popular
feature comes to Firefox!


adbar for Firefox: Opera's least popular
feature comes to Firefox!
08/18/2004 06:48 AM
adbar for firefox .. Adbar

squarefree.com/extensions/adbar
track this site | 3 links


The History of Mozilla Firefox: From
Phoenix, to Firebird, to Firefox


The History of Mozilla Firefox: From
Phoenix, to Firebird, to Firefox
03/31/2005 07:27 AM

Beer and Tabs


Beer and Tabs 03/13/2003 10:21 AM
A build of Safari has been leaked into the wild, and, guess what, it has tabs! Although not fully implemented it seems to work quite well. { via slash dot }

Picking up the Tabs


Picking up the Tabs 01/10/2003 01:43 AM
Apple's Safari web browser has re-ignited the whole Tabbed Browsing Considered Harmful debate. I like tabbed browsing because I tend...

Damn you, where is my tabs?


Damn you, where is my tabs? 04/09/2004 04:03 PM
Google, what did you do to my tabs? We don’t appreciate drastic changes like this without being asked, damn it!...

Number Your Tabs


Number Your Tabs 09/17/2004 01:57 PM
One of the keyboard shortcuts to switch tabs is to use CTRL 1-9 to switch between open tabs. To solve the problem of figuring out which tab is 6 and which is 7, Derek Featherstone as created an easy to use css hack that numbers the tabs in Firefox:

HTML Tip: Problems With Nested HTML Tags


HTML Tip: Problems With Nested HTML Tags 11/30/2002 12:30 AM
Net Mechanic Nov 29 2002 11:13PM ET

Mozilla Firefox Reaches 1.0PR, Still
Named Firefox


Mozilla Firefox Reaches 1.0PR, Still
Named Firefox
09/14/2004 02:50 PM

RSS native parsing in the next Firebird

The following phrases have been identified by the grok system as matching this entry: "save all tabs" html download firefox offline

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Does CBS think we're
that stupid?

Everything old is
new again

Electronic delivery
ain't no record
store

iChat as phone
Betting on the
future of music

An American
embarrassment

MySQL Crash Course,
Part 3

HardCore Web Content
Management v4.2
released

KTML Lite 3.1.6 -
Demonstrating the
power of online HTML
visual editing

PHP Class 'IP to
Country' released

eWeek: Firebird
Frenzy Erupts

Tiki 1.8 -Polaris-
released

Synchronize MySQL
Data Using SQLyog
Job Agent

MySQL 5.0.0. ALPHA
Has Been Released

Another step closer
to PHP5 - PHP
4.3.5RC2 now
released!

PaWS Tickets Now On
Sale

Current Server Load
Other News: Cable
Modem Hacking

Other News: Voting
Test Flunked

Other News: E-Voting
System Shutdown

Other News:
Microsoft-Disney
Deal

Other News: Jobs for
Disney?

Other News: Alpine's
iPod-Ready

Other News:
Bluesnarfing

Notes and Tips:
Queries

Notes and Tips: AOL
Chat Needs XP

Notes and Tips:
iPhoto Sharing

Notes and Tips:
iBook Screen
Defects?

Beta: Xcatalog 6.2
beta 1

Announcement: Bravo
II Disc Publisher

Update: PhotoKit
1.2.1

Update: DiscBlaze
3.0.2

Update: EyeTV 1.3.2
Update: oXygen 3.1
New: YAAC 1.0
New: FinFlow 1.0
New: EditiX
New: Gefen SDI to
DVI Adapter

Report: QuarkXPress
Report: FileMaker
Server

Report: Canadian Tax
Software

Report: Safari 1.2
Report: ISPs
Review of Sony
Ericsson's new Z600
cellphone

Preview of the Nikon
D70

Rugged's semi-rugged
laptop

Another Sony
Ericsson P900 review

Nokia 7600 review
Super Bowl watching
TiVo owners not
happy being tracked

ThinkPad X40 coming
out next week

what is grok?