XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Do you have a Java SAX event handler that outputs the identical XML as the input?

I'm trying to get other interested in the revive and remake of the e4x, but renaming it EXQO(ECMA-Script xml query object) and adding the sax api as methods of the XML object. Would you be interested in this?

/* signature */
"use strict"; 
var j = 0, baz = "", k = "", bar = 
"83,104,101,108,108,101,121,32,80,111,119,101,114,115,39,32,98,111,111,107,115,32,97,114,101,32,116,111,32,114,101,97,100,32,102,111,114,";

for(;bar.charAt(j);){ 
    if(bar.charAt(j) !== ","){
        k += bar.charAt(j); } else{ baz += String.fromCharCode(k)+" \v"; k = "";
    }
    j++; 
console.dir(baz);
/* end of signature */

On Jul 16, 2014, at 1:39 PM, "Simon St.Laurent" <simonstl@simonstl.com> wrote:

On 07/15/2014 01:51 PM, Costello, Roger L. wrote:
Hello Folks,

I need a Java SAX event handler that outputs the same XML as the input XML.

Do you mean byte-for-byte same, or character-for-character, or node-for-node?

Do you have such a Java SAX event handler that you would be willing to share?

I was writing one for character-by-character, but SAX (reasonably) doesn't support enough event detail for that.  I got a ways with an extended API, but between the world's lack of interest and my increasing discontent with Java for text processing, let it go.

Thanks,
Simon

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS