[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML and COBOL
My apologies if I did not answer the original question. In my post I was describing how an organization I work with will be processsing XML on the mainframe. We came to the conclusion that parsing XML from inside COBOL apps was impractical and unnecessary. Others may differ. To clarify our tactics: All new XML-oriented apps will be written in Java. Interfaces to existing apps are via files and/or access to database tables via JDBC. The java apps will use SAX/DOM as appropriate. There has been some talk of using COBOL to _output_ data using XML-syntax. No attempt has been made to interface an XML processor directly to COBOL. I write this with the hope that someone wrestling with these issues will see that alternatives exist to using COBOL XML parsers -- if you are running a recent release of OS/390. good luck! Steven Marcus Aware Technologies, Inc. --- Ken North <ken_north@c...> wrote: > Steven Marcus wrote: > > << If you are running a relatively recent release of OS/390 > (not > MVS) you can use an XML parser written in Java. IBM's java > parser is available at alphaworks.ibm.com and supports > EBCDIC<->Unicode conversions. > > You can integrate your COBOL and Java environments thru the > file > system bridge available with java-OS/390, or via DB/2. There > may > be other ways of passing data between Java apps and COBOL but > someone else will have to speak up. > > Steven, > > The issue isn't being able to bridge data and files, but being > able to > process information in memory. The forthcoming DB2 XML > Extender will > include the capability of bridging XML files and mapping them > to DB2 > columns. That's not the problem. > > The problem is working with in-memory structures to process > document > objects or events. The extant XML parsers support the Document > Object > Model (DOM) and SAX (events). If you use a Java XML parser > that targets > DOM, for example, it produces an object structure Java > understands, but > not COBOL. You'd have to write a library that interfaces COBOL > to Java > objects using CALLs, not disk READs and WRITEs. > > Not an easy proposition -- unless someone has implemented > Object COBOL > with bindings for IDL, Java, etc. > > > ================== Ken North ============================= > http://ourworld.compuserve.com/homepages/Ken_North > ken_north@c... 71301.1306@c... KenNorth@m... > Ken North Computing 2604B El Camino Real, #351 Carlsbad, CA > 92008-1214 > =========================================================== > > > > xml-dev: A list for W3C XML Developers. To post, > mailto:xml-dev@i... > Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and > on CD-ROM/ISBN 981-02-3594-1 > To (un)subscribe, mailto:majordomo@i... the following > message; > (un)subscribe xml-dev > To subscribe to the digests, mailto:majordomo@i... the > following message; > subscribe xml-dev-digest > List coordinator, Henry Rzepa (mailto:rzepa@i...) > > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|