OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
XML parser class for php, available from the GN
This page's ID:
10853
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Emperor, I have to open this to the public: [url=http://www.wapod.com/~ini/XMLparser.zip]http://www.wapod.com/~ini/XMLparser.zip[/url] (4k) There's the class, a definition file for handlers (special formatting of some tags) and a demo. When using this: - always put your work files at the same level as the "includes" folder - don't rename the "icnludes" folder All custom handlers should do in the "includes/XMLhandlers.php" file, like date formatting, database queries, etc.. based on XML tags and their contents. There are two great misses I should correct for next version: a) There is no way to specify several handlers and formatting directives for the same tag name, when it's used in several nodes - say you got two different "title" tags in your doc, no way to separate them. Of course, well formatted XML shouldn't involve two different tags of the same name, but it does... b) There are no handlers for attributes, although attributes are detected and handlers will easilly be added. The next version will be up soon, and in the meantime, this allows a lot of XML processing work in very easy, short and simple php scripts. And it's 4ks. Please report any issue or feature request, I'd be glad to improve it to the max. [This message has been edited by InI (edited 11-11-2002).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »