xmljs-users Mailing List for xml for SCRIPT (Page 3)
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: dharmendra r. <dha...@gm...> - 2007-10-31 09:01:23
|
Hi I am using xmlDom.js for parsing and other dom operations now i want to add event handlers , so that when any change accour to Dom object (basically node/element creation or modification) code can capture that . How can i use methods like *addEventListernes* on dom nodes ? Thanks in advance Dharmendra |
From: David R. <dav...@nx...> - 2007-10-18 03:00:28
|
I will be out of the office starting 2007-10-17 and will not return until 2007-10-29. I'm on vacation)! If your message is personal - please send a copy to my private email account. If it is business, and urgent re-send to con...@NX... (I will be on vacation until the 29th of October 2007) Thanks David Reid NXP Semiconductors Eindhoven NL. |
From: Dmitry K. <dmi...@ya...> - 2007-10-17 20:26:52
|
Hi, You should lok at '__loadLocalIFrameXML' method ('xmlIO.js' file) processing is located at the vary end of it: xmlString = xmlUnescapeHTMLToXML(xmlString) Be sure you want to comment this. Best regards, - Dmitry Khudorozhkov, maintainer of XML-for-SCRIPT. Amr Ellafi <am...@gm...> wrote: How to just load the XML using xmlIOLoadLocalData without being converted or processed ? just as is without any changes . Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Amr E. <am...@gm...> - 2007-10-17 18:35:35
|
How to just load the XML using xmlIOLoadLocalData without being converted or processed ? just as is without any changes . Thanks! |
From: Simon O. <sim...@we...> - 2007-10-10 17:54:06
|
Hi Dmitry, I hoped there was a no-code-change solution. It would be helpful if the parser object is accessible after parsing in the next release of XML-for-SCRIPT. I changed my version of XML-for-SCRIPT already, so that the parser can be accessed: Line 172: DOMImplementation.prototype.loadXML = function DOMImplementation_loadXML(xmlStr) { // create SAX Parser var parser; try { parser = new XMLP(xmlStr); } catch (e) { alert("Error Creating the SAX Parser. Did you include xmlsax.js or tinyxmlsax.js in your web page?\nThe SAX parser is needed to populate XML for <SCRIPT>'s W3C DOM Parser with data."); } // create DOM Document var doc = new DOMDocument(this); *this.parser = parser;* // populate Document with Parsed Nodes this._parseLoop(doc, parser); // set parseComplete flag, (Some validation Rules are relaxed if this is false) doc._parseComplete = true; return doc; }; Ok, I admit, it's a hack ;) After loadXML has returned I can print a custom error message to my gui. Greetings Simon Dmitry Khudorozhkov schrieb: > Hi Simon, > > there is a line in 'xmlw3cdom.js' file, '_parseLoop' method > (line 554, it is commented): > > // alert("Fatal Error: " + p.getContent() + "\nLine: " + > p.getLineNumber() + "\nColumn: " + p.getColumnNumber() + "\n"); > > By uncommenting this line, you'll get your debug information. > > Hope it helps, > > - Dmitry Khudorozhkov, maintainer of XML-for-SCRIPT. > > */Simon Ottenhaus <sim...@we...>/* wrote: > > Hi all, > > I'm using the DOMImplementation of XML for to parse > user-written xml. So syntax errors are likely. > > My code is: > var parser = new DOMImplementation(); > try { > var domDoc = parser.loadXML(sXml); > } catch (e) { > var sCode = parser.translateErrCode(e.code); > } > > How do I retrieve the line and the column where the error occurred? > > The XMLP-parser provides getLineNumber and getColumnNumber, but the > parser-object used in xmlw3cdom.js (line 177) cannot be accessed from > outside. > > Excuse my english, please ;) > > Greetings > > Simon > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > ------------------------------------------------------------------------ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user > panel > <http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7%20> > and lay it on us. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > |
From: Dmitry K. <dmi...@ya...> - 2007-10-09 20:56:24
|
Hi Simon, there is a line in 'xmlw3cdom.js' file, '_parseLoop' method (line 554, it is commented): // alert("Fatal Error: " + p.getContent() + "\nLine: " + p.getLineNumber() + "\nColumn: " + p.getColumnNumber() + "\n"); By uncommenting this line, you'll get your debug information. Hope it helps, - Dmitry Khudorozhkov, maintainer of XML-for-SCRIPT. Simon Ottenhaus <sim...@we...> wrote: Hi all, I'm using the DOMImplementation of XML for to parse user-written xml. So syntax errors are likely. My code is: var parser = new DOMImplementation(); try { var domDoc = parser.loadXML(sXml); } catch (e) { var sCode = parser.translateErrCode(e.code); } How do I retrieve the line and the column where the error occurred? The XMLP-parser provides getLineNumber and getColumnNumber, but the parser-object used in xmlw3cdom.js (line 177) cannot be accessed from outside. Excuse my english, please ;) Greetings Simon ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. |
From: Simon O. <sim...@we...> - 2007-10-09 14:55:29
|
Hi all, I'm using the DOMImplementation of XML for <SCRIPT> to parse user-written xml. So syntax errors are likely. My code is: var parser = new DOMImplementation(); try { var domDoc = parser.loadXML(sXml); } catch (e) { var sCode = parser.translateErrCode(e.code); } How do I retrieve the line and the column where the error occurred? The XMLP-parser provides getLineNumber and getColumnNumber, but the parser-object used in xmlw3cdom.js (line 177) cannot be accessed from outside. Excuse my english, please ;) Greetings Simon |
From: Dmitry K. <dmi...@ya...> - 2007-08-16 12:33:32
|
The answer is simple: var parser = new DOMImplementation(); you just don't create new object :) "new" keyword is a key here. Best regards, - Dmitry Khudorozhkov, maintainer of XML for SCRIPT. jon heise <ju...@cs...> wrote: I'm trying to xmljs to parse some xml in a project i'm writing however DOMImplementation always returns null for me. $.post("p/" + $("#gettehplan").val() + "/",function(data){ alert("data is " + data) var parser = DOMImplementation(); alert("parser is " + parser); }); the second alert returns undefined i'm including all of the require js files no problem but domimplementation alway returns null ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ xmljs-users mailing list xml...@li... https://lists.sourceforge.net/lists/listinfo/xmljs-users --------------------------------- Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. |
From: jon h. <ju...@cs...> - 2007-08-16 02:54:22
|
I'm trying to xmljs to parse some xml in a project i'm writing however DOMImplementation always returns null for me. $.post("p/" + $("#gettehplan").val() + "/",function(data){ alert("data is " + data) var parser = DOMImplementation(); alert("parser is " + parser); }); the second alert returns undefined i'm including all of the require js files no problem but domimplementation alway returns null |
From: Dmitry K. <dmi...@ya...> - 2007-07-21 22:17:17
|
Hi, Project is active and supported (by me, Dmitry Khudorozhkov). I'm sorry for the late updates for the XML for SCRIPT; my personal affairs took over at some point, but I'm always on the wire for questions. New release is due soon, sorry again. - Dmitry Khudorozhkov, maintainer of XML for SCRIPT. --------------------------------- Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. |
From: Jeffery B. <jef...@gm...> - 2007-07-20 18:56:05
|
Hello, I've started using xml for script and it seems to be working out for what I want it to work for. But before I get any further invested in it I'd like to know what the status of the project is. Has this been abandoned? Thanks, Jeff |
From: Thomas D. <web...@si...> - 2007-03-22 12:43:03
|
Hi everybody, I got an error using xmlw3cdom.js, in the function DOMElement.prototype.setAttributeNS, near the line 3180. I received a ReferenceError: name is not defined, when i tried to set an attribute to an element, at ligne 3211: // if this Attribute is an ID if (this.ownerDocument.implementation._isIdDeclaration(name)) { this.id = value; // cache ID for getElementById() } It seems that there's a mispelling, and that name should be qualifiedName, as the name var is not defined. A corrected version could be : // if this Attribute is an ID if (this.ownerDocument.implementation._isIdDeclaration(qualifiedName)) { this.id = value; // cache ID for getElementById() } Apologizes if this is not the correct mailing-list or contact to report errors. Have a nice day, Thomas Dubois |
From: Dmitry K. <dmi...@ya...> - 2007-03-11 23:05:30
|
Hi, The root of the problem is in the "__loadLocalIFrameXML()" function in "xmlIO.js". Find the following code: try { document.body.removeChild(dataFrame); } catch (badFailure) { The line: document.body.removeChild(dataFrame); causes the problem; by commenting it, you'll get rid of the bug. I'm unsure of why exactly this happens and I'll definitely try to resolve it. Next release (which is due to end of March) will fix this and many other problems I've found. Best regards, - Dmitry Khudorozhkov, maintainer of XML for SCRIPT. --------------------------------- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. |
From: Piet E. <pie...@gm...> - 2007-03-09 13:39:47
|
hello, i have a problem with xmlIOLoadLocalData. whenever i load my xml file from the local system it looks like the browser never stops doing "something". the cursor stays in the waiting state. at th= e same time the function fully works and i can use all of the functionalities that i need to read the content. I only have the problem in Firefox. Internet Explorer runs fine. Javascript: this.onload =3D function() { xmlIOLoadLocalData("catalog.html", "ReadXML"); } catalog.html: =AB?xml version=3D"1.0" encoding=3D"UTF-8"?=BB =ABcatalog=BB =ABproducts=BB =ABproduct name=3D"p1"/> =ABproduct name=3D"p2"/> =ABproduct name=3D"p3"/> =AB/products=BB =AB/catalog=BB i hope someone can help me with this. thanks. Piet Eckhart |
From: Brice L. <bri...@gm...> - 2007-02-22 21:39:35
|
I think your implementation is okay, you might just be using the wrong tool. I haven't used the xml parsers that are demonstrated in the examples you've been looking at, but I think the xml for js parsers are more straigt forward. I put together this example for you using the labels xml example. You can access it at http://millstone.iodp.tamu.edu/~blambi/xmljs/labels.html<http://millstone.iodp.tamu.edu/%7Eblambi/xmljs/labels.html>. The interesting part is this: function loadXmlData(xmlText) { var parser = new DOMImplementation(); var domDoc = parser.loadXML(xmlText); var root = domDoc.getDocumentElement(); var ls = root.selectNodeSet('//label'); var count = ls.getLength(); var text = "<h5>There are " + count + " labels in this document with the following names:</h5>"; text += "<ul>"; for (var i = 0; i < count; i++) { var nameNode = ls.item(i).selectNodeSet("name").item(0); text += "<li>" + nameNode.getFirstChild () + "</li>"; } text += "</ul>"; document.getElementById('info').innerHTML = text; } This just loads the xml text and then does a selectNodeSet to get the labels and then another to get the name. This is a much simpler approach than messing around with types like that other example has you doing. This mostly follows the tutorial at http://xmljs.sourceforge.net/website/contributedAddOns-xpath-documentation.html Brice |
From: Dan D. <d-w...@da...> - 2007-02-21 21:58:50
|
My apologies in advance if this is not the forum for this question. I'll admit up front that JavaScript has never been a strong suit for me and that parsing XML in any language is still new to me. After looking at a few different parsers out there, it looks like trying the XPath route might be my best bet as the data I want to retrieve will be coming from a consistent source and I will always be looking for the same tags/nodes/elements (whatever the correct terminology might be. All that said, I seem to have hit quite a stumbling block in attempting to utilize XPath... I've looked at a few pages with these two being most useful: * http://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript * http://www.zvon.org/xxl/XPathTutorial/General/examples.html But I can't seem to get my test code to return any meaningful results. So, without further ado, my sample data and code.... I am using data I found at http://www-128.ibm.com/developerworks/xml/library/x-ffox3/ (labels.xml) as my sample. I can get the data loaded into an XMLDocument and work with it in the usual ways, but none of the parsers I could find would allow me to drill down to a specific element by name in a way that worked for my application. So, now some sample JS code... If I do this: var nsResolver = XMLData.createNSResolver( XMLData.ownerDocument == null ? XMLData.documentElement : XMLData.ownerDocument.documentElement); var LabelCount = XMLData.evaluate("count(/labels/label)", XMLData, nsResolver, XPathResult.NUMBER_TYPE, null ).numberValue; LabelCount is now equal to 4 as expected. However, I seem to be unable to access a particular /labels/label/name to get a value... Here's my (latest) code: var Name = XMLData.evaluate("/labels/label[1]/name", XMLData, nsResolver, XPathResult.STRING_TYPE, null ); In this example, Name.textContent is 'undefined' when I alert() it. I even tried the following to see what would come back... var Name = XMLData.evaluate("//label/name", XMLData, nsResolver, XPathResult.ANY_TYPE, null ); alert(Name.resultType); //displays: 4 alert(Name.textContent); //displays: undefined Name.iterateNext; alert(Name.textContent); //displays: undefined So! Am I way off in my implementation? I assume that I must be to achieve the results that I am... Thanks. Dan |
From: Dmitry K. <dmi...@ya...> - 2006-12-26 17:05:41
|
Good morning/afternoon/evening/night for all users of XML for SCRIPT! As you already know from David Joham's post, I am a new maintainer of the project. This message will tell you a little about who I am, the present and the future of the library. 1. Short story about me. I am a freelance programmer from Moscow, Russia. I'm 25, not married, graduate of a Moscow State Institute of Electronics and Mathematics (Applied Maths course). Having experience of almost 10 years of C/C++ development and 5 years of web/JavaScript programming, I've been recently engaged in several XML/XSLT-related projects, and, by chance, found XML for SCRIPT to be immensely helpful. I've fixed some of the bugs listed on the project's site, sent them to David, and, having some free time and wish to make a better world, became a maintainer of the project. My "portfolio": http://www.codeproject.com/script/articles/list_articles.asp?userid=1044648 2. Development roadmap. What will be done prior to release of version 3.2: - all patches and bugfixes users have submitted since the release of v. 3.1 will be incorporated; - all (there aren't too much) bugs reported will be fixed; - relaxed-mode operation, where some requirements of XML spec. can be bypassed, will be introduced to SAX/W3C DOM/classic DOM parsers; - XPath add-on will be moved more closely to W3C recommendation conformance (full conformance, however, will not be achieved in 3.2 release); - augment the test suite with the test cases for all of the above. Plans for the near future: - choose algorithm and implement one-pass DTD validation plugin for SAX parser; - implement (incremental) DTD validation plug-in for W3C DOM parser; - push XPath add-on to full W3C recommendation conformance. Plans for the not-so-near future (probably several years): - implement XSD and RelaxNG Core validation plugins; - fully implement all SAX and SAX2 interfaces. 3. Release policy. - Intermediary versions (of either full package and distinct parts) will be released to the public from time to time. To aid this, individual branch will be created in SourceForge download area, where all development versions will be posted. 4. Contacts. On any question, feel free to contact me at: dmitrykhudorozhkov[at]yahoo[dot]com 5. Donations. If you/your organization find XML for SCRIPT very-very useful and happen to have a spare $ or eur, please contact me directly rather than using SourceForge's donation system. (Eastern Europe has some problems with PayPal, sorry :-)) ------------------- XML for SCRIPT is a very special project for me. It's not the first time I lead the development, but for the first time I've been given an honor to lead a community of such a project. I'm grateful to David for giving me the rights of a project administrator, and I promise to use them for the good of XML for SCRIPT users. Happy Christmas and New Year to You! Best regards, - Dmitry Khudorozhkov, maintainer of XML for SCRIPT. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: David J. <dj...@ya...> - 2006-12-26 03:58:34
|
Hello everyone!=0A=0AAs many of you have noticed, the development of XML fo= r <SCRIPT>=0Ahas slowed significantly since we introduced version 3.1. This= slowdown=0Ahas been root-caused to be the addition of two small children i= nto my=0Afamily. Time devoted to sleep disappeared first, followed shortly= =0Athereafter by my sanity and lastly any opportunity to participate in=0Ae= xtra-curricular coding activities.=0A=0AI've never felt though that=0AXML f= or <SCRIPT> was finished though. That's why I'm delighted to=0Aannounce tha= t we now have a new maintainer, Dmitry Khudorozhkov! Dmitry=0Ahas already s= ubmitted some very nice additions to the Classic DOM=0AParser and has laid = out a very nice road map for the future that I=0Abelieve will continue XML = for <SCRIPT>'s success.=0A=0ASince I=0Astarted working with XML for <SCRIPT= >, it's been downloaded=0Aalmost 53,000 times and has served well over a mi= llion pages from=0ASourceForge. It's been written up in magazine articles, = referenced by=0AYahoo.com and used as course material for collegiate-level = classes.=0AWe're #1 on the list when you search for "javascript xml parser"= on=0Agoogle. Most importantly, it's helped thousands of developers deliver= =0AXML-enabled projects they wouldn't otherwise have been able to. I'm=0Apr= oud to have played a part in its success.=0A=0AMoving on is the=0Aright thi= ng to do now - both for myself and for the project. As I do,=0Aplease welco= me Dmitry into his new role and bestow him the same level of=0Asupport and = encouragement you've given me all these years. XML for=0A<SCRIPT> has a bri= ght future.=0A=0A=0ABest regards,=0A=0ADavid=0A=0A |
From: Roger F. G. <rog...@ya...> - 2006-12-07 18:37:10
|
Thanks David. That looks like the ticket. The tree example might also come in handy. Classic I know. But I was about half way through creating a graphical representation of xml data (SVG) - an exercise in taking little steps between other activities - when I started wondering if everything I was doing would be better using SAX; especially since I'm using small examples in development for things that could grow arbitrarily large (will not always be graphically represented). What I have to do all looks like it might be done more efficiently in a sequential process. I'm looking forward to getting up and running with SAX. Thanks again for your help. --- David Joham <dj...@ya...> skrev: > Hi Roger, > > The documentation at > http://xmljs.sourceforge.net/website/documentation-sax.html#saxGettingStarted > is a great place to start with the SAX processing. > You can also take a look at the sample code for the > parsers at > http://xmljs.sourceforge.net/website/sampleApplications-sax.html > which will give you another view into the > functionality of the parser. > > One additional hint is that you can use > preMadeSaxEventHandler.js from the jsXMLParser > directory for your event sinks if you would like to. > This file provides a pre-made class that exposes all > of the possible events from the parser and is a > great place to start exploring... > > Best regards, > > David > > ----- Original Message ---- > From: Roger F. Gay <rog...@ya...> > To: xml...@li... > Sent: Wednesday, December 6, 2006 1:07:30 PM > Subject: [xmljs-users] Simple SAX > > > Hi. I'd like to get started using SAX in Javascript, > for the first time. I've been doing DOM for years. > I'm > one of those really busy guys who sometimes has to > take things one little step at a time, fitting > things > in between other things. > > Does anyone know of a really stripped-down simple > SAX > example with few event handlers. (Possible?) I think > once I get oriented to just bare-bones, I can easily > build up from there. > > Correlation does not prove causality. > > > > > > _________________________________________________________ > Flyger tiden iväg? Fånga dagen med Yahoo! Mails > inbyggda > kalender. Dessutom 250 MB gratis, virusscanning och > antispam. Få den på: http://se.mail.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users > > > > Correlation does not prove causality. _________________________________________________________ Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda kalender. Dessutom 250 MB gratis, virusscanning och antispam. Få den på: http://se.mail.yahoo.com |
From: David J. <dj...@ya...> - 2006-12-07 15:59:49
|
Hi Roger,=0A=0AThe documentation at http://xmljs.sourceforge.net/website/do= cumentation-sax.html#saxGettingStarted is a great place to start with the S= AX processing. You can also take a look at the sample code for the parsers = at http://xmljs.sourceforge.net/website/sampleApplications-sax.html which w= ill give you another view into the functionality of the parser. =0A=0AOne a= dditional hint is that you can use preMadeSaxEventHandler.js from the jsXML= Parser directory for your event sinks if you would like to. This file provi= des a pre-made class that exposes all of the possible events from the parse= r and is a great place to start exploring...=0A=0ABest regards,=0A=0ADavid= =0A=0A----- Original Message ----=0AFrom: Roger F. Gay <rog...@ya...= >=0ATo: xml...@li...=0ASent: Wednesday, December 6, 20= 06 1:07:30 PM=0ASubject: [xmljs-users] Simple SAX=0A=0A=0AHi. I'd like to g= et started using SAX in Javascript,=0Afor the first time. I've been doing D= OM for years. I'm=0Aone of those really busy guys who sometimes has to=0Ata= ke things one little step at a time, fitting things=0Ain between other thin= gs.=0A=0ADoes anyone know of a really stripped-down simple SAX=0Aexample wi= th few event handlers. (Possible?) I think=0Aonce I get oriented to just ba= re-bones, I can easily=0Abuild up from there. =0A=0ACorrelation does not pr= ove causality.=0A=0A=0A =0A =0A =0A___________________________= ______________________________=0AFlyger tiden iv=E4g? F=E5nga dagen med Yah= oo! Mails inbyggda=0Akalender. Dessutom 250 MB gratis, virusscanning och an= tispam. F=E5 den p=E5: http://se.mail.yahoo.com=0A=0A----------------------= ---------------------------------------------------=0ATake Surveys. Earn Ca= sh. Influence the Future of IT=0AJoin SourceForge.net's Techsay panel and y= ou'll get the chance to share your=0Aopinions on IT & business topics throu= gh brief surveys - and earn cash=0Ahttp://www.techsay.com/default.php?page= =3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A________________________________= _______________=0Axmljs-users mailing list=0Ax...@li...urceforge.= net=0Ahttps://lists.sourceforge.net/lists/listinfo/xmljs-users=0A=0A=0A |
From: Roger F. G. <rog...@ya...> - 2006-12-06 20:07:51
|
Hi. I'd like to get started using SAX in Javascript, for the first time. I've been doing DOM for years. I'm one of those really busy guys who sometimes has to take things one little step at a time, fitting things in between other things. Does anyone know of a really stripped-down simple SAX example with few event handlers. (Possible?) I think once I get oriented to just bare-bones, I can easily build up from there. Correlation does not prove causality. _________________________________________________________ Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda kalender. Dessutom 250 MB gratis, virusscanning och antispam. Få den på: http://se.mail.yahoo.com |
From: David J. <dj...@ya...> - 2006-12-03 05:01:30
|
=0AHi Lucho,=0A=0AThanks for the bug report. As far as I know, no one is tr= ying to get attrributes without quotes working. I suspect neither xmljs DOM= paser will work for you in this case. Is there any reason the attributes a= ren't quoted?=0A=0ADavid=0A=0A----- Original Message ----=0AFrom: Luc Giave= lli <lu...@kn...>=0ATo: xml...@li...=0ASent: Thurs= day, November 30, 2006 5:54:45 PM=0ASubject: [xmljs-users] attributes witho= ut quotes=0A=0A=0A=0A=0A =0A =0A=0A<!--=0A=0A /* Style Definitions */=0A p.= MsoNormal, li.MsoNormal, div.MsoNormal=0A=09{margin:0in;=0Amargin-bottom:.0= 001pt;=0Afont-size:12.0pt;=0Afont-family:"Times New Roman";}=0Aa:link, span= .MsoHyperlink=0A=09{color:blue;=0Atext-decoration:underline;}=0Aa:visited, = span.MsoHyperlinkFollowed=0A=09{color:purple;=0Atext-decoration:underline;}= =0Aspan.EmailStyle17=0A=09{=0Afont-family:Arial;=0Acolor:windowtext;}=0A _f= iltered {=0Amargin:1.0in 1.25in 1.0in 1.25in;}=0Adiv.Section1=0A=09{}=0A-->= =0A=0A=0A=0A=0A=0A=0AHi,=0A =0A=0A =0A =0A=0AI=92m using xmldon and I noti= ced that the parser goes=0Ainto an infinite loop if there are attributes wi= thout quotes.=0A =0A=0A =0A =0A=0AThere is a bug at the end of the _XMLDoc= _parseTag =0A =0A=0Athis.pos =3D this.parseAttribute(src, pos, n);=0A =0A= =0Ait should be =0A =0A=0Apos =3D this.parseAttribute(src, pos, n);=0A =0A= =0A =0A =0A=0Athen the parser will just skip the attributes for that tag.= =0A =0A=0A =0A =0A=0A =0A =0A=0AAnyone has coded something to get the par= ser to accept=0Aattributes without quotes ?=0A =0A=0A =0A =0A=0A =0A =0A= =0A =0A =0A=0AThanks=0A =0A=0A =0A =0A=0ALucho=0A =0A=0A=0A=0A=0A--------= -----------------------------------------------------------------=0ATake Su= rveys. Earn Cash. Influence the Future of IT=0AJoin SourceForge.net's Techs= ay panel and you'll get the chance to share your=0Aopinions on IT & busines= s topics through brief surveys - and earn cash=0Ahttp://www.techsay.com/def= ault.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A___________________= ____________________________=0Axmljs-users mailing list=0Axmljs-users@lists= .sourceforge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/xmljs-users= =0A=0A=0A=0A=0A |
From: David R. <dav...@nx...> - 2006-12-02 04:03:35
|
I will be out of the office starting 2006-12-01 and will not return until 2006-12-07. I'm on vacation (in Scotlanda)! If your message is personal - please send a copy to my private email account. If it is business, and urgent re-send to con...@ph... (I will be on vacation until the 7th of December 2006) Thanks David Reid NXP Semiconductors Eindhoven NL. |
From: Luc G. <lu...@kn...> - 2006-12-01 00:54:53
|
Hi, =20 I'm using xmldon and I noticed that the parser goes into an infinite loop if there are attributes without quotes. =20 There is a bug at the end of the _XMLDoc_parseTag=20 this.pos =3D this.parseAttribute(src, pos, n); it should be=20 pos =3D this.parseAttribute(src, pos, n); =20 then the parser will just skip the attributes for that tag. =20 =20 Anyone has coded something to get the parser to accept attributes without quotes ? =20 =20 =20 Thanks =20 Lucho |
From: David J. <dj...@ya...> - 2006-08-26 02:03:54
|
Hi Ed,=0A=0AI can't reproduce this with the file I'm attaching which I thin= k recreates your environment as close as I can without your ajax client. T= he only thing I can think of is that maybe your servlet is sending a differ= ent character encoding with the XML than your page is loaded with and the t= ext nodes are getting confused somehow...=0A=0ADid you have any better luck= with the W3C DOM Parser?=0A=0ABest regards,=0A=0ADavid=0A=0A=0A----- Origi= nal Message ----=0AFrom: "Tornick, Edward x. -ND" <Edward.x.Tornick.-ND@esp= n.com>=0ATo: David Joham <dj...@ya...>; xml...@li...urceforge.= net=0ASent: Thursday, August 24, 2006 7:32:08 AM=0ASubject: RE: [xmljs-user= s] Parser error: expected document node...=0A=0AI am using a javascript pac= kage called prototype.js on the client to do=0Aan ajax call to a servlet.= =0AThe response ends up in a variable in a javascript function on the=0Acli= ent.=0A=0A var xmlResponse =3D originalRequest.responseText;=0A=0AWhen I lo= ok at the response it looks like this...=0A=0A <?xml version=3D"1.0"?>= =0A <vendor>=0A <name>=0A harry=0A </name>= =0A <address>=0A 100 Cherry Tree Lane=0A </addres= s> =0A </vendor>=0A=0AxmlResponse is being processed by xmldos.js= =0A=0A=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=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=0A var objDom =3D new XMLDoc(xmlResponse, xmlErro= r);=0A var objDomTree =3D objDom.docNode;=0A var tag1Elements =3D objDomT= ree.getElements("name");=0A var element =3D tag1Elements[0];=0A var name = =3D element.getText();=0A =0A var tag1Elements =3D objDomTree.getElements= ("address");=0A var element =3D tag1Elements[0];=0A var address =3D eleme= nt.getText();=0A =0A alert(name);=0A alert(address); =0A=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= =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=0A=0AThe nodes are being found. And my alerts show "harry" and "1= 00 cherry=0ATree Lane" but the error=0ARoutine xmlError is called as each = node is parsed.=0A=0AI will try the other parser as you suggested if I don'= t get anywhere=0Awith this. =0A=0AThanks David=0A=0AEd=0A=0A-----Original M= essage-----=0AFrom: David Joham [mailto:dj...@ya...] =0ASent: Thursday= , August 24, 2006 9:16 AM=0ATo: Tornick, Edward x. -ND; xmljs-users@lists.s= ourceforge.net=0ASubject: Re: [xmljs-users] Parser error: expected document= node...=0A=0A=0ANothings obviously wrong, but I have a suspicion about you= r=0Aresponse.setContentType("text/xml");=0Aline. How are you getting the da= ta into xmljs? Is it going to a frame=0Asomething else? Normally, you just = write the XML directly into the web=0Apage (escaping characters as necessar= y) in a textarea or something else.=0AI'm curious if what you're doing migh= t be causing the problem somehow.=0A=0AWhat happens if you use the w3c pars= er? Does the same error occur?=0A=0ACan you send the list a minimal sample = HTML page that causes this error?=0AIf we have that, we can probably dive i= nto it and figure out what's=0Agoing wrong...=0A=0ADavid=0A=0A--- "Tornick,= Edward x. -ND" <Edw...@es...> wrote:=0A=0A> I am using th= e domparser.js and I get this error... Error expected =0A> document node fo= und text.=0A> =0A> It is from this code in the xmldom.js....=0A> =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A> =0A> =0A> function = _XMLDoc_handleNode(current)=0A> {=0A> /*=0A> function: _XMLDoc_handle= Node=0A> Author: mi...@id...=0A> Description:=0A> adds a = markup element to the document */=0A> if ((current.nodeType=3D=3D'COMME= NT') && (this.topNode!=3Dnull)) {=0A> return this.topNode.addElemen= t(current);=0A> }=0A> else if ((current.nodeType=3D=3D'TEXT') || = =0A> (current.nodeType=3D=3D'CDATA')) {=0A> // if the current node = is a text node:=0A> // if the stack is empty, and this text node is= n't just =0A> whitespace, we have=0A> // a problem (we're not in a = document element)=0A> if(this.topNode=3D=3Dnull) {=0A> = if (trim(current.content,true,false)=3D=3D"") {=0A> return = true;=0A> }=0A> else {=0A> return t= his.error("expected document node, found: " + =0A> current);=0A> = }=0A> }=0A> else {=0A> // otherwise, append t= his as child to the element at the =0A> top of the stack=0A> re= turn this.topNode.addElement(current);=0A> }=0A> =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=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=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A> =3D=3D The values are being = parsed correctly but the error is showing up:=0A> My server side code that = generates the xml looks like this....=0A> =0A> response.setContentT= ype("text/xml");=0A> PrintWriter out =3D response.getWriter();=0A> = out.println("<?xml version=3D\"1.0\"?>");=0A> out.println("= <vendor>");=0A> out.println("<name>");=0A> out.println("har= ry"); =0A> out.println("</name>"); =0A> out.println("<ad= dress>");=0A> out.println("100 Cherry Tree Lane");=0A> out.= println("</address>"); =0A> out.println("</vendor>");=0A> =0A> I= s anything obviously wrong with this????=0A> =0A> Thanks,=0A> Ed=0A> =0A> >= --------------------------------------------------------------------=0A> >= -----=0A> Using Tomcat but need to do more? Need to support web services,= =0Asecurity?=0A> Get stuff done quickly with pre-integrated technology to m= ake your job=0A=0A> easier Download IBM WebSphere Application Server v.1.0.= 1 based on =0A> Apache Geronimo =0A> http://sel.as-us.falkag.net/sel?cmd=3D= lnk&kid=3D120709&bid=3D263057&dat=3D1216=0A> 42>=0A________________________= _______________________=0A> xmljs-users mailing list=0A> xmljs-users@lists.= sourceforge.net=0A> https://lists.sourceforge.net/lists/listinfo/xmljs-user= s=0A> =0A=0A=0A=0A |