Click to See Complete Forum and Search --> : To All, but more specifically Grizzly and Galen
Nephalim
06-13-2002, 10:46 AM
As you may have read (http://www.sharkyforums.com/showthread.php?s=&threadid=136754), I've run into a problem with coding my PHP/XML application. Apparently I'd have to use ASP to get what I want done... something I'm not particularly interested in doing. So, I am trying to convince myself to get up off of my butt and write an XML DOM API (LOL) using PHP. My question is, how (or where can I find information) might I write code in PHP that will allow the programmer to use the same sort of functionality found in DHTML's DOM? In other words, how do I write PHP functions that would allow the programmer to write something like (though not necessarily exactly): document.getElementsByTagName('parent').childNodes(1).id.val ue ??? Perhaps you can direct me to a forum that specializes in more advancd programming structures such as this... to be perfectly honest, I'm getting rather fed up of running into dead ends,bad code and no answers. Sorry for the rant. :D
Grizzly
06-13-2002, 01:16 PM
Nephalim - I'd be surprised if you didn't already come across this article yourself...but I just thought I'd offer this link:
http://www.devshed.com/Server_Side/XML/XMLwithPHP/XMLwithPHP2/page1.html
It *appears* to address your exact situation, and gives great examples on how to do it.
I've personally never processed XML w/ PHP before, I've only done it with Cold Fusion, with a little help from Java. So I can't offer any real "personal experience" advice for your situation, but either way, I hope this is helpful, and good luck with it.
Nephalim
06-14-2002, 10:30 PM
Holy beast! Far and wide I have searched, and even at Developer Shed, however never did I find a scrap such as this delectible tidbit. Never fear for the great Grizzly did appear! I'd all but given up on the situation before I read your post. I will read the rest of the article and I'll take your luck as you have presented it. Gracious thanks.