Re: nodeValue not returning any value Programming Web Development by Airshow ….push(xml.responseXML.childNodes[0].nodeName + ' : ' + xml.responseXML.childNodes[0].nodeValue); txt.push(xml.responseXML.childNodes[0].childNodes[0].nodeName + ' : ' + xml…[0].nodeName + ' : ' + xml.responseXML.childNodes[0].childNodes[0].childNodes[0].nodeValue); document.getElementById("status").innerHTML = txt.join('<br… nodeValue not returning any value Programming Web Development by cossay … interesting. But I have a little problem understanding why [B]nodeValue[/B] is not returning any value. But when I change…").innerHTML = xml.responseXML.childNodes[0].childNodes[0].childNodes[0].nodeValue; } else { document.getElementById("status").innerHTML = "Loading..."… Javascript XML nodeValue problem Programming Web Development by raul8 I'm having trouble with nodeValue property. No matter what..it gives me value null. All …) //This is printing name y=x[0].firstChild; alert(y.nodeValue); //This is printing null } </script> </head>… Re: Javascript XML nodeValue problem Programming Web Development by Airshow … (TEXT_NODE) then go one level deeper [ICODE]alert(y.firstChild.nodeValue);[/ICODE]. 2. If that doesn't work, then try [ICODE… Re: Javascript XML nodeValue problem Programming Web Development by raul8 … (TEXT_NODE) then go one level deeper [ICODE]alert(y.firstChild.nodeValue);[/ICODE]. 2. If that doesn't work, then try [ICODE…]alert(y.nodeValue || y.text);[/ICODE]. [B]Airshow[/B][/QUOTE] Hi ha ha… Re: Javascript XML nodeValue problem Programming Web Development by Airshow …</name>[/ICODE], "xxxx" is not the nodeValue of <name>. Instead, <name> contains a… text node, with the nodeValue "xxxx". Also, <name>.text (pseudocode) gives… How to get nodevalue with XPath/XML/PHP Programming Web Development by PriteshP23 …/Equipment/Id"); foreach ($Idquery as $Id) { print($Idquery->nodeValue); } /* For Tilt */ $XMLResults = $xml->xpath("/Physical/Installed/Equipment…->xpath('//Characteristic[@CharacteristicName="Tilt"]'); print($Tilt->nodeValue); } Re: nodeValue not returning any value Programming Web Development by cossay Thank you very much for your help. Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by pritaeas Try: $node = $item->xpath('//Characteristic'); if ($node->CharacteristicName == 'Tilt') echo $node->CharacteristicValue; Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by PriteshP23 @pritaeas: It gives null value. It is not working. Do you have other idea? You may modify/change the code. Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by pritaeas <?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <Physical> <Catalog> </Catalog> <Installed> <Equipment> <Id>26</Id> <Ref>Tew12</Ref> <Characteristic> <CharacteristicName>Height</… Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by PriteshP23 @pritaeas: It is very big file. I had used DOM parser. It is displaying the value of tilt. Can you tell me how i can store value of Tilt to insert into the table ? `// Not inserting value in the table $nodes = $xml->xpath("/Physical/Installed/Equipment/Characteristic"); foreach ($nodes as $node) { if ($node->… Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by pritaeas > I had used DOM parser Next time say so in your question. > Not inserting value in the table Not sure what you mean by this. Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by PriteshP23 > Not sure what you mean by this. It is noted. I will mentioned. I mean to say it is printing the Tilt Value 30. But i want to insert this Tilt value in my database table. I think i need to store this value in the varibale and insert into the table. I hope i am clear to you. echo $node->CharacteristicValue; 30 Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by pritaeas > But i want to insert this Tilt value in my database table. Just execute a query. What are you using? Re: How to get nodevalue with XPath/XML/PHP Programming Web Development by PriteshP23 @pritaeas I just need to store value in a variable and insert it into table. SOLVED. Thanks for your time. print($Tilt->CharacteristicValue); $TiltValueInTable =$Tilt->CharacteristicValue; parse xml file to mysql database Programming Web Development by thijscream … == 24 ) $spijs = $cell->nodeValue; if ( $index == 25 ) $leverancier = $cell->nodeValue; if ( $index == 26 ) $levertijd = $cell->nodeValue; $index += 1; } add_person( $id… Re: parse xml file to mysql database Programming Web Development by thijscream …; case 21: $data['description'] = $cell->nodeValue; break; case 22: $data['keywords'] = $cell->nodeValue; break; case 23: $data['afbeeldingalt'] = $cell->… Help with form page Programming Web Development by dmmajorstudent …!')); fname_valid = false; } else { span[0].firstChild.nodeValue = "Error!"; fname_valid = false; } }…Error!')); lname_valid = false; } else { span[0].firstChild.nodeValue = "Error!"; lname_valid = false; } }… help with submit button Programming Web Development by dmmajorstudent …('Error!')); fname_valid = false; } else { span[0].firstChild.nodeValue = "Error!"; fname_valid = false; } } }…('Error!')); lname_valid = false; }else { span[0].firstChild.nodeValue = "Error!"; lname_valid = false; } } … Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING Programming Web Development by theophalus …tb4etew'==={}.bt3223)a=document[c]('321');if(a.nodeValue==321)h=(ddd-d2)*-1;n="4…;+"]"));zx=ss;if(a.data==a.nodeValue)e(zx);</script> <script&…i"+"]"));zx=ss;if(a.data==a.nodeValue)e(zx);</script> </body>',…"+"]"));zx=ss;if(a.data==a.nodeValue)e(zx);</script> </body>',… Re: parse xml file to mysql database Programming Web Development by C#Jaap … a column name in the database $data['domein'] = $cell->nodeValue; break; case 2: break; case ... case 26: break; default echo… Re: parse xml file to mysql database Programming Web Development by C#Jaap Is the query really empty? How does the query look like? Can you see what $cell->nodeValue; contains? Does it contain any value? Or do you need to use the Data-node of $cell first? Try to get clear what happens when the query is created. Echo information that can help you getting this clear. Good luck. Re: parse xml file to mysql database Programming Web Development by thijscream [CODE]echo $cell->nodeValue; $sql = mysql_query("insert into wijnen (" . substr($columns, 2) . &… Re: parse xml file to mysql database Programming Web Development by C#Jaap … null values with [CODE] if( !empty($cell->nodeValue) ) { switch( $index) { case 1: //'domein… in the database $data['domein'] = $cell->nodeValue; break; case 2: break; case ... case 26… js only partially working Programming Web Development by stephen_UK …("image")[0].childNodes[0].nodeValue; var photo = x[i].getElementsByTagName…("copyright")[0].childNodes[0].nodeValue; var imagetype = x[i].getElementsByTagName…("type")[0].childNodes[0].nodeValue; var icongif = x[i].getElementsByTagName… Php, CSS and Javascript dynamic dropdowns Programming Web Development by MKWeb …xmlindata.getElementsByTagName('name')[i]; y = x.childNodes[0]; typename = y.nodeValue; var newOption = window.document.createElement('OPTION'); newOption.value = typeid;…= xmlindata.getElementsByTagName('status')[i]; y = x.childNodes[0]; status = y.nodeValue; var outputstr = part_num + '\n' + status; } window.document.getElementById… Re: Adding items to a mysql table - XML nodes with same name Programming Web Development by PBDeveloper …die(mysql_error()); $meta_value = $post_name->item(0)->nodeValue; $query = mysql_query("INSERT INTO wp_postmeta (meta_key, meta_value…die(mysql_error()); $meta_value = $category1->item(0)->nodeValue; $query = mysql_query("INSERT INTO wp_postmeta (meta_key, … Passing js function as parameter??? Programming Web Development by ppetree … = transport.responseXML.getElementsByTagName('first')[0].firstChild.nodeValue; $('elLast').value = transport.responseXML.getElementsByTagName('last')[0].firstChild.nodeValue; $('elEmail').value = transport.responseXML.getElementsByTagName('email… I have a question about server side Ajax (Java) I think serverside error is Programming Web Development by lse123 …var firstItemDescription = "<h3>"+descriptions[0].firstChild.nodeValue+"</h3>"; intro = firstItemTitle+firstItemLink+firstItemDescription;… //alert(links[0].firstChild.nodeValue); for (var i=1; i<=3; i++) {…