Tim Brown wrote:
Can an xml file be transferred to the mainframe and
still look like an xml file in TSO ?

Whatever I transfer the file it gets wrapped.

<?xml version="1.0" standalone="yes"?>  <DATAPACKET 
Version="2.0"><METADATA><FIELDS><FIELD attrname=
"LOCN_ID" fieldtype="i4"/><FIELD attrname="SERIAL_NUM" fieldtype="string" 
WIDTH="12"/><FIELD attrnam
e="POSITION" fieldtype="i2"/>


Actually, the above _is_ what an XML file looks like: one continous
character string. The line breaks and indentation is not there to
begin with, so you have to add it. Most XML processors allow the
extraneous line breaks and indentation and mostly ignore it.

How are you planning to process the data? You could write a program
or even just an XSLT style sheet to do transformation. (You might
find some useful ideas in our paper "Introduction to XSLT" found
at http://www.trainersfriend.com/General_content/Book_site.htm
especially the parts about transformation.

You could just transfer the file into your z/OS UNIX file system
(HFS or zFS), where it is more natural, and process the file there.





Would like this

<?xml version="1.0" standalone="yes"?> <DATAPACKET Version="2.0">
   <METADATA>
    <FIELDS>
       <FIELD attrname="SERIAL_NUM" fieldtype="string" WIDTH="12"/>

Tim Brown
Systems Specialist - Project Leader
Central Hudson Gas & Electric
284 South Ave
Poughkeepsie, NY 12601
Email: tbr...@cenhud.com <mailto:tbr...@cenhud.com> Phone: 845-486-5643
Fax: 845-486-5921
Cell: 845-235-4255


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-393-8716
http://www.trainersfriend.com

  z/OS Application development made easier
    * Our classes include
       + How things work
       + Programming examples with realistic applications
       + Starter / skeleton code
       + Complete working programs
       + Useful utilities and subroutines
       + Tips and techniques

==> Ask about being added to our opt-in list:              <==
==>   * Early announcement of new courses                  <==
==>   * Early announcement of new techincal papers         <==
==>   * Early announcement of new promotions               <==

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to