Re: [PHP] XML DOM

2010-07-21 Thread Benjamin Hawkes-Lewis
On 21 Jul 2010, at 19:32, Ben Miller wrote: > Problem: > > If street2 (or any other field) has no value, PHP is outputting the XML node > as , which is producing a JS error when I try to call: > > .. > > street2 = x[i].getElementsByTagName("street2")[0].childNodes[0].nodeValue; > >

Re: [PHP] XML DOM

2003-11-03 Thread Burhan Khalid
Ian Williams wrote: I have an XML document as a string $strXml, that looks a little like this: 1 Bob Rover 2 Fred Fido What's the best way to grab a single value from this document? In the past (in VB), I have loaded the XML int

Re: [PHP] XML dom encode

2002-10-04 Thread Tom Rogers
Hi, Friday, October 4, 2002, 10:14:31 PM, you wrote: DÖJ> header("Content-Type: application/xml"); DÖJ> //query database records DÖJ> $connection = mysql_connect("localhost", "user", "pass") or die("can't connect"); DÖJ> mysql_select_db("webbish"); DÖJ> $query = "SELECT id, title, artist F

Re: [PHP] xml dom support

2002-01-11 Thread Henning Sprang
Sandeep Murphy wrote: > hi, > > I am running PHPtriad on a win2k machine... when I run phpinfo() it > displays " XMLACTIVE" this means that the standart, expat based xml support ist active >but I keep getting an error "Fatal error: Call to > undefined function: xmldoc() in C:\apache\htd

Re: [PHP] XML-DOM

2001-02-05 Thread Peter Sabaini
On Mon, Feb 05, 2001 at 02:06:13PM +0100, Thomas Brusa wrote: > hello > I'm trying to parse and change a loaded xml-file using the DOM module. > I need to remove certain nodes and append new ones. > Is it really true that you can't remove a childnode > while working with dom. > in perl this woul