Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2007, 11:41 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Default XML parser in Zend Framework ?

I need for a Zend Framework based application to be able to parse an XML document to retrieve some informations.

I am wondering if there is/not a XML parser included into Zend Framework, i didn't saw any... Only a Zend_DB_XML (which seems to be into incubator now)...

If there is no parser included into Zend Framework then what parser should i used better ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-04-2007, 09:48 AM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 99
Default

LOL, i don't think will be ever a PHP parser into Zend Framework.

Reasons:
- there are lot of options in PHP 5, directly as PHP modules: DOM, SimpleXML, XMLReader and so on, and they would work faster than something built in PHP

Check this tutorial about XML options in PHP5 and speed concerns...

- i don't think ZF should replace everything done before over PHP platform

Personally i am using SimpleXML, because of simplicity, combined with XPath is great to solve lot of problems...

Mmm, this post make me think about adding maybe an additional resource section, for third party tools which are good to be used with ZF, to work together...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-04-2007, 04:19 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Default

Thanks,

Interesting tutorial...

DOM is probably the most powerful but complicated to use, SimpleXML is "simple" and XMLReader even more simple.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-02-2007, 04:23 PM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default

ZendExt will do it: ( Main Page - Zend Extension).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-05-2007, 01:51 AM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 119
Default

if you just need to read an xml file in and want to access it like a multi-dimensional array you can fakey it, by using Zend_Config_Xml...

Not very usefull for writing new xml files and structures tho...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:14 PM.