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;
>
>
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
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
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
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
5 matches
Mail list logo