xmljs-users Mailing List for xml for SCRIPT (Page 8)
Brought to you by:
djoham,
witchhunter
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(9) |
Mar
(20) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
(14) |
Aug
(14) |
Sep
(10) |
Oct
(5) |
Nov
(2) |
Dec
(11) |
2005 |
Jan
(12) |
Feb
(4) |
Mar
(3) |
Apr
(5) |
May
|
Jun
|
Jul
(2) |
Aug
(12) |
Sep
|
Oct
|
Nov
(1) |
Dec
(4) |
2006 |
Jan
(2) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
|
Dec
(8) |
2007 |
Jan
|
Feb
(2) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(8) |
Nov
|
Dec
(2) |
2008 |
Jan
(4) |
Feb
|
Mar
|
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
2009 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(4) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(2) |
Jun
(2) |
Jul
(5) |
Aug
(2) |
Sep
(1) |
Oct
(2) |
Nov
(1) |
Dec
(2) |
2011 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(2) |
May
(4) |
Jun
(4) |
Jul
(5) |
Aug
(5) |
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
|
2012 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(6) |
2014 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
|
Feb
|
Mar
(5) |
Apr
(3) |
May
(5) |
Jun
(8) |
Jul
(3) |
Aug
(14) |
Sep
(22) |
Oct
(9) |
Nov
|
Dec
(1) |
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tun L. <ch...@si...> - 2004-08-02 02:50:37
|
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" = "http://www.w3.org/TR/html4/strict.dtd">=0A= <html>=0A= <head>=0A= <title></title>=0A= <script>=0A= var arrTags =3D new Array();=0A= var uarrTags =3D new Array();=0A= var strContent =3D "";=0A= var ie =3D (typeof window.ActiveXObject !=3D 'undefined');=0A= var moz =3D (typeof document.implementation !=3D 'undefined') && =0A= (typeof document.implementation.createDocument !=3D 'undefined');=0A= var xmlDoc; =0A= function importXML(file) {=0A= if (moz) { =0A= xmlDoc =3D document.implementation.createDocument("", "doc", null);=0A= xmlDoc.onload =3D readXML;=0A= xmlDoc.load(file);=0A= } else if (ie) {=0A= xmlDoc =3D new ActiveXObject("Microsoft.XMLDOM");=0A= xmlDoc.async =3D false;=0A= while(xmlDoc.readyState !=3D 4) {}; =0A= xmlDoc.load(file);=0A= readXML();=0A= }=0A= }=0A= =0A= function readXML() {=0A= root =3D xmlDoc.documentElement;=0A= crawl(root, 0);=0A= uarrTags=3DfindUniqueTags(arrTags);=0A= for ( var i =3D 0; i < uarrTags.length; i++ ) {=0A= document.myform.field1.options[i].text =3D uarrTags[i];=0A= document.myform.field1.options[i].value =3D uarrTags[i];=0A= document.myform.field2.options[i].text =3D uarrTags[i];=0A= document.myform.field2.options[i].value =3D uarrTags[i];=0A= }=0A= if (document.getElementById) {=0A= //document.getElementById("content").innerHTML =3D strContent + = document.getElementById("content").innerHTML;=0A= // document.myform.example.options[0]=3DstrContent;=0A= } else if (document.all) {=0A= document.all["content"].innerHTML =3D strContent + = document.all["content"].innerHTML;=0A= document.myform.example.options[0]=3DstrContent;=0A= }=0A= }=0A= =0A= function crawl(node, level) {=0A= if (node.nodeType =3D=3D 3 && isEmptyNode(node.nodeValue)) {=0A= // Don't process empty text nodes in Mozilla (IE ignores them = anyway).=0A= } else {=0A= var indent =3D "";=0A= =0A= var index=3D0;=0A= for (var i =3D 0; i < level; i++) {=0A= //indent =3D indent + " ";=0A= }=0A= //strContent =3D strContent + "<p>";=0A= //strContent =3D strContent + indent + "attributes =3D " + = node.attributes + "<br/>";=0A= //strContent =3D strContent + indent + "childNodes =3D " + = node.childNodes + "<br/>";=0A= //strContent =3D strContent + indent + "firstChild =3D " + = node.firstChild + "<br/>";=0A= //strContent =3D strContent + indent + "lastChild =3D " + = node.lastChild + "<br/>";=0A= //strContent =3D strContent + indent + "nextSibling =3D " + = node.nextSibling + "<br/>";=0A= //strContent =3D strContent + indent + "nodeName =3D " + = node.nodeName + "<br/>";=0A= strContent =3D strContent + node.nodeName + "<br/>";=0A= var n =3D node.nodeName;=0A= var tokenizer =3D n.split(":")=0A= if(n!=3D"#text")=0A= {=0A= arrTags.push(tokenizer[1]);=0A= }=0A= //if(strContent.equals("rdf:RDF"))=0A= //{=0A= //strContent =3D strContent;=0A= //}=0A= =0A= //index++;=0A= //arrTags.add(strContent); =0A= //document.myform.example.options[0]=3DstrContent;=0A= //strContent =3D strContent + indent + "nodeType =3D " + = node.nodeType + "<br/>";=0A= //strContent =3D strContent + indent + "nodeValue =3D " + = node.nodeValue + "<br/>";=0A= //strContent =3D strContent + indent + "ownerDocument =3D " + = node.ownerDocument + "<br/>";=0A= //strContent =3D strContent + indent + "parentNode =3D " + = node.parentNode + "<br/>";=0A= //strContent =3D strContent + indent + "previousSibling =3D " + = node.previousSibling + "<br/>";=0A= if (node.attributes) {=0A= if (node.attributes.length > 0) {=0A= for (var i =3D 0; i < node.attributes.length; i++) {=0A= attribute =3D node.attributes.item(i);=0A= //strContent =3D strContent + indent + = " " + "attribute name =3D " + attribute.name + = "<br/>";=0A= //strContent =3D strContent + indent + = " " + "attribute specified =3D " + = attribute.specified + "<br/>";=0A= //strContent =3D strContent + indent + = " " + "attribute value =3D " + attribute.value + = "<br/>";=0A= }=0A= }=0A= }=0A= }=0A= =0A= if (node.firstChild) {=0A= crawl(node.firstChild, level + 1);=0A= }=0A= if (node.nextSibling) {=0A= crawl(node.nextSibling, level);=0A= }=0A= strContent =3D strContent + "</p>";=0A= }=0A= =0A= function findUniqueTags(arrAllTags) { =0A= =0A= var arrUniqueTags =3D new Array();=0A= var tagsPresentCounter =3D 0; =0A= =0A= for (i=3D0; i<arrAllTags.length; i++) { =0A= =0A= var foundIt =3D false; =0A= =0A= for (j=3D0; j<arrUniqueTags.length; j++) {=0A= if (arrUniqueTags[j] =3D=3D arrAllTags[i]) { foundIt =3D true; break; } = } =0A= =0A= if (foundIt !=3D true) { =0A= =0A= //Meaning it's not already in tagsPresent =0A= =0A= arrUniqueTags[tagsPresentCounter] =3D arrAllTags[i]; = tagsPresentCounter++; } =0A= =0A= } =0A= =0A= return arrUniqueTags; =0A= =0A= } =0A= =0A= function isEmptyNode(arg) {=0A= reg =3D /\n/g;=0A= arg =3D arg.replace(reg, "");=0A= reg =3D / /g;=0A= arg =3D arg.replace(reg, "");=0A= if (arg.length =3D=3D 0) {=0A= return true;=0A= }=0A= return false;=0A= }=0A= =0A= </script>=0A= </head>=0A= <body onLoad=3D"importXML('biblio.rdf');"> =0A= =0A= =0A= <p>This is a more "real life" example, powered by a single XQuery = script.</p>=0A= =0A= <p>The sample collection contains 71098 book description (in RDF/XML)=0A= taken from our local university library.</p>=0A= =0A= <form action=3D"biblio.xq" method=3D"GET" name=3D"myform">=0A= =0A= <table width=3D"90%" cellpadding=3D"5" cellspacing=3D"0" = border=3D"0" bgcolor=3D"#EEEEEE">=0A= <tr bgcolor=3D"#99CCFF">=0A= <th width=3D"20%" align=3D"left">=0A= Search in=0A= </th>=0A= <th width=3D"40%" align=3D"left">=0A= Search what=0A= </th>=0A= <th width=3D"20%" align=3D"left">=0A= Interpret as=0A= </th>=0A= <th width=3D"20%" align=3D"left">=0A= </th>=0A= </tr>=0A= <tr>=0A= <td width=3D"20%" align=3D"left">=0A= <select name=3D"field1" size=3D"1">=0A= <option value=3D"any" selected=3D"true">Any</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= </select>=0A= </td>=0A= <td width=3D"40%" align=3D"left">=0A= <input type=3D"text" name=3D"term1" size=3D"30" />=0A= </td>=0A= <td width=3D"20%" align=3D"left">=0A= <select name=3D"mode1" size=3D"1">=0A= <option value=3D"near">near</option>=0A= <option value=3D"exact">exact match</option>=0A= <option value=3D"contains" selected=3D"true">word list</option>=0A= </select>=0A= </td>=0A= <td width=3D"20%" align=3D"left">=0A= <select name=3D"operator" size=3D"1">=0A= <option value=3D"or" selected=3D"true">or</option>=0A= <option value=3D"and" selected=3D"false">and</option>=0A= </select>=0A= </td>=0A= </tr>=0A= <tr>=0A= <td width=3D"20%" align=3D"left">=0A= <select name=3D"field2" size=3D"1">=0A= <option value=3D"any" selected=3D"true">Any</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"su">Subject</option>=0A= <option value=3D"au">Creator,Editor</option>=0A= <option value=3D"ti">Title</option>=0A= <option value=3D"ab">Description</option>=0A= </select>=0A= </td>=0A= <td width=3D"40%" align=3D"left">=0A= <input type=3D"text" name=3D"term2" size=3D"30" />=0A= </td>=0A= <td width=3D"20%" align=3D"left">=0A= <select name=3D"mode2" size=3D"1">=0A= <option value=3D"near">near</option>=0A= <option value=3D"exact">exact match</option>=0A= <option value=3D"contains" selected=3D"true">word list</option>=0A= </select>=0A= </td>=0A= <td width=3D"20%" align=3D"left">=0A= </td>=0A= </tr>=0A= <tr>=0A= <td align=3D"left" valign=3D"center" colspan=3D"3">=0A= <select name=3D"howmany" size=3D"1">=0A= <option>15</option>=0A= <option>30</option>=0A= <option>50</option>=0A= <option>100</option>=0A= </select>=0A= <small>hits will be displayed</small>=0A= </td>=0A= <td align=3D"left">=0A= <input type=3D"submit" />=0A= </td>=0A= </tr>=0A= </table>=0A= </form>=0A= =0A= <p><small>You may use wildcards *, ? and character ranges like = [a-zA-Z] =0A= for search terms</small></p>=0A= =0A= =0A= </body>=0A= =0A= |
From: David J. <dj...@ya...> - 2004-07-30 17:42:22
|
Hi Eljon! I think the problem is that you're setting the node Value on the element, rather than the text node child of the element. You have pageRoot.getElementsByTagName(tElement).item(tOrder-1).getElementsByTagName('active').item(0).setNodeValue("No"); which will set the node value of the <active> element, but not the text node under it. I think what you want to do is this: pageRoot.getElementsByTagName(tElement).item(tOrder-1).getElementsByTagName('active').item(0).getFirstChild().setNodeValue("No"); Note the addition of the getFirstChild() call. That will return the text node that you're actually interested in. Actually, on text nodes you're supposed to use setData rather than setNodeValue, but if you look at the code, all xmljs does in a setData is call setNodeValue so it doesn't really matter from a technical perspective... The code above will set the node data/value (the visible text so to speak) of the text node enclosed by the <active> node. When reading this value, you'll want to also make sure you're reading from the text node to make sure you're actually getting the node value of the text object. You can sometimes get away with not doing this, but it's not advised. Please go ahead and give that a shot and let us know how it turns out.... David --- Eljon Greene <eg...@re...> wrote: > Sure, > > Here is an example of the code: > > function removeNode(tElement,tOrder){ > if(pageRoot.getElementsByTagName(tElement).item(tOrder-1) != > null) { > tNode = > pageRoot.getElementsByTagName(tElement).item(tOrder-1); // Get first > element by node name (i.e. section, fieldgroup, fields) > > tNode.getElementsByTagName('active').item(0).setNodeValue("No"); // Set > active element to "No" > try { > > alert(tNode.getElementsByTagName('active').item(0).getNodeValue()); // > Displays "No" > > alert(tNode.getElementsByTagName('active').item(0).getXML()); // > Displays <active>Yes</active> > > } catch(e) { // Catch any exception > if(e.code == > DOMException.NO_MODIFICATION_ALLOWED_ERR) { > // display the error message > alert("XML Exception Error: Code > not remove " + tElement + "."); > } else { > alert("Unknown exception"); > alert(e.code); > } > } > } else { > alert("Null object"); > } > } > > Thanks for your assistance. > > Eljon > > -----Original Message----- > From: xml...@li... > [mailto:xml...@li...] On Behalf Of David > Joham > Sent: Thursday, July 29, 2004 11:33 AM > To: Eljon Greene; xml...@li... > Subject: Re: [xmljs-users] Cannot write back to root document object... > > > > Hi Eljon! > > Can you whip up a quick recreation of the problem you're seeing please? > I'll take a look and see what's up... > > > David > > --- Eljon Greene <eg...@re...> wrote: > > > Hey guys, > > > > I am new to XML for <script>. Everything is coming along pretty good > > except for one thing...That is trying to write back to the parent > > document node so that I can save this information on the server. I > > can use "DOMNode.setNodeValue()" and then use "DOMNode.getNodeValue()" > > > and it works. However when I try "DOMNode.getXML()" the old value > > still exists...I am trying to use global variables in my method > > instead of the local variables. What am I doing wrong and how do I > > write back to the "DOMDocument"? Thanks... > > > > > > Eljon Greene > > Web Software Engineer > > 877.394.5644 \\ main > > 904.567.2127 \\ direct > > eg...@re... > > www.recruitmax.com > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: David J. <dj...@ya...> - 2004-07-29 18:34:37
|
I won't be able to look at this until tonight at the earliest, but I'll try to get to it as soon as possible. Can I ask a favor? Can you expand on this recreation a bit to include your source XML and everything you need to recreate this - including the creation of the objects? That will make it much easier for me to debug since I won't have to guess what your variables are or how the function is supposed to interact with the objects. It's actually easier for me when I have a slightly larger test case than the bare minimum. Sorry I wasn't clear about that originally... If you don't have time, that's OK. I'll do my best. One more favor :) Can you send the new|current recreation as a zipped up attachment to djoham[at]yahoo[dot]com please? Yahoo mail mutilates code (and text attachments) to the point of almost uselessness. It would be a big help if I was able to start with something that resembed JavaScript code rather than Perl :) Best regards, David --- Eljon Greene <eg...@re...> wrote: > Sure, > > Here is an example of the code: > > function removeNode(tElement,tOrder){ > if(pageRoot.getElementsByTagName(tElement).item(tOrder-1) != > null) { > tNode = > pageRoot.getElementsByTagName(tElement).item(tOrder-1); // Get first > element by node name (i.e. section, fieldgroup, fields) > > tNode.getElementsByTagName('active').item(0).setNodeValue("No"); // Set > active element to "No" > try { > > alert(tNode.getElementsByTagName('active').item(0).getNodeValue()); // > Displays "No" > > alert(tNode.getElementsByTagName('active').item(0).getXML()); // > Displays <active>Yes</active> > > } catch(e) { // Catch any exception > if(e.code == > DOMException.NO_MODIFICATION_ALLOWED_ERR) { > // display the error message > alert("XML Exception Error: Code > not remove " + tElement + "."); > } else { > alert("Unknown exception"); > alert(e.code); > } > } > } else { > alert("Null object"); > } > } > > Thanks for your assistance. > > Eljon > > -----Original Message----- > From: xml...@li... > [mailto:xml...@li...] On Behalf Of David > Joham > Sent: Thursday, July 29, 2004 11:33 AM > To: Eljon Greene; xml...@li... > Subject: Re: [xmljs-users] Cannot write back to root document object... > > > > Hi Eljon! > > Can you whip up a quick recreation of the problem you're seeing please? > I'll take a look and see what's up... > > > David > > --- Eljon Greene <eg...@re...> wrote: > > > Hey guys, > > > > I am new to XML for <script>. Everything is coming along pretty good > > except for one thing...That is trying to write back to the parent > > document node so that I can save this information on the server. I > > can use "DOMNode.setNodeValue()" and then use "DOMNode.getNodeValue()" > > > and it works. However when I try "DOMNode.getXML()" the old value > > still exists...I am trying to use global variables in my method > > instead of the local variables. What am I doing wrong and how do I > > write back to the "DOMDocument"? Thanks... > > > > > > Eljon Greene > > Web Software Engineer > > 877.394.5644 \\ main > > 904.567.2127 \\ direct > > eg...@re... > > www.recruitmax.com > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Eljon G. <eg...@re...> - 2004-07-29 18:20:37
|
Sure, Here is an example of the code: function removeNode(tElement,tOrder){ if(pageRoot.getElementsByTagName(tElement).item(tOrder-1) !=3D null) { =20 tNode =3D pageRoot.getElementsByTagName(tElement).item(tOrder-1); // Get first element by node name (i.e. section, fieldgroup, fields)=20 =09 tNode.getElementsByTagName('active').item(0).setNodeValue("No"); // Set active element to "No" try { =09 alert(tNode.getElementsByTagName('active').item(0).getNodeValue()); // Displays "No" =09 alert(tNode.getElementsByTagName('active').item(0).getXML()); // Displays <active>Yes</active> =09 } catch(e) { // Catch any exception if(e.code =3D=3D DOMException.NO_MODIFICATION_ALLOWED_ERR) { // display the error message=20 alert("XML Exception Error: Code not remove " + tElement + "."); } else { alert("Unknown exception"); alert(e.code);=20 } } } else { alert("Null object"); }=09 } Thanks for your assistance. Eljon -----Original Message----- From: xml...@li... [mailto:xml...@li...] On Behalf Of David Joham Sent: Thursday, July 29, 2004 11:33 AM To: Eljon Greene; xml...@li... Subject: Re: [xmljs-users] Cannot write back to root document object... Hi Eljon! Can you whip up a quick recreation of the problem you're seeing please? I'll take a look and see what's up... David --- Eljon Greene <eg...@re...> wrote: > Hey guys, >=20 > I am new to XML for <script>. Everything is coming along pretty good=20 > except for one thing...That is trying to write back to the parent=20 > document node so that I can save this information on the server. I=20 > can use "DOMNode.setNodeValue()" and then use "DOMNode.getNodeValue()" > and it works. However when I try "DOMNode.getXML()" the old value=20 > still exists...I am trying to use global variables in my method=20 > instead of the local variables. What am I doing wrong and how do I=20 > write back to the "DOMDocument"? Thanks... >=20 >=20 > Eljon Greene > Web Software Engineer > 877.394.5644 \\ main > 904.567.2127 \\ direct > eg...@re... > www.recruitmax.com >=20 ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |
From: David J. <dj...@ya...> - 2004-07-29 15:32:46
|
Hi Eljon! Can you whip up a quick recreation of the problem you're seeing please? I'll take a look and see what's up... David --- Eljon Greene <eg...@re...> wrote: > Hey guys, > > I am new to XML for <script>. Everything is coming along pretty good except for one > thing...That is trying to write back to the parent document node so that I can save this > information on the server. I can use "DOMNode.setNodeValue()" and then use > "DOMNode.getNodeValue()" and it works. However when I try "DOMNode.getXML()" the old value > still exists...I am trying to use global variables in my method instead of the local variables. > What am I doing wrong and how do I write back to the "DOMDocument"? Thanks... > > > Eljon Greene > Web Software Engineer > 877.394.5644 \\ main > 904.567.2127 \\ direct > eg...@re... > www.recruitmax.com > |
From: Eljon G. <eg...@re...> - 2004-07-29 15:03:34
|
Hey guys, I am new to XML for <script>. Everything is coming along pretty good excep= t for one thing...That is trying to write back to the parent document node = so that I can save this information on the server. I can use "DOMNode.setN= odeValue()" and then use "DOMNode.getNodeValue()" and it works. However wh= en I try "DOMNode.getXML()" the old value still exists...I am trying to use= global variables in my method instead of the local variables. What am I d= oing wrong and how do I write back to the "DOMDocument"? Thanks... Eljon Greene Web Software Engineer 877.394.5644 \\ main 904.567.2127 \\ direct eg...@re... www.recruitmax.com |
From: Cameron S. <sho...@op...> - 2004-07-14 21:31:39
|
Thankyou David for the feedback, and good luck in becoming a new dad. I still need to understand more about how to POST XML to a server, but after discussions with other mapbuilder developers I think that we might use a slightly different proxy interface. Rather than encode and return XML inside a GET parameter, I think we will return raw XML the same as if we were accessing an XML document on the web. Our project has the advantage that we only target Mozilla 1.3+ and IE6+ so we can use the javascript XML functions. (Of note, we are using the Sarissa XML library). At the moment, I working on a GET interface. For the PUT interface I'm expecting to use FRAMES and hope to copy some of the XMLJS ideas. If we change our minds and decide to extend XMLJS, we will let you know and offer the code to you. On a side note, you may be interested to change your javascript commenting style to fit in with http://jsdoc.sourceforge.net . It means that you can build javadoc documentation like: http://mapbuilder.sourceforge.net/docs/jsdoc/index.html More inline. David Joham wrote: >Hello! > >Sorry for the delay, I've been out of town. :) > >I'd love to include the capability to do this in XML for <SCRIPT>. I'm curious what you mean by >and XML POST though. Do you mean an HTTP post that has XML in the body, or something else? > My understanding is that I need HTTP POST that has XML in the body. > An HTTP >post (or get) would be fairly easy to do since the plumbing on the browser side is already written >on the web side for the proxies. Doing something else would be more difficult since all browsers >know how to do is HTTP. > > Yes, that was my understanding too. >The problem is that I don't have time to do this at the moment. I'm currently about a month away >from being a new dad and that is pretty much taking all of my time at the moment. I'd be happy to >play a consulting role for anyone who wants to try this however. I'd also be happy to include the >code in a future release of XML for <SCRIPT>. > > Yes, I think we would all be happy to return our code back to XML for <SCRIPT> if we produce anything that will be useful for you. > >Best regards, > >David > >--- Cameron Shorter <sho...@op...> wrote: > > >>Hello xmljs people, >> >>On our project http://mapbuilder.sf.net we want to POST an XML request >>to a remote server, get an XML response, then process the XML response. >> >>I've been looking at the "XML for JS" proxies as a possible basis for >>this functionality. >>Are you are aware of any code which we can use to acheive this >>functionality? >> >>Or if not, are you interested in extending the "XML for JS" proxies to >>handle XML POST? >>-- >> >>Cameron Shorter http://cameron.shorter.net >>Open Source Developer http://generguide.sourceforge.net >> http://mapbuilder.sourceforge.net >>Senior Software Engineer http://www.adi-limited.com >> >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by Black Hat Briefings & Training. >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >>digital self defense, top technical experts, no vendor pitches, >>unmatched networking opportunities. Visit www.blackhat.com >>_______________________________________________ >>xmljs-users mailing list >>xml...@li... >>https://lists.sourceforge.net/lists/listinfo/xmljs-users >> >> >> > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >mapbuilder-devel mailing list >map...@li... >https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > -- Cameron Shorter http://cameron.shorter.net Open Source Developer http://generguide.sourceforge.net http://mapbuilder.sourceforge.net Senior Software Engineer http://www.adi-limited.com |
From: David J. <dj...@ya...> - 2004-07-14 20:15:25
|
Hello! Sorry for the delay, I've been out of town. :) I'd love to include the capability to do this in XML for <SCRIPT>. I'm curious what you mean by and XML POST though. Do you mean an HTTP post that has XML in the body, or something else? An HTTP post (or get) would be fairly easy to do since the plumbing on the browser side is already written on the web side for the proxies. Doing something else would be more difficult since all browsers know how to do is HTTP. The problem is that I don't have time to do this at the moment. I'm currently about a month away from being a new dad and that is pretty much taking all of my time at the moment. I'd be happy to play a consulting role for anyone who wants to try this however. I'd also be happy to include the code in a future release of XML for <SCRIPT>. Best regards, David --- Cameron Shorter <sho...@op...> wrote: > Hello xmljs people, > > On our project http://mapbuilder.sf.net we want to POST an XML request > to a remote server, get an XML response, then process the XML response. > > I've been looking at the "XML for JS" proxies as a possible basis for > this functionality. > Are you are aware of any code which we can use to acheive this > functionality? > > Or if not, are you interested in extending the "XML for JS" proxies to > handle XML POST? > -- > > Cameron Shorter http://cameron.shorter.net > Open Source Developer http://generguide.sourceforge.net > http://mapbuilder.sourceforge.net > Senior Software Engineer http://www.adi-limited.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Nedjo R. <ne...@gw...> - 2004-07-09 14:45:31
|
Cameron, The PHP proxy script I've put in CVS at /server/proxy/proxy.php includes a class (which I found on a help site) that handles XLM posting. The script tests for raw XML input and, if present, posts via XML, otherwise using Get to fetch Get- or Post-encoded input requests. Nedjo ----- Original Message ----- From: Cameron Shorter <sho...@op...> To: <xml...@li...> Cc: mapbuilder <map...@li...> Sent: Friday, July 09, 2004 2:57 AM Subject: [Mapbuilder-devel] POSTing XML to a remote server > Hello xmljs people, > > On our project http://mapbuilder.sf.net we want to POST an XML request > to a remote server, get an XML response, then process the XML response. > > I've been looking at the "XML for JS" proxies as a possible basis for > this functionality. > Are you are aware of any code which we can use to acheive this > functionality? > > Or if not, are you interested in extending the "XML for JS" proxies to > handle XML POST? > -- > > Cameron Shorter http://cameron.shorter.net > Open Source Developer http://generguide.sourceforge.net > http://mapbuilder.sourceforge.net > Senior Software Engineer http://www.adi-limited.com > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > mapbuilder-devel mailing list > map...@li... > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > |
From: Cameron S. <sho...@op...> - 2004-07-09 09:57:42
|
Hello xmljs people, On our project http://mapbuilder.sf.net we want to POST an XML request to a remote server, get an XML response, then process the XML response. I've been looking at the "XML for JS" proxies as a possible basis for this functionality. Are you are aware of any code which we can use to acheive this functionality? Or if not, are you interested in extending the "XML for JS" proxies to handle XML POST? -- Cameron Shorter http://cameron.shorter.net Open Source Developer http://generguide.sourceforge.net http://mapbuilder.sourceforge.net Senior Software Engineer http://www.adi-limited.com |
From: Christopher B. <cb...@co...> - 2004-07-07 18:48:36
|
Hi David, DJ> IMHO, it's better to organize them as child DJ> nodes. <snip>... Yes, now I think I get it. Instead of: <faculty class="academic" id="sbeacon"> <name>Shirley Beacon</name> <email>sb...@st...</email> </faculty> I now have: <class id="academic"> <faculty id="sbeacon"> <name>Shirley Beacon</name> <email>sb...@st...</email> </faculty> </class> DJ> It would be very simple for you to modify the DJ> script to return all of the nodes with the DJ> specific attribute and value. Doesn't seem needed, now, but thanks. A few other quick questions...First, do I need the <root> node? Does it have to be called 'root'? Also, I have seen a few examples showing how to use the browser to parse xml. Should I consider this? Advantages/disadvantages? Thanks! I'm out of questions (for now), I promise! -Chris |
From: David J. <dj...@ya...> - 2004-07-07 15:10:57
|
<<Is a tag attribute a good way of categorizing groups of nodes, or should they all just be child nodes? From your example, I take it the latter?>> IMHO, it's better to organize them as child nodes. It make processing easier as well as making the XML code easier to humanly read. It's not always possible though - and the fact that XML still works in the non-perfect-world cases is one of the strong points of the technology. It would be very simple for you to modify the script to return all of the nodes with the specific attribute and value. In the getElementBy* function (either mine or yours) all you need to do is loop until you find a node you're interested in. Instead of returning the node and returning, add the node to a temp array or something and then return. Once you've looped through the entire tree, return the array. XML for <SCRIPT>'s license not only permits you to do this, but encourages you to do so! Best regards, David --- Christopher Brown <cb...@co...> wrote: > Hi David, > > DJ> The "id" tag is unique in XML. In ideal > DJ> worlds, all "id" tags would be unique in an > DJ> XML string. Thus, getElementById makes sense. > DJ> Since "id" is the only attribute with this > DJ> definition, a getElementByAttribute function > DJ> doesn't make sense for an XML parser. However, > DJ> if you need one, there is no reason why you > DJ> couldn't just modify XML for <SCRIPT> to > DJ> include it. All you would have to do is to > DJ> clone the code in getElementById. > > I see. I had never thought to modify the script. Would it be difficult to have it return all of > the nodes that match? I acknowledge your point about 'id' being ideally unique, but what about > another attribute, for which several nodes share a common value? I imagine that this would be a > quick way to organize data. I also imagine that this is what XPath is for? This is what I meant > by my question about a better way to organize my data. Now that I know a bit more of the > nomenclature, let me rephrase...Is a tag attribute a good way of categorizing groups of nodes, > or should they all just be child nodes? From your example, I take it the latter? > > >> Third, how can I use html links within my xml > > <snip>... > > DJ> This is the ugly part of trying to do XML with > DJ> javascript. > > <snip>... > > I see...Down & dirty. Sometimes there ain't no shortcuts. > > DJ> You're welcome. Good luck! > > Thank you for your thoughtful reply. > > -- > Chris > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Christopher B. <cb...@co...> - 2004-07-07 03:47:41
|
Hi David, DJ> The "id" tag is unique in XML. In ideal DJ> worlds, all "id" tags would be unique in an DJ> XML string. Thus, getElementById makes sense. DJ> Since "id" is the only attribute with this DJ> definition, a getElementByAttribute function DJ> doesn't make sense for an XML parser. However, DJ> if you need one, there is no reason why you DJ> couldn't just modify XML for <SCRIPT> to DJ> include it. All you would have to do is to DJ> clone the code in getElementById. I see. I had never thought to modify the script. Would it be difficult to have it return all of the nodes that match? I acknowledge your point about 'id' being ideally unique, but what about another attribute, for which several nodes share a common value? I imagine that this would be a quick way to organize data. I also imagine that this is what XPath is for? This is what I meant by my question about a better way to organize my data. Now that I know a bit more of the nomenclature, let me rephrase...Is a tag attribute a good way of categorizing groups of nodes, or should they all just be child nodes? From your example, I take it the latter? >> Third, how can I use html links within my xml <snip>... DJ> This is the ugly part of trying to do XML with DJ> javascript. <snip>... I see...Down & dirty. Sometimes there ain't no shortcuts. DJ> You're welcome. Good luck! Thank you for your thoughtful reply. -- Chris |
From: David J. <dj...@ya...> - 2004-07-07 02:03:19
|
Hello! Welcome to XML land. Please see answers in-lined below.... > > First, the method getElementById is quite useful. However, why is it that I cannot get an > element based on some attribute other than id? For example, I have the following xml: > > <faculty class="academic" id="sbeacon"> > <name>Shirley Beacon</name> > <email>sb...@st...</email> > </faculty> > > I can easily extract the node by domTree.getElementById('sbeacon'). But why not the more general > 'getElementByAttribute', where I specify the attribute, and the value? This way I could easily > extract all nodes having the same 'class' in this example. How could I do this? Does this > question stem from my lack of knowledge of xml? > The "id" tag is unique in XML. In ideal worlds, all "id" tags would be unique in an XML string. Thus, getElementById makes sense. Since "id" is the only attribute with this definition, a getElementByAttribute function doesn't make sense for an XML parser. However, if you need one, there is no reason why you couldn't just modify XML for <SCRIPT> to include it. All you would have to do is to clone the code in getElementById. One thing you might consider is XPath for the W3C Parser or TagPath for the classic parser. Both of these will give you the capability of searching by individual attributes. XPath is more powerful in that it will return multiple nodes in a single query. TagPath is more limited, but if you are only after a single node and you know the direct path to it, it may do the job. TagPath is documented in the selectNode documentation in the classic DOM. XPath is documented in the XPath contributed add-on. > Second, is there a better way to organize my xml? I have 3 or 4 categories for what I'm calling > 'class', and I would like to be able to group them (extract only academic, etc). > I'm going to need more info to answer this one, but in general XML is organized in a parent-child manner. For example: <languages> <c-syntax> <java></java> <cplusplus></java> <c></c> </c-syntax> <basic-syntax> <vb></vb> <vbscript></vbscript> </basic-syntax> </languages> you get the idea... > Third, how can I use html links within my xml document? Should I use a dummy character not > likely to occur, and do a replace for the < and > signs? Is there a better way? I have read the > documentation about the convertEscapes function, but as I understand it, this is intended for > escaping the <'s and >'s in the xml tags themselves. I have tried using < and > in the > html tag, and using convertEscapes on the extracted text, but this hasn't worked. Any > suggestions? > This is the ugly part of trying to do XML with javascript. Assuming you're sending the data to a text area, you would send a "<" character to the XML parser in the following way &lt; when the browser parses your text, it turns that text into < Then, it is converted into a "<" character by the XML Parser itself. Ugly, huh? One option is to do something similar to what convertEscapes does, but with different characters. A little trial and error will generally get you through this ugly part. > Finally, browser compatibility is a concern for me. What browsers can handle the classic DOM? > Pretty much any generation 4 browser and up can handle the classic DOM. All modern browsers can handle it just fine as well. > Thank you. I am learning as I go, and any help is really greatly appreciated. > > -- > Chris You're welcome. Good luck! David |
From: Christopher B. <cb...@co...> - 2004-07-06 23:36:48
|
Hi xmljs-users, I am very new to xml, and even newer to xml for <script>. I am very unsure of the best way to proceed, and would appreciate an insight, guidance, or cautions anyone can provide. I am charged with updating the website for our academic department, and the only tool available to me is SSI (and javascript). I have gotten the classic DOM to do what I would like, namely extract bits of info, depending on a tag id. I have several questions. First, the method getElementById is quite useful. However, why is it that I cannot get an element based on some attribute other than id? For example, I have the following xml: <faculty class="academic" id="sbeacon"> <name>Shirley Beacon</name> <email>sb...@st...</email> </faculty> I can easily extract the node by domTree.getElementById('sbeacon'). But why not the more general 'getElementByAttribute', where I specify the attribute, and the value? This way I could easily extract all nodes having the same 'class' in this example. How could I do this? Does this question stem from my lack of knowledge of xml? Second, is there a better way to organize my xml? I have 3 or 4 categories for what I'm calling 'class', and I would like to be able to group them (extract only academic, etc). Third, how can I use html links within my xml document? Should I use a dummy character not likely to occur, and do a replace for the < and > signs? Is there a better way? I have read the documentation about the convertEscapes function, but as I understand it, this is intended for escaping the <'s and >'s in the xml tags themselves. I have tried using < and > in the html tag, and using convertEscapes on the extracted text, but this hasn't worked. Any suggestions? Finally, browser compatibility is a concern for me. What browsers can handle the classic DOM? Thank you. I am learning as I go, and any help is really greatly appreciated. -- Chris |
From: David J. <dj...@ya...> - 2004-06-25 20:40:27
|
Hi Jerry! The best way of getting the XML to the browser is to embed it into a hidden text area as described here: http://xmljs.sourceforge.net/website/documentation-faq.html#faqhowdoigetxmltobrowser Is there is a particular reason you need to put it into an <xml> tag? I was under the impression that was an IE-only xml data island thing. If you do need to put it into an <xml> tag, you probably would need to get the <xml> tag via the DOM elements provided by the browser and then serialize the contents of the tag back to a string. You would then put that string into XML for <SCRIPT> for parsing. At that point, you could use the XPath processor.... Best regards, David --- Jerry Lam <Je...@SA...> wrote: > Hi, > > I would like to know if it is possible to have the javascript to load the > entire XML which is embedded in the HTML. Example, > > <html> > <body> > <xml><example>will this work?</example></xml> > </body> > </html> > > Is it possible to use the xpath for <script> to load this xml and use xpath > expression to parse the xml?? > > Thank you for you advice, > > Jerry > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Jerry L. <Je...@SA...> - 2004-06-25 19:46:24
|
Hi, I would like to know if it is possible to have the javascript to load the entire XML which is embedded in the HTML. Example, <html> <body> <xml><example>will this work?</example></xml> </body> </html> Is it possible to use the xpath for <script> to load this xml and use xpath expression to parse the xml?? Thank you for you advice, Jerry |
From: <ben...@id...> - 2004-05-25 08:49:33
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: David J. <dj...@ya...> - 2004-04-01 23:20:27
|
Hi Jim, That sounds like it would be a nice addition. In making your patch, could you do the following please? * Coordinate with Robert (cc'd on this Email) so that your patch doesn't collide with the work he's doing. Robert is planning on greatly extending XML for <SCRIPT>'s entity handling and I want to make sure your two patches work together. * Update the pre-made event handler file * Add a testcase or two (however many you think appropriate) to the SAX and W3C DOM test suites. * If you would like, update the SAX and DOM documentation for entity handling. If you would rather not, I'm just fine with a brief blurb from you in an Email describing exactly how the SAX and DOM parsers should act and how a programmer would go about using your change. I'd be happy to update the docs accordingly. Thanks for your offer! Best regards, David --- Jim Cheng <ji...@ps...> wrote: > Hi everyone, > > I've recently did a straight port of the XML for <SCRIPT> 3.0's > SAX parser to Flash MX 2004's Actionscript 2.0 (essentially > ECMAScript Draft 4) to bootstrap the development of an open- > source, standards-compliant DOM that I'm working on. See: > > http://www.psalterego.com/flash/sax.html > > In using the SAX parser, I've run into an issue with resolving > general entities that aren't specified by the XML recommendation, > e.g. Latin-1 XHTML entities like é and such. At present, > the XML for <SCRIPT> SAX parser throws an "unknown entity" error > and exits. > > As the SAX parser isn't validating and doesn't implement the > SAX2 entityResolver interface, I would like to suggest that a > skippedEntity event be added that would be fired (if defined) > instead of throwing a fatal unknown entity error to allow the > SAX parser to play well with XML files that use entities other > than predefined entities given in the XML specification: > > http://www.w3.org/TR/2004/REC-xml-20040204/#sec-predefined-ent > > Say, implementing a skippedEntity event like the one in SAX2's > contentHandler interface. I could provide a patch against the > current code to implement this if there's interest. Thoughts? > > Regards, > Jim > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/ |
From: Jim C. <ji...@ps...> - 2004-04-01 19:33:59
|
Hi everyone, I've recently did a straight port of the XML for <SCRIPT> 3.0's SAX parser to Flash MX 2004's Actionscript 2.0 (essentially ECMAScript Draft 4) to bootstrap the development of an open- source, standards-compliant DOM that I'm working on. See: http://www.psalterego.com/flash/sax.html In using the SAX parser, I've run into an issue with resolving general entities that aren't specified by the XML recommendation, e.g. Latin-1 XHTML entities like é and such. At present, the XML for <SCRIPT> SAX parser throws an "unknown entity" error and exits. As the SAX parser isn't validating and doesn't implement the SAX2 entityResolver interface, I would like to suggest that a skippedEntity event be added that would be fired (if defined) instead of throwing a fatal unknown entity error to allow the SAX parser to play well with XML files that use entities other than predefined entities given in the XML specification: http://www.w3.org/TR/2004/REC-xml-20040204/#sec-predefined-ent Say, implementing a skippedEntity event like the one in SAX2's contentHandler interface. I could provide a patch against the current code to implement this if there's interest. Thoughts? Regards, Jim |
From: <inf...@ap...> - 2004-03-30 15:55:22
|
From: inf...@ap... Subject : Votre demande a bien été prise en compte Bonjour, Le Service Consommateurs API Restauration vous remercie de le consulter. Nous avons transmis votre demande au service concerné qui vous répondra dans les plus brefs délais. ------------------------------------------------------------------------------ -------- Original Message -------- |
From: <MAI...@sm...> - 2004-03-30 12:45:16
|
Failed to deliver to '<vin...@wo...>' Virus trouv) | Virus(es) found. software_vinobourg.pif est infectar W32/Netsky.p@MM software_vinobourg.pif is infected with W32/Netsky.p@MM Viruses: 1 Trojans: 0 Jokes: 0 Tests: 0 Ceci est un message d'information automatique. Votre ordinateur semble avoir envoyn message contenant un virus ! Il n'a pas envoyNous vous conseillons de vfier et protr votre ordinateur. Si vous recevez lement un message 'Virus rejet il est probable que le virus ne soit pas chez vous et utilise votre identitirdu carnet d'adresse de l'ordinateur infect Vfiez la date, l'heure et l'adresse IP de l'envoi. This is an automatic message for your information. Your computer seems to send a message containing a virus, that was not sent ! Please take all actions to check and protect your computer. If you also receive a 'Virus warning' message, this probably means that the virus was not issued by you, but used your identity from the address book of the infected computer. Check the sent date, t |
From: David J. <dj...@ya...> - 2004-03-26 19:52:57
|
D'oh! Drat, that's my bad. I'm the one who goofed up. Sorry :( I have just put them into the 3.2 source tree. They *will* get in for that release :) Phoey, and I was patting myself on the back for getting the release out early, too... David --- Rob...@Hy... wrote: > David, I've been busy the rest of this month and will try to get you the > test cases for the escaping/unescaping you were looking for. In the > meantime though, two of the fixes I posted were not in 3.1. Not sure who > maintains these files but here they are again. > > 1) EMPTY ELEMENT SERIALIZATION INVALID - the last few lines of > DOMElement.toString should be like this to avoid unintended text nodes: > ret += "<" + this.nodeName + ns + attrs; > if (this.childNodes.length > 0) > { > ret += ">"; > ret += this.childNodes.toString(); > ret += "</" + this.nodeName + ">"; > } > else > { > ret += " />"; > } > > 2) UNESCAPING OF AMPERSAND S/B LAST - ampersand needs to be done last in > __unescapeString in xmlsax.js to avoid the following: > > Escape > Use < when specifying < > Use &lt; when specifying < > Use &lt; when specifying < > Unescape > Use &lt; when specifying < > Use < when specifying < > Use < when specifying < > > > > ************************************************************************ > > If you have received this e-mail in error, please delete it and notify the sender as soon as > possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or > dissemination of it and any attachments to it, is prohibited. > > Internet communications are not secure and Hyperion does not, therefore, accept legal > responsibility for the contents of this message nor for any damage caused by viruses. The views > expressed here do not necessarily represent those of Hyperion. > > For more information about Hyperion, please visit our Web site at www.hyperion.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |
From: <Rob...@Hy...> - 2004-03-26 18:53:02
|
David, I've been busy the rest of this month and will try to get you the test cases for the escaping/unescaping you were looking for. In the meantime though, two of the fixes I posted were not in 3.1. Not sure who maintains these files but here they are again. 1) EMPTY ELEMENT SERIALIZATION INVALID - the last few lines of DOMElement.toString should be like this to avoid unintended text nodes: ret += "<" + this.nodeName + ns + attrs; if (this.childNodes.length > 0) { ret += ">"; ret += this.childNodes.toString(); ret += "</" + this.nodeName + ">"; } else { ret += " />"; } 2) UNESCAPING OF AMPERSAND S/B LAST - ampersand needs to be done last in __unescapeString in xmlsax.js to avoid the following: Escape Use < when specifying < Use &lt; when specifying < Use &lt; when specifying < Unescape Use &lt; when specifying < Use < when specifying < Use < when specifying < ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com |
From: David J. <dj...@ya...> - 2004-03-25 05:18:04
|
Hello all! Proving that it is possible to release software early, I'm proud to announce the availability of XML for <SCRIPT> version 3.1! XML for SCRIPT version 3.1 builds on the success of 3.0 by adding an XPath Contributed Add-on to its feature set. This Contributed Add-on allows for many of the most common XPath expressions to be processed against XML for SCRIPT's W3C parser. This XPath Contributed Add-on is well documented, with two new sample applications and full documentation of the new objects exposed by this feature. XML for SCRIPT version 3.1 also matures the W3C DOM Parser by fixing a number of known bugs in the 3.0 release that were found after the introduction of 3.0. The bugs that were fixed are outlined in the "Known Bugs" section of the FAQ. As always, you can get the latest version of XML for <SCRIPT> at http://xmljs.sourceforge.net. Best regards, David __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |