IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  XML - Could not close the file

    Posted 01/30/08 05:23 PM

    Originally posted by: rarw


    Hi,

    I have created an XSD from an XML file and then imported the schema in the type tree to produce a .mtt.

    The WTx map errors on the input XML file. The errors produced are shown in the process trace file (attached) and the xml trace file. In brief: “cannot close the file”.

    This problem was presented to IBM support; the result of their findings is that the XML is invalid (via “Stylus Studio”). (Unknown element 'File', XML document is not valid.)

    I have not been able to reproduce the “invalid XML” conclusion (via Visual Studio 2005 or XMLSPY).

    We have tried fiddling with the XSD; but the results are similar. Alternative errors are that "File" is not recognized.

    I appreciate any insight that you can give.
    Thanks,
    Becky
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: XML - Could not close the file

    Posted 01/30/08 05:26 PM
      |   view attached

    Originally posted by: rarw


    I have attached a zip file with files and maps that were sent to IBM support.

    Becky
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange

    Attachment(s)



  • 3.  Re: XML - Could not close the file

    Posted 02/01/08 10:53 AM

    Originally posted by: rarw


    Hi,

    I was able to successfully process the xml file by creating a new xsd via Visusal Studio 2005 and adding the reference to the xsd in the input file.

    <File xmlns="http://tempuri.org/BCPS03S_0109.xsd"> instead of <File>

    The file will not process in WTx unless the xsd is referenced in the file. Thus, I am not sure if the new xsd had anything to do with the solution since I had to edit the map for the new xsd and I do not have the time to experiment to see if the previous xsd (in zip file) works or not, along with the xsd reference in the input file.

    Also, the file will not process unless the type tree at the DOC level specifies the xsd as http://tempuri.org/BCPS03S_0109.xsd BPS03S_0109.xsd. Just BPS03S_0109.xsd will not work. Also, the xsd must be in the map directory.

    We have another process that has XML as input and it does not require the specifications stated above. It would be nice to know why the setup for this map needs to be "hard coded" in order for the XML file to process in WTx.

    Any ideas?

    Thanks,
    Becky
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: XML - Could not close the file

    Posted 02/06/08 03:45 PM

    Originally posted by: rarw


    This problem has been resolved in post titled "XML validation with XSD specified in Type Tree ".

    Becky
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender