search for: nodevalue

Displaying 18 results from an estimated 18 matches for "nodevalue".

2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...eviousSibling: TAG(1): 'empty_element' childNodes: 0: --- -attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26 +attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26%20%C2%A0 localName: entities namespaceURI: nodeName: entities @@ -309,18 +309,18 @@ nodeType: 1 nodeValue: null prefix: parentNode: TAG(1): 'null' -firstChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%0A' -lastChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%0A' +firstChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%20%C2%A0%0A' +lastChild: TEXT(3): ...
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {
2006 Feb 07
2
Question about Classes.
...for(j=0;j<ei[0].childNodes.length;j++) { if (ei[0].childNodes[j].nodeType != 1) continue try { //this.sdEventInfo[ei[0].childNodes[j].nodeName] = ei[0].childNodes[j].firstChild.nodeValue; //this.options.sdEventInfo.push(ei[0].childNodes[j].firstChild.nodeValue ); var theData = ei[0].childNodes[j].firstChild.nodeValue; } catch (e) { var theData =...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...1%2F%2FEN%22%0A%20%22http%3A%2F%2Fwww%2Ew3%2Eorg%2FTR%2Fxhtml11%2FDTD%2Fxhtml11%2Edtd%22%3E +ignoreWhite: true +loaded: true +status: 0 +xmlDecl: <?xml version="1.0" encoding="UTF-8"?> +--- +attributes: 0: +localName: null +namespaceURI: null +nodeName: null +nodeType: 1 +nodeValue: null +prefix: null +parentNode: undefined +firstChild: TAG(1): 'html' +lastChild: TAG(1): 'html' +nextSibling: undefined +previousSibling: undefined +childNodes: 1: TAG(1): 'html' +--- +attributes: 1: xmlns=http%3A%2F%2Fwww%2Ew3%2Eorg%2F1999%2Fxhtml +localName: html +namesp...
2008 Mar 25
2
responseXML not working on XML file
...all'', onSuccess:parseResponse, onFailure:function(xhrResponse){alert(''nope'');} }); } var parseResponse= function(xhrResponse){ var response=xhrResponse.responseXML; var paramList= response.getElementByTagName(''lastname''); alert(paramList[0].firstChild.nodeValue); } <?xml version="1.0" encoding="iso-8859-1"?> <employees> <employee id="123456"> <lastname>Smith</lastname> <firstname>Edward</firstname> <phone>(415) 333-0235 </phone> <username>esmith</user...
2006 Feb 23
6
prototype ajax + xml response
Hi, I am looking for a solution to use ajax.request object. Return response text will be in xml format and I like to know how to parse that xml information, so that I can put those info into the "span" or "div" tags of my html page. Is there any easy way to parse that xml info using prototype library? Thanks, kevin. -- Posted via http://www.ruby-forum.com/.
2009 Jul 29
9
partials...
I am getting a blank page, no errors, just a blank page. I have 2 files... reports/city_taxes_print.erb reports/_city_taxes_print.erb and my method is city_taxes_print and after getting variables from the controller, my erb file which is fairly basic... <% # City of Scottsdale @taxauthids = [ "32", "40" ] @report_title = "Scottsdale Sales Tax Detail Report for
2006 Mar 17
6
Updated the xml code to be more object-oriented
...es && node.attributes.length > 0) || (node.hasChildNodes() && node.childNodes[0].nodeType == 1)) { var localHash = {}; if (node.attributes && node.attributes.length >= 1) { $A(node.attributes).each(function (attr) { localHash[attr.nodeName] = [attr.nodeValue]; }); } $A(node.childNodes).each(function (node) { this._subNodeToHash(localHash, node); }.bindAsEventListener(this)); $H(localHash).each( function (pair) { if (localHash[pair[0]].length == 1) { localHash[pair[0]] = localHash[pair[0]][0]; } }); return localHash; } els...
2006 Mar 23
4
XML parser fixed
...p; (node.childNodes[0].nodeType == 1 || node.childNodes[0].nodeType == 7))) { var localHash = {}; if (node.attributes && node.attributes.length >= 1) { $A(node.attributes).each(function (attr) { localHash[attr.nodeName] = [attr.nodeValue]; }); } if (node.hasChildNodes() && (node.childNodes[0].nodeType == 1 || node.childNodes[0].nodeType == 7)) { $A(node.childNodes).each(function (node) { this._subNodeToHash(localHash, node); }.bind...
2008 Jan 19
1
Set Return Type XML in Prototype
...handle this script''); } } function getmessage() { alert(xmlDoc.getElementsByTagName(''title'').length); var x=xmlDoc.getElementsByTagName(''title''); for (i=0;i<x.length;i++) { alert("Title [" + i + "] :" + x[i].childNodes[0].nodeValue); } var x=xmlDoc.getElementsByTagName("book"); alert(x.length); for(i=0;i<x.length;i++) { var attlist=x.item(i).attributes; var att=attlist.getNamedItem("category"); alert(att.value); } } PHP code: <?php header("Content-Type: application/text; cha...
2006 Mar 10
3
css question
I''m doing this ''partial'' to do some ajax auto_complete <ul class="placements"> <% for client in @clients do -%> <li class="placements"> <div class="clwholename"><%=h client.clwholename %></div> <div class="id><span class="informal"><%= client.id
2010 Oct 08
7
[PATCH] Replace pyxml/xmlproc-based XML validator with lxml based one.
...return -1 - - def dom2sax(self, dom, app): - """ - Take a dom tree and tarverse it, - issuing SAX calls to app. - """ - for child in dom.childNodes: - if child.nodeType == child.TEXT_NODE: - data = child.nodeValue - app.handle_data(data, 0, len(data)) - else: - app.handle_start_tag( - child.nodeName, - self.attrs_to_dict(child.attributes)) - self.dom2sax(child, app) - app.handle_end_tag(child.nodeName...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...unction(element) { }).flatten().join(''); }; -Element.collectTextNodesIgnoreClass = function(element, className) { +Element.collectTextNodesIgnoreClass = function(element, className) { return $A($(element).childNodes).collect( function(node) { return (node.nodeType==3 ? node.nodeValue : ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? @@ -70,25 +70,20 @@ var Effect = { Transitions: { linear: Prototype.K, sinoidal: function(pos) { - return (-Math.cos(pos*Math.PI)/2) + 0.5; + return (-Math.cos(pos*Math.PI)/2) + .5; },...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server
2016 Mar 04
0
Wine release 1.9.5
...lementation to ntdll. user32: Always enable owner window in EndDialog. user32: Ignore WM_CHILDACTIVATE on disabled windows in DefMDIChildProc. mshtml: Always return false in IHTMLDOMAttribute2::get_expando for detached attributes. mshtml: Added support for IHTMLDOMAttribute::nodeValue property on detached attributes. user32: Use proper window as dialog owner. user32/tests: Added more dialog owner tests. user32: Removed unused owner argument. Jactry Zeng (1): kernel32/tests: Reset current directory of current process. Jens Reyer (2): loader: Fix ma...
2011 Dec 02
0
Wine release 1.3.34
...support for SAXReader. msxml3: Add a couple of tests for unusual behaviour of ISupporterrorInfo. msxml3: Fixed ISupportErrorInfo for IXMLDOMNamedNodeMap. msxml3: Some refcount tests to show details of internal DOM representation. msxml3: Use common helper for IXMLDOMText_get_nodeValue(). msxml3: Place nodeValue() test data in a table. msxml3: Fix get_namespaceURI() for document nodes. shlwapi: Partially implement SHRegCreateUSKeyW. po: Updated Russian translation. Piotr Caban (16): msvcrt: Keep FILE critical section initialized after closing file....
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...ntation Merge branch 'master' into xml Add swfdec_as_array_get_value function XML work. Make most XMLNode properties be native. Name XMLNode's properties before XML's in trace_properties.as Merge branch 'master' into xml Make XMLNode's nodeValue, nodeName, prefix and localName properties work right Make XMLNode's type property unsigned, add native get function More XML work Add parentNode, previous- and nextSibling properties to XMLNode Fix an error in previousSibling. Add firstChild and lastChild properties....
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...0 +local.e.lastChild = object __proto__ (hp) = _global.XMLNode.prototype constructor (hp) = _global.XMLNode local.e.localName = string : "element" @@ -111,7 +111,7 @@ local.e.nextSibling = null local.e.nodeName = string : "element" local.e.nodeType = number : 1 local.e.nodeValue = null -local.e.parentNode = local.d +local.e.parentNode = object __constructor__ = _global.XML __proto__ (hp) = _global.XML.prototype constructor = _global.XML diff --git a/test/trace/xml-properties2-6.swf b/test/trace/xml-properties2-6.swf index 03e0522..a358c58 100644 Binary files a/tes...