xmljs-users Mailing List for xml for SCRIPT (Page 6)
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: David J. <dj...@ya...> - 2005-01-22 00:47:54
|
I've replied privately to this email.... David --- Eljon Greene <eg...@re...> wrote: > David, > > I have a very high profile application built for our company that uses your API...I have built > my own XML framework to be manipulated by xml for <script>. I have found some issues I have > made and corrected them only to go back and the issues seem to be there again...It is very > frustrating...Many many people are waiting on me to fix this and our next release goes out next > week...Do you do consulting and can possibly help me? We use ColdFusion here...I can assist you > with understanding what I am doing on the server-side...Thanks... > > Eljon Greene > CE Software Engineer > 877.394.5644 \\ main > 904.567.2127 \\ direct > eg...@re... > www.recruitmax.com > |
From: Eljon G. <eg...@re...> - 2005-01-21 23:15:13
|
David, I have a very high profile application built for our company that uses your= API...I have built my own XML framework to be manipulated by xml for <scri= pt>. I have found some issues I have made and corrected them only to go ba= ck and the issues seem to be there again...It is very frustrating...Many ma= ny people are waiting on me to fix this and our next release goes out next = week...Do you do consulting and can possibly help me? We use ColdFusion he= re...I can assist you with understanding what I am doing on the server-side= ...Thanks... Eljon Greene CE Software Engineer 877.394.5644 \\ main 904.567.2127 \\ direct eg...@re... www.recruitmax.com |
From: Heath B. <hea...@gm...> - 2005-01-07 02:53:17
|
Yeah, I found that. I just did a little googling and found it. On Fri, 7 Jan 2005 08:36:39 +1000, Barry Beattie <Ba...@al...> wrote: > > >> Since, I was running my webserver on the same computer, it was giving > me the warning. > > your sysadmin has probably made these settings on you. I run a local > coldFusion webserver to develop against and don't get this error because > my browser is config'd not to do so. > > the sysadmin msy have locked it on you so you can't change it > (for IE: tools ->internet options->security(tab)->custom level(button)) > > cheers > barry.b > > > -----Original Message----- > From: xml...@li... > [mailto:xml...@li...] On Behalf Of Heath > Borders > Sent: Friday, 7 January 2005 5:21 AM > To: David Joham > Cc: xmljs-users > Subject: Re: [xmljs-users] XmlHttpRequest Object > > I figured out what it was. > > IE throws the ActiveX warning if you call the XmlHttpRequest object > from a page served from your localhost. > > Since, I was running my webserver on the same computer, it was giving > me the warning. > > When I ran it from an external computer, it was fine. > > Thanks. > > On Thu, 6 Jan 2005 10:09:56 -0800 (PST), David Joham <dj...@ya...> > wrote: > > > > From a quick inspection, that looks like it should work OK. XML for > <SCRIPT> doesn't use > > XMLHttpRequest so beyond that, I'm at a loss :) > > > > David > > > > --- Heath Borders <hea...@gm...> wrote: > > > > > I'm trying to use the XmlHttpRequest Object to make requests back to > > > my web server to retrieve some Xml data. The request object itself > > > works fine and the request comes back just fine. However, every > time > > > I make the request, my browser prompts my about using an ActiveX > > > control that is safe for scripting. The example websites I've > viewed > > > that use the XmlHttpRequest Object call it the same way I do, and I > > > don't get this warning when I view those pages. > > > > > > Here is a link to an example page: > > > > > > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa > mple.html > > > > > > Here is my function that actually calls the XmlHttpRequest Object: > > > function loadXMLDoc(url) { > > > // branch for native XMLHttpRequest object > > > if (window.XMLHttpRequest) { > > > req = new XMLHttpRequest(); > > > req.onreadystatechange = processReqChange; > > > req.open("GET", url, true); > > > req.send(null); > > > // branch for IE/Windows ActiveX version > > > } else if (window.ActiveXObject) { > > > req = new ActiveXObject("Microsoft.XMLHTTP"); > > > if (req) { > > > req.onreadystatechange = processReqChange; > > > req.open("GET", url, true); > > > req.send(); > > > } > > > } > > > } > > > > > > -- > > > -Heath Borders-Wing > > > hbo...@ma... > > > > > > > > > ------------------------------------------------------- > > > The SF.Net email is sponsored by: Beat the post-holiday blues > > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > > It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > > > _______________________________________________ > > > xmljs-users mailing list > > > xml...@li... > > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > -- > -Heath Borders-Wing > hbo...@ma... > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > -- -Heath Borders-Wing hbo...@ma... |
From: Barry B. <Ba...@al...> - 2005-01-06 22:36:26
|
>> Since, I was running my webserver on the same computer, it was giving me the warning. your sysadmin has probably made these settings on you. I run a local coldFusion webserver to develop against and don't get this error because my browser is config'd not to do so. the sysadmin msy have locked it on you so you can't change it=20 (for IE: tools ->internet options->security(tab)->custom level(button)) cheers barry.b -----Original Message----- From: xml...@li... [mailto:xml...@li...] On Behalf Of Heath Borders Sent: Friday, 7 January 2005 5:21 AM To: David Joham Cc: xmljs-users Subject: Re: [xmljs-users] XmlHttpRequest Object I figured out what it was. IE throws the ActiveX warning if you call the XmlHttpRequest object from a page served from your localhost. Since, I was running my webserver on the same computer, it was giving me the warning. When I ran it from an external computer, it was fine. Thanks. On Thu, 6 Jan 2005 10:09:56 -0800 (PST), David Joham <dj...@ya...> wrote: >=20 > From a quick inspection, that looks like it should work OK. XML for <SCRIPT> doesn't use > XMLHttpRequest so beyond that, I'm at a loss :) >=20 > David >=20 > --- Heath Borders <hea...@gm...> wrote: >=20 > > I'm trying to use the XmlHttpRequest Object to make requests back to > > my web server to retrieve some Xml data. The request object itself > > works fine and the request comes back just fine. However, every time > > I make the request, my browser prompts my about using an ActiveX > > control that is safe for scripting. The example websites I've viewed > > that use the XmlHttpRequest Object call it the same way I do, and I > > don't get this warning when I view those pages. > > > > Here is a link to an example page: > > > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/exa mple.html > > > > Here is my function that actually calls the XmlHttpRequest Object: > > function loadXMLDoc(url) { > > // branch for native XMLHttpRequest object > > if (window.XMLHttpRequest) { > > req =3D new XMLHttpRequest(); > > req.onreadystatechange =3D processReqChange; > > req.open("GET", url, true); > > req.send(null); > > // branch for IE/Windows ActiveX version > > } else if (window.ActiveXObject) { > > req =3D new ActiveXObject("Microsoft.XMLHTTP"); > > if (req) { > > req.onreadystatechange =3D processReqChange; > > req.open("GET", url, true); > > req.send(); > > } > > } > > } > > > > -- > > -Heath Borders-Wing > > hbo...@ma... > > > >=20 > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > >=20 > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users >=20 --=20 -Heath Borders-Wing hbo...@ma... ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |
From: Heath B. <hea...@gm...> - 2005-01-06 19:21:21
|
I figured out what it was. IE throws the ActiveX warning if you call the XmlHttpRequest object from a page served from your localhost. Since, I was running my webserver on the same computer, it was giving me the warning. When I ran it from an external computer, it was fine. Thanks. On Thu, 6 Jan 2005 10:09:56 -0800 (PST), David Joham <dj...@ya...> wrote: > > From a quick inspection, that looks like it should work OK. XML for <SCRIPT> doesn't use > XMLHttpRequest so beyond that, I'm at a loss :) > > David > > --- Heath Borders <hea...@gm...> wrote: > > > I'm trying to use the XmlHttpRequest Object to make requests back to > > my web server to retrieve some Xml data. The request object itself > > works fine and the request comes back just fine. However, every time > > I make the request, my browser prompts my about using an ActiveX > > control that is safe for scripting. The example websites I've viewed > > that use the XmlHttpRequest Object call it the same way I do, and I > > don't get this warning when I view those pages. > > > > Here is a link to an example page: > > > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html > > > > Here is my function that actually calls the XmlHttpRequest Object: > > function loadXMLDoc(url) { > > // branch for native XMLHttpRequest object > > if (window.XMLHttpRequest) { > > req = new XMLHttpRequest(); > > req.onreadystatechange = processReqChange; > > req.open("GET", url, true); > > req.send(null); > > // branch for IE/Windows ActiveX version > > } else if (window.ActiveXObject) { > > req = new ActiveXObject("Microsoft.XMLHTTP"); > > if (req) { > > req.onreadystatechange = processReqChange; > > req.open("GET", url, true); > > req.send(); > > } > > } > > } > > > > -- > > -Heath Borders-Wing > > hbo...@ma... > > > > > > ------------------------------------------------------- > > The SF.Net email is sponsored by: Beat the post-holiday blues > > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > -- -Heath Borders-Wing hbo...@ma... |
From: David J. <dj...@ya...> - 2005-01-06 18:10:07
|
From a quick inspection, that looks like it should work OK. XML for <SCRIPT> doesn't use XMLHttpRequest so beyond that, I'm at a loss :) David --- Heath Borders <hea...@gm...> wrote: > I'm trying to use the XmlHttpRequest Object to make requests back to > my web server to retrieve some Xml data. The request object itself > works fine and the request comes back just fine. However, every time > I make the request, my browser prompts my about using an ActiveX > control that is safe for scripting. The example websites I've viewed > that use the XmlHttpRequest Object call it the same way I do, and I > don't get this warning when I view those pages. > > Here is a link to an example page: > > http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html > > Here is my function that actually calls the XmlHttpRequest Object: > function loadXMLDoc(url) { > // branch for native XMLHttpRequest object > if (window.XMLHttpRequest) { > req = new XMLHttpRequest(); > req.onreadystatechange = processReqChange; > req.open("GET", url, true); > req.send(null); > // branch for IE/Windows ActiveX version > } else if (window.ActiveXObject) { > req = new ActiveXObject("Microsoft.XMLHTTP"); > if (req) { > req.onreadystatechange = processReqChange; > req.open("GET", url, true); > req.send(); > } > } > } > > -- > -Heath Borders-Wing > hbo...@ma... > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Heath B. <hea...@gm...> - 2005-01-06 14:26:50
|
I'm trying to use the XmlHttpRequest Object to make requests back to my web server to retrieve some Xml data. The request object itself works fine and the request comes back just fine. However, every time I make the request, my browser prompts my about using an ActiveX control that is safe for scripting. The example websites I've viewed that use the XmlHttpRequest Object call it the same way I do, and I don't get this warning when I view those pages. Here is a link to an example page: http://developer.apple.com/internet/webcontent/XMLHttpRequestExample/example.html Here is my function that actually calls the XmlHttpRequest Object: function loadXMLDoc(url) { // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(); } } } -- -Heath Borders-Wing hbo...@ma... |
From: David J. <dj...@ya...> - 2005-01-03 19:48:24
|
Hello! The classic DOM has been tested and will work on Netscape 4.x (and IE 4.x for that matter) but the w3cdom will not (it uses try/catch all over the place). There's even a small classic dom sample code snippit especially for 4.x browsers here: http://xmljs.sourceforge.net/website/sampleApplications-classicdom.html There is a decent possibility that the sax parser will work on generation 4 browsers (it does not use try/catch), but it was not tested. Best regards, David --- C Wilks <jeo...@ag...> wrote: > The FAQ says: > > XML for <SCRIPT> has been tested to work with Netscape, Mozilla, Konqueror, > Safari, Opera and Internet Explorer. > - http://xmljs.sourceforge.net/website/documentation-faq.html > > > Has anyone tried Netscape 4.7x? Or is this just referring to 6+? > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: C W. <jeo...@ag...> - 2005-01-03 16:21:42
|
The FAQ says: XML for <SCRIPT> has been tested to work with Netscape, Mozilla, Konqueror, Safari, Opera and Internet Explorer. - http://xmljs.sourceforge.net/website/documentation-faq.html Has anyone tried Netscape 4.7x? Or is this just referring to 6+? |
From: David J. <dj...@ya...> - 2004-12-16 06:06:09
|
> copy a node (and it's children) from one xml doc (arriving on the page > via xmlhttprequest) to another (the master already created in the page). I think herein lies my confusion. I was focusing too much on the DocumentFragment part. ImportNode is really the appropriate method to be calling for what you're trying to do. > yeah, that was the only way I could get it to work - but work it does! Yea! > thanx for your help, David always a pleasure > I'm using '.getAttribute(name)' elsewhere in the code but saw > 'getAttributeNode(name)' in the docs. Are they interchangable? Not directly... getAttributeNode breaks down to DOMElement.prototype.getAttributeNode = function DOMElement_getAttributeNode(name) { // delegate to DOMNamedNodeMap.getNamedItem return this.attributes.getNamedItem(name); }; getAttribute breaks down to DOMElement.prototype.getAttribute = function DOMElement_getAttribute(name) { var ret = ""; // if attribute exists, use it var attr = this.attributes.getNamedItem(name); if (attr) { ret = attr.value; } return ret; // if Attribute exists, return its value, otherwise, return "" }; So getAttributeNode gives you a node object while getAttribute will give you the node object's value, or "" if the query can't find what you're looking for. Best regards, David |
From: David J. <dj...@ya...> - 2004-12-16 04:44:11
|
Does this help? http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMDocument.html#DOMDocumentImportNode I'm still baffled by what you're trying to do... David --- Barry Beattie <Ba...@al...> wrote: > > ach, I've narrowed it down. It's the adding of the other doc's element > to the fragment that it doesn't like > > // xmlToAdd and masterXmlDoc are both xml docs > > addrToAdd = xmlToAdd.documentElement; > doc_frag = masterXmlDoc.createDocumentFragment(); > doc_frag.appendChild(addrToAdd); ////// here \\\\\ > masterAddressRoot = > masterXmlDoc.getElementsByTagName("addresses").item(0); > masterAddressRoot.appendChild(doc_frag); > alert(masterXmlDoc); > > I've seen lots of examples where the "guts" of the fragment is created > (createElement) but no where is it an existing node of another doc. > > is this the correct reference to the other xml node? > > thanx > barry.b > > BTW, this works just fine > > addrToAdd = xmlToAdd.documentElement; > // get the parent the "address" node > masterAddressRoot = > masterXmlDoc.getElementsByTagName("addresses").item(0); > doc_frag = masterAddressRoot.importNode(addrToAdd, true); > masterAddressRoot.appendChild(doc_frag); > alert(masterXmlDoc); > > > > -----Original Message----- > From: David Joham [mailto:dj...@ya...] > Sent: Wednesday, 15 December 2004 2:13 AM > To: Barry Beattie; xml...@li... > Subject: RE: [xmljs-users] deep copy nodes between xml documents with JS > > > all I gotta do is turn "xmlFragment" (not a real DocumentFragment yet) > > into something I can insert into the master > > > > there isn't really a copyNode(deep) or insertFragment(node) is > there... > > Creating a DOMDocumentFragment and inserting it into the document using > the standard > append*/insert* methods should do the trick for you. > > http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMDocument.ht > ml#DOMDocumentCreateDocumentFragment > > David > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Barry B. <Ba...@al...> - 2004-12-16 04:14:35
|
ach, I've narrowed it down. It's the adding of the other doc's element to the fragment that it doesn't like // xmlToAdd and masterXmlDoc are both xml docs addrToAdd =3D xmlToAdd.documentElement; doc_frag =3D masterXmlDoc.createDocumentFragment(); doc_frag.appendChild(addrToAdd); ////// here \\\\\ masterAddressRoot =3D masterXmlDoc.getElementsByTagName("addresses").item(0); masterAddressRoot.appendChild(doc_frag); alert(masterXmlDoc);=20 I've seen lots of examples where the "guts" of the fragment is created (createElement) but no where is it an existing node of another doc. is this the correct reference to the other xml node? thanx barry.b BTW, this works just fine addrToAdd =3D xmlToAdd.documentElement; // get the parent the "address" node masterAddressRoot =3D masterXmlDoc.getElementsByTagName("addresses").item(0); doc_frag =3D masterAddressRoot.importNode(addrToAdd, true); masterAddressRoot.appendChild(doc_frag); alert(masterXmlDoc); -----Original Message----- From: David Joham [mailto:dj...@ya...]=20 Sent: Wednesday, 15 December 2004 2:13 AM To: Barry Beattie; xml...@li... Subject: RE: [xmljs-users] deep copy nodes between xml documents with JS > all I gotta do is turn "xmlFragment" (not a real DocumentFragment yet) > into something I can insert into the master=20 >=20 > there isn't really a copyNode(deep) or insertFragment(node) is there... Creating a DOMDocumentFragment and inserting it into the document using the standard append*/insert* methods should do the trick for you. http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMDocument.ht ml#DOMDocumentCreateDocumentFragment David |
From: David J. <dj...@ya...> - 2004-12-14 16:12:48
|
> all I gotta do is turn "xmlFragment" (not a real DocumentFragment yet) > into something I can insert into the master > > there isn't really a copyNode(deep) or insertFragment(node) is there... Creating a DOMDocumentFragment and inserting it into the document using the standard append*/insert* methods should do the trick for you. http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMDocument.html#DOMDocumentCreateDocumentFragment David |
From: Barry B. <Ba...@al...> - 2004-12-14 05:53:11
|
ah ha! now I'm cooking! thankyou James (and also David) xmlFragment =3D parser.loadXML(xmlToAdd.xml.toString()); where "xmlToAdd" is the ActiveX xml doc and the parser is the w3c vers (I gave up on the classic - sorry) all I gotta do is turn "xmlFragment" (not a real DocumentFragment yet) into something I can insert into the master=20 there isn't really a copyNode(deep) or insertFragment(node) is there... ...any suggestions? perhaps loop over each xmlFragment.ChildNodes and .attributes, adding them to the master (using createTextnode, createAttribute, etc)? thank heaps barry.b PS: [James and David:] the penny has (finally) dropped re: diff xml implementation, so much so that (later) I'll convert the ActiveX version to the W3C version as soon as the xnlhttprequest retrieves the data (at the moment I'm doing it before populating the form - my bad). I'll do the same with the firefox version when I get that working. -----Original Message----- From: xml...@li... [mailto:xml...@li...] On Behalf Of James S. Elkins Sent: Tuesday, 14 December 2004 2:25 AM To: David Joham; xml...@li...; Barry Beattie Subject: Re: [xmljs-users] deep copy nodes between xml documents with JS Barry, Try dumping the DOM obtained via XmlHttpRequest to an XML string and then=20 loading the XML into a new document in <XML for Script> to get it into the=20 proper implementation. ;) Thanks, James At 10:14 AM 12/13/2004, you wrote: > > the xmlhttprequest *has* to be there - it's providing lookup data that=20 > gets displayed in a form > > for editing (think remote procedure calls). > >There's no reason why you can't use xmlhttprequest and XML for <SCRIPT> at=20 >the same time, is >there? It should be possible to use xmlhttprequest and simply insert the=20 >resulting xml string from >the request object into an XML for SCRIPT DOM object. Standardizing on a=20 >single DOM Implementation >should get you past this and will likely prevent a whole host of other=20 >problems later. Since the >API of the two dom objects should be pretty much the same, it shouldn't >even require much (if any) >rework on your part. > >You could also look into the xmlIO functions of XML for <SCRIPT> to get >your XML String from the >server and do your RMI. However, if you're using browsers that you know >support xmlhttprequest, >I'll be the first to admit that object does provide a more robust API and=20 >less hoops to jump >through. > > > > > As each lookup happens I have to store the previous changes somewhere=20 > (the master doc?) and then > > post that as one hidden field back to the server for processing. The > master doc basically > > provides a new root node and some id attributes, ready to be filled=20 > with child nodes from the > > xmlhttprequest doc. > > > >Again, the master doc should just be an XML for SCRIPT DOM object > > > now I'm really stuck. any ideas on how I can aggrigate the results of=20 > each lookup (ie: add > > nodes) to send back to the server in one hidden form field? looks like=20 > the data island idea > > won't work.... > >xmlhttprequest should be fine here, as long as you use it just for data >retrieval. If you're >talking xml data islands (the IE proprietary thing) I think maybe you're=20 >making things harder for >yourself than you have to. > >Is there some reason you can't post some simple source code to help us=20 >help you out? A very simple >recreation that outlines what you're trying to do will go a long way in >helping us understand your >environment. > > > > > (in panic mode) > > > >Don't panic, find your towel and post some source code :) > >David ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |
From: James S. E. <jam...@co...> - 2004-12-14 05:05:42
|
Barry, Try dumping the DOM obtained via XmlHttpRequest to an XML string and then loading the XML into a new document in <XML for Script> to get it into the proper implementation. ;) Thanks, James At 10:14 AM 12/13/2004, you wrote: > > the xmlhttprequest *has* to be there - it's providing lookup data that > gets displayed in a form > > for editing (think remote procedure calls). > >There's no reason why you can't use xmlhttprequest and XML for <SCRIPT> at >the same time, is >there? It should be possible to use xmlhttprequest and simply insert the >resulting xml string from >the request object into an XML for SCRIPT DOM object. Standardizing on a >single DOM Implementation >should get you past this and will likely prevent a whole host of other >problems later. Since the >API of the two dom objects should be pretty much the same, it shouldn't >even require much (if any) >rework on your part. > >You could also look into the xmlIO functions of XML for <SCRIPT> to get >your XML String from the >server and do your RMI. However, if you're using browsers that you know >support xmlhttprequest, >I'll be the first to admit that object does provide a more robust API and >less hoops to jump >through. > > > > > As each lookup happens I have to store the previous changes somewhere > (the master doc?) and then > > post that as one hidden field back to the server for processing. The > master doc basically > > provides a new root node and some id attributes, ready to be filled > with child nodes from the > > xmlhttprequest doc. > > > >Again, the master doc should just be an XML for SCRIPT DOM object > > > now I'm really stuck. any ideas on how I can aggrigate the results of > each lookup (ie: add > > nodes) to send back to the server in one hidden form field? looks like > the data island idea > > won't work.... > >xmlhttprequest should be fine here, as long as you use it just for data >retrieval. If you're >talking xml data islands (the IE proprietary thing) I think maybe you're >making things harder for >yourself than you have to. > >Is there some reason you can't post some simple source code to help us >help you out? A very simple >recreation that outlines what you're trying to do will go a long way in >helping us understand your >environment. > > > > > (in panic mode) > > > >Don't panic, find your towel and post some source code :) > >David |
From: David J. <dj...@ya...> - 2004-12-13 16:14:36
|
> the xmlhttprequest *has* to be there - it's providing lookup data that gets displayed in a form > for editing (think remote procedure calls). There's no reason why you can't use xmlhttprequest and XML for <SCRIPT> at the same time, is there? It should be possible to use xmlhttprequest and simply insert the resulting xml string from the request object into an XML for SCRIPT DOM object. Standardizing on a single DOM Implementation should get you past this and will likely prevent a whole host of other problems later. Since the API of the two dom objects should be pretty much the same, it shouldn't even require much (if any) rework on your part. You could also look into the xmlIO functions of XML for <SCRIPT> to get your XML String from the server and do your RMI. However, if you're using browsers that you know support xmlhttprequest, I'll be the first to admit that object does provide a more robust API and less hoops to jump through. > > As each lookup happens I have to store the previous changes somewhere (the master doc?) and then > post that as one hidden field back to the server for processing. The master doc basically > provides a new root node and some id attributes, ready to be filled with child nodes from the > xmlhttprequest doc. > Again, the master doc should just be an XML for SCRIPT DOM object > now I'm really stuck. any ideas on how I can aggrigate the results of each lookup (ie: add > nodes) to send back to the server in one hidden form field? looks like the data island idea > won't work.... xmlhttprequest should be fine here, as long as you use it just for data retrieval. If you're talking xml data islands (the IE proprietary thing) I think maybe you're making things harder for yourself than you have to. Is there some reason you can't post some simple source code to help us help you out? A very simple recreation that outlines what you're trying to do will go a long way in helping us understand your environment. > > (in panic mode) > Don't panic, find your towel and post some source code :) David |
From: Barry B. <Ba...@al...> - 2004-12-13 15:26:02
|
thanx for your help, James. holy mackrel! that's exactly what I'm trying to do. Create a master xml = doc (data island) and then add nodes (copy) to it from the = xmlhttprequest xml doc. the xmlhttprequest *has* to be there - it's providing lookup data that = gets displayed in a form for editing (think remote procedure calls). As each lookup happens I have to store the previous changes somewhere = (the master doc?) and then post that as one hidden field back to the = server for processing. The master doc basically provides a new root node = and some id attributes, ready to be filled with child nodes from the = xmlhttprequest doc. I've been beating my head against the wall trying to get this to work. = It never occured to me that they'd be two incompatable xml objects. looks like I've been tricked into thinking this could work because I can = use some JS functions to manip the xmlhttpreqest doc already (to display = in form elements or post back to the server, yes, but not copy or = clone). now I'm really stuck. any ideas on how I can aggrigate the results of = each lookup (ie: add nodes) to send back to the server in one hidden = form field? looks like the data island idea won't work.... (in panic mode) I'm thinking that, since there's form elements involved, = I might get away with creating xml nodes on the fly and just copying the = data and attribute values (up to 4 per child node). I've had to do = something similar serverside with ColdFusion - java didn't want to play = nice (eg like this: = http://www.spike.org.uk/blog/index.cfm?do=3Dblog.day&day=3D4&month=3D6&ye= ar=3D2004) any suggestions are most appreciated worried... barry.b -----Original Message----- From: xml...@li... on behalf of James S. = Elkins Sent: Wed 8/12/2004 12:50 AM To: xml...@li... Cc:=09 Subject: [xmljs-users] Re: xmljs-users digest, Vol 1 #50 - 2 msgs Barry, Do I understand you correctly as saying that you're creating the first = DOM=20 in <XML for Script> and the second DOM using the browser's native=20 XmlHttpRequest object? If so, you can't copy nodes from one to the other = because one is a JavaScript object and the other is an ActiveX or = Mozilla=20 object. The standard DOM methods may be the same, but the interfaces are = implemented differently. James At 10:19 PM 12/6/2004, you wrote: >Send xmljs-users mailing list submissions to > xml...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xmljs-users >or, via email, send a message with subject or body 'help' to > xml...@li... > >You can reach the person managing the list at > xml...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of xmljs-users digest..." > > >Today's Topics: > > 1. deep copy nodes between xml documents with JS (Barry Beattie) > 2. Re: deep copy nodes between xml documents with JS (David Joham) > >--__--__-- > >Message: 1 >Date: Mon, 6 Dec 2004 17:58:41 +1000 >From: "Barry Beattie" <Ba...@al...> >To: <xml...@li...> >Subject: [xmljs-users] deep copy nodes between xml documents with JS > >hi all > >I've got a simple xml doc loaded on a page. I then get an additional = xml >doc using the xmlhttprequest object. > >what I want to do is get a deep copy of a particular node from the >additional doc and append it to the first one. > >I've tried importNode(), various combinations of cloneNode(), et all, >but can't seem to snag it. > >can anyone see where I'm going wrong? > >thanx >barry.b > > >here's the JS, run after the xmlhttprequest object gets each additional >doc > > function addAddressToMasterDoc(xmlAddress){ > var addressNode =3D3D xmlAddress.firstChild; > masterXmlDoc.importNode(addressNode); > }=3D20 > > > >masterXmlDoc (before): >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D > ><entity id=3D3D"12345" type=3D3D"student"> > <fname>Fred</fname> > <lname>Flintstone</lname> ></entity> > > >xmlAddress: >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D ><address addrType=3D3D"residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> ></address> > >masterXmlDoc (after - what I'm trying to get): >=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D= 3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D >=3D3D=3D3D=3D3D=3D3D=3D3D ><entity id=3D3D"12345" type=3D3D"student"> > <fname>Fred</fname> > <lname>Flintstone</lname> > <address addrType=3D3D"residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> > </address> ></entity> > > > > >--__--__-- > >Message: 2 >Date: Mon, 6 Dec 2004 08:18:56 -0800 (PST) >From: David Joham <dj...@ya...> >Subject: Re: [xmljs-users] deep copy nodes between xml documents with = JS >To: Barry Beattie <Ba...@al...>, = xml...@li... > > >What XML do you get after your clone/import? I won't be able to look at = >this until tonight, but >what you're describing should work -at least on first inspection... > >David > >--- Barry Beattie <Ba...@al...> wrote: > > > hi all > > > > I've got a simple xml doc loaded on a page. I then get an additional = xml > > doc using the xmlhttprequest object. > > > > what I want to do is get a deep copy of a particular node from the > > additional doc and append it to the first one. > > > > I've tried importNode(), various combinations of cloneNode(), et = all, > > but can't seem to snag it. > > > > can anyone see where I'm going wrong? > > > > thanx > > barry.b > > > > > > here's the JS, run after the xmlhttprequest object gets each = additional > > doc > > > > function addAddressToMasterDoc(xmlAddress){ > > var addressNode =3D xmlAddress.firstChild; > > masterXmlDoc.importNode(addressNode); > > } > > > > > > > > masterXmlDoc (before): > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > > <entity id=3D"12345" type=3D"student"> > > <fname>Fred</fname> > > <lname>Flintstone</lname> > > </entity> > > > > > > xmlAddress: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > <address addrType=3D"residential"> > > <addr1>12 stone st</addr1> > > <addr2>Bedrock</addr2> > > </address> > > > > masterXmlDoc (after - what I'm trying to get): > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > > <entity id=3D"12345" type=3D"student"> > > <fname>Fred</fname> > > <lname>Flintstone</lname> > > <address addrType=3D"residential"> > > <addr1>12 stone st</addr1> > > <addr2>Bedrock</addr2> > > </address> > > </entity> > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real = users. > > Discover which products truly live up to the hype. Start reading = now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > > > >--__--__-- > >_______________________________________________ >xmljs-users mailing list >xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmljs-users > > >End of xmljs-users Digest ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.=20 http://productguide.itmanagersjournal.com/ _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users |
From: James S. E. <jam...@co...> - 2004-12-11 13:34:53
|
Barry, Do I understand you correctly as saying that you're creating the first DOM in <XML for Script> and the second DOM using the browser's native XmlHttpRequest object? If so, you can't copy nodes from one to the other because one is a JavaScript object and the other is an ActiveX or Mozilla object. The standard DOM methods may be the same, but the interfaces are implemented differently. James At 10:19 PM 12/6/2004, you wrote: >Send xmljs-users mailing list submissions to > xml...@li... > >To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xmljs-users >or, via email, send a message with subject or body 'help' to > xml...@li... > >You can reach the person managing the list at > xml...@li... > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of xmljs-users digest..." > > >Today's Topics: > > 1. deep copy nodes between xml documents with JS (Barry Beattie) > 2. Re: deep copy nodes between xml documents with JS (David Joham) > >--__--__-- > >Message: 1 >Date: Mon, 6 Dec 2004 17:58:41 +1000 >From: "Barry Beattie" <Ba...@al...> >To: <xml...@li...> >Subject: [xmljs-users] deep copy nodes between xml documents with JS > >hi all > >I've got a simple xml doc loaded on a page. I then get an additional xml >doc using the xmlhttprequest object. > >what I want to do is get a deep copy of a particular node from the >additional doc and append it to the first one. > >I've tried importNode(), various combinations of cloneNode(), et all, >but can't seem to snag it. > >can anyone see where I'm going wrong? > >thanx >barry.b > > >here's the JS, run after the xmlhttprequest object gets each additional >doc > > function addAddressToMasterDoc(xmlAddress){ > var addressNode =3D xmlAddress.firstChild; > masterXmlDoc.importNode(addressNode); > }=20 > > > >masterXmlDoc (before): >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > ><entity id=3D"12345" type=3D"student"> > <fname>Fred</fname> > <lname>Flintstone</lname> ></entity> > > >xmlAddress: >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ><address addrType=3D"residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> ></address> > >masterXmlDoc (after - what I'm trying to get): >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= >=3D=3D=3D=3D=3D ><entity id=3D"12345" type=3D"student"> > <fname>Fred</fname> > <lname>Flintstone</lname> > <address addrType=3D"residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> > </address> ></entity> > > > > >--__--__-- > >Message: 2 >Date: Mon, 6 Dec 2004 08:18:56 -0800 (PST) >From: David Joham <dj...@ya...> >Subject: Re: [xmljs-users] deep copy nodes between xml documents with JS >To: Barry Beattie <Ba...@al...>, xml...@li... > > >What XML do you get after your clone/import? I won't be able to look at >this until tonight, but >what you're describing should work -at least on first inspection... > >David > >--- Barry Beattie <Ba...@al...> wrote: > > > hi all > > > > I've got a simple xml doc loaded on a page. I then get an additional xml > > doc using the xmlhttprequest object. > > > > what I want to do is get a deep copy of a particular node from the > > additional doc and append it to the first one. > > > > I've tried importNode(), various combinations of cloneNode(), et all, > > but can't seem to snag it. > > > > can anyone see where I'm going wrong? > > > > thanx > > barry.b > > > > > > here's the JS, run after the xmlhttprequest object gets each additional > > doc > > > > function addAddressToMasterDoc(xmlAddress){ > > var addressNode = xmlAddress.firstChild; > > masterXmlDoc.importNode(addressNode); > > } > > > > > > > > masterXmlDoc (before): > > ========================= > > <entity id="12345" type="student"> > > <fname>Fred</fname> > > <lname>Flintstone</lname> > > </entity> > > > > > > xmlAddress: > > ===================== > > <address addrType="residential"> > > <addr1>12 stone st</addr1> > > <addr2>Bedrock</addr2> > > </address> > > > > masterXmlDoc (after - what I'm trying to get): > > ============================== > > <entity id="12345" type="student"> > > <fname>Fred</fname> > > <lname>Flintstone</lname> > > <address addrType="residential"> > > <addr1>12 stone st</addr1> > > <addr2>Bedrock</addr2> > > </address> > > </entity> > > > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://productguide.itmanagersjournal.com/ > > _______________________________________________ > > xmljs-users mailing list > > xml...@li... > > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > > > >--__--__-- > >_______________________________________________ >xmljs-users mailing list >xml...@li... >https://lists.sourceforge.net/lists/listinfo/xmljs-users > > >End of xmljs-users Digest |
From: David J. <dj...@ya...> - 2004-12-06 16:19:07
|
What XML do you get after your clone/import? I won't be able to look at this until tonight, but what you're describing should work -at least on first inspection... David --- Barry Beattie <Ba...@al...> wrote: > hi all > > I've got a simple xml doc loaded on a page. I then get an additional xml > doc using the xmlhttprequest object. > > what I want to do is get a deep copy of a particular node from the > additional doc and append it to the first one. > > I've tried importNode(), various combinations of cloneNode(), et all, > but can't seem to snag it. > > can anyone see where I'm going wrong? > > thanx > barry.b > > > here's the JS, run after the xmlhttprequest object gets each additional > doc > > function addAddressToMasterDoc(xmlAddress){ > var addressNode = xmlAddress.firstChild; > masterXmlDoc.importNode(addressNode); > } > > > > masterXmlDoc (before): > ========================= > <entity id="12345" type="student"> > <fname>Fred</fname> > <lname>Flintstone</lname> > </entity> > > > xmlAddress: > ===================== > <address addrType="residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> > </address> > > masterXmlDoc (after - what I'm trying to get): > ============================== > <entity id="12345" type="student"> > <fname>Fred</fname> > <lname>Flintstone</lname> > <address addrType="residential"> > <addr1>12 stone st</addr1> > <addr2>Bedrock</addr2> > </address> > </entity> > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Barry B. <Ba...@al...> - 2004-12-06 07:58:03
|
hi all I've got a simple xml doc loaded on a page. I then get an additional xml doc using the xmlhttprequest object. what I want to do is get a deep copy of a particular node from the additional doc and append it to the first one. I've tried importNode(), various combinations of cloneNode(), et all, but can't seem to snag it. can anyone see where I'm going wrong? thanx barry.b here's the JS, run after the xmlhttprequest object gets each additional doc function addAddressToMasterDoc(xmlAddress){ var addressNode =3D xmlAddress.firstChild; masterXmlDoc.importNode(addressNode); }=20 masterXmlDoc (before): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= <entity id=3D"12345" type=3D"student"> <fname>Fred</fname> <lname>Flintstone</lname> </entity> xmlAddress: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D <address addrType=3D"residential"> <addr1>12 stone st</addr1> <addr2>Bedrock</addr2> </address> masterXmlDoc (after - what I'm trying to get): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D <entity id=3D"12345" type=3D"student"> <fname>Fred</fname> <lname>Flintstone</lname> <address addrType=3D"residential"> <addr1>12 stone st</addr1> <addr2>Bedrock</addr2> </address> </entity> |
From: David J. <dj...@ya...> - 2004-11-11 03:56:10
|
Hi Randy! <ingredient /> is an XML-legal way of saying "<ingredient></ingredient>" so it looks like the XML itself is OK. However, I just tried a simple test case with tags like that in both the classic DOM and W3C DOM parsers and was able to parse/read data just fine. Perhaps the XML is not well formed somewhere else? Here's the little test file recreation I put together. Maybe it will help us figure out what the problem is. The easiest place to put it is in the jsXMLParser directory... Best regards, David --- Fumigator <fum...@ar...> wrote: > HI! I'm playing with xml for <SCRIPT>, having fun, but have a > question. There is a specific xml file that was created by some > random guy that contains tags that look like this: > > <recipe name="Dark Brown" cost="1375" sellback="1250" skill="216"> > <ingredient quantity="1" name="Crushed Juniper Berries" dropped="0" /> > <ingredient quantity="1" name="Thin Metal Flask" dropped="0" /> > <ingredient quantity="6" name="Alum" dropped="0" /> > <ingredient quantity="6" name="Flask of Water" dropped="0" /> > </recipe> > > The Classic DOM does not parse the <ingredient> tags correctly. Or I > should say, I'm not sure that format of "<ingredient />", rather than > "<ingredient></ingredient>", is legal. > > Would the W3C DOM parse this tag correctly? I tried it first, but was > getting an exception error with it using Firefox. > > Any suggestions? > > -Randy Whitaker > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Fumigator <fum...@ar...> - 2004-11-11 03:01:47
|
HI! I'm playing with xml for <SCRIPT>, having fun, but have a question. There is a specific xml file that was created by some random guy that contains tags that look like this: <recipe name="Dark Brown" cost="1375" sellback="1250" skill="216"> <ingredient quantity="1" name="Crushed Juniper Berries" dropped="0" /> <ingredient quantity="1" name="Thin Metal Flask" dropped="0" /> <ingredient quantity="6" name="Alum" dropped="0" /> <ingredient quantity="6" name="Flask of Water" dropped="0" /> </recipe> The Classic DOM does not parse the <ingredient> tags correctly. Or I should say, I'm not sure that format of "<ingredient />", rather than "<ingredient></ingredient>", is legal. Would the W3C DOM parse this tag correctly? I tried it first, but was getting an exception error with it using Firefox. Any suggestions? -Randy Whitaker |
From: David J. <dj...@ya...> - 2004-10-25 18:23:54
|
Just curious, what version of XML for <SCRIPT> are you using? 3.1 fixes some bugs that 3.0 had, including one with empty elements. Take a look at http://xmljs.sourceforge.net/website/documentation-faq.html#faqknownbugs and see if maybe this is a known 3.0 issue (if that's what you're using) and if 3.1 fixes it... David --- Eljon Greene <eg...@re...> wrote: > I have a bug that I cannot solve because the error code is not helping me...Here is the > issue....When trying to change an element that is empty it comes up with the message "undefined" > when checking the error code (e.code). If I use a value for the element it works fine...Any > ideas on how to have an empty element and keep it from erroring when I add a value to it...I > have tried both the "<element/>" and "<element></element>" syntax in the XML file. > > Thanks. > > Eljon Greene > CE Software Engineer > 877.394.5644 \\ main > 904.567.2127 \\ direct > eg...@re... > www.recruitmax.com > |
From: David J. <dj...@ya...> - 2004-10-25 17:13:09
|
Can you provide a quick and tiny recreation that shows what you're seeing please? That'll help a lot. David --- Eljon Greene <eg...@re...> wrote: > I have a bug that I cannot solve because the error code is not helping me...Here is the > issue....When trying to change an element that is empty it comes up with the message "undefined" > when checking the error code (e.code). If I use a value for the element it works fine...Any > ideas on how to have an empty element and keep it from erroring when I add a value to it...I > have tried both the "<element/>" and "<element></element>" syntax in the XML file. > > Thanks. > > Eljon Greene > CE Software Engineer > 877.394.5644 \\ main > 904.567.2127 \\ direct > eg...@re... > www.recruitmax.com > |
From: Eljon G. <eg...@re...> - 2004-10-25 16:11:57
|
I have a bug that I cannot solve because the error code is not helping me..= .Here is the issue....When trying to change an element that is empty it com= es up with the message "undefined" when checking the error code (e.code). = If I use a value for the element it works fine...Any ideas on how to have = an empty element and keep it from erroring when I add a value to it...I hav= e tried both the "<element/>" and "<element></element>" syntax in the XML f= ile. Thanks. Eljon Greene CE Software Engineer 877.394.5644 \\ main 904.567.2127 \\ direct eg...@re... www.recruitmax.com |