tag:blogger.com,1999:blog-3653745335475875863.post7186447335983178998..comments2023-09-21T20:55:00.915+02:00Comments on A Basketful Of Papayas: Using PHP DOM With XPathThWhttp://www.blogger.com/profile/12009821760062911474noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3653745335475875863.post-16492359401498259862010-04-14T18:50:21.701+02:002010-04-14T18:50:21.701+02:00Thomas,
Great post. I too find that for most task...Thomas,<br /><br />Great post. I too find that for most tasks, I like using DOM over SimpleXML. For me, I prefer to use one interface versus switching between DOM and SimpleXML. DOM can do everything that SimpleXML can do and more. For instance, I can't use SimpleXML to validate against an XML schema document.<br /><br />BTW, I may have to check out your FluentDOM. Looks interesting.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3653745335475875863.post-29574305674861755182010-04-11T01:43:18.917+02:002010-04-11T01:43:18.917+02:00I have FluentDOM for that. :-)I have FluentDOM for that. :-)ThWhttps://www.blogger.com/profile/12009821760062911474noreply@blogger.comtag:blogger.com,1999:blog-3653745335475875863.post-37930963759578991012010-04-11T00:38:41.707+02:002010-04-11T00:38:41.707+02:00Another method is to use QueryPath. One line to lo...Another method is to use QueryPath. One line to load and simple to iterate over. (http://querypath.org/)<br /><br />I respect doing it with DOM objects but I prefer to write less code.Matt Farinahttp://engineeredweb.comnoreply@blogger.comtag:blogger.com,1999:blog-3653745335475875863.post-65743169860985666772010-04-10T21:10:01.501+02:002010-04-10T21:10:01.501+02:00I was using the validation functions of dom a shor...I was using the validation functions of dom a short time ago and i was amazed how complete it was, Maybe i smoked too much javascript over the last months, but the result was pretty clean and it felt right to do it all in dom. <br />After a some tries i even found ways not to end up with a piece of code only a fast refactoringsurgery could save ;))) Dom is not what you want to do all day long, but it's mature enough for 99% of the XML solutions i needed to create ;) <br /><br />SebsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3653745335475875863.post-64199077866246751322010-04-10T20:41:59.387+02:002010-04-10T20:41:59.387+02:00XQuery can be a really cool way to do XML processi...XQuery can be a really cool way to do XML processing with PHP: http://www.ibm.com/developerworks/xml/library/x-zorba/index.htmlWillliam Candillonhttps://www.blogger.com/profile/14253665513810708570noreply@blogger.com