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.  XMLParser error on valid (per XMLSpy) data

    Posted 01/17/07 11:29 AM

    Originally posted by: Margo


    I used the type tree editor to import a .dtd. The type tree builds successfully, yet when attempting to validate input generage the following parser error. Has anyone encountered this, and found a solution?

    (Level 1: Offset 0, len 0, comp 1 of 1570, #1, DI 00000009:)
    External Parser returned Error:
    TYPE X'0002' (Error (-1), "XMLParser: Input XML data is invalid."
    SAXParseException, Fatal error line: 155 column: 32 An exception occurred! Type:XMLPlatformException, Message:Could not read data from file).

    External Parser returned Error
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 01/17/07 11:41 AM

    Originally posted by: john.gibby


    What version are you on. I suspect you are on some 8.X version. If so, open the type tree and edit the properties of the DOC element. In the properties there is a field that has the dtd listed that you created the tree from. Make sure the correct path is in there. It defaults to just the filename of the dtd/xsd and for that to work, the dtd/xsd must be in the same directory as the map. Otherwise you will need to put the full path to the dtd/xsd for it to work from its existing location.

    Hopefully this will help.

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


  • 3.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 01/17/07 12:58 PM

    Originally posted by: Margo


    John, thanks for your response. The culprit was an include of a .dtd that I hadn't noticed, moving that .dtd to the map directory solved the problem. Thanks for the clue!
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 04/02/08 12:55 PM

    Originally posted by: SystemAdmin


    Hi Guys,
    I am having the same issue as mentioned in this post.
    XML SPY says valid and when I import and try run the map, I am getting
    External Parser returned Error:
    TYPE X'0002' (Error (-1), "XMLParser: Input XML data is invalid."
    SAXParseException, Fatal error line: 1 column: 3 Expected a markup declaration .

    I tried changing the location value in the doc from
    http://schemas.xmlsoap.org/soap/envelope/ SubmitLoanCalculationRequest.xsd to SubmitLoanCalculationRequest.xsd so that it can refer the xsd.

    Now I am getting the error,
    TYPE X'0002' (Error (-1), "XMLParser: Input XML data is invalid."
    SAXParseException, Error line: 1 column: 77 Schema in C:\WTXWorkspace\LoanCalc\SubmitLoanCalculationRequest.xsd has a different target namespace from the one specified in the instance document .).

    INPUT 1 exists, but its type is in error.

    Can somebody, please help me to identify what's going wrong?
    I am using 8.1.0.3 build 37.

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


  • 5.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 04/03/08 12:31 PM

    Originally posted by: SystemAdmin


    Removing the entry
    <!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd"> from the xml.xsd fixed the issue.
    Not sure, why that was causing issue. XML spy is saying, well formatted, but xml importer was throwing warning.
    Anyway, it works now.

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


  • 6.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 04/16/08 04:03 PM

    Originally posted by: SystemAdmin


    Maheshpn-
    I noticed a message stating 'removing the entry' - does this mean that your issue is not resolved, or did you just remove the issue? Just curious because we are on the same version having the same issue and just trying to determine if this could be a bug with this version. Thanks.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 7.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 04/23/08 03:31 PM

    Originally posted by: SystemAdmin


    Well, I guess, we removed the issue.
    Our Shema guy, said, we don't need that line in the xml.xsd as it's not been used. I just took a shot by removing it. One thing I noticed is, Earlier, while importing in TypeTree, I was getting warnings on this, which I ignored and was throwing error during mapping.
    After removing that line, I reimported with ZERO warnings and it also solved the problem.
    I am not sure, what that XMLSchema.dtd used for. But, our schemas works without it.

    Hope this helps.

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


  • 8.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 06/09/09 08:30 AM

    Originally posted by: SystemAdmin


    Hi,

    i have an small xml-File which validated against the corresponding dtd-File.
    The typetree for WTX was produced by the TypeDesigner by importing the dtd.

    When i´m trying to read the xml-File on the first Input-Card in WTX I´m getting a log.xml-File which says:
    <!--End of document -->
    <StatusMessage>XMLParser: XML data is valid.</StatusMessage>
    <DetailedStatusMessage>
    </DetailedStatusMessage>
    <ReturnCode>0</ReturnCode>
    </Card>
    </XMLRunLog>

    But the Trace-File says:
    (Level 0: Offset 0, len 647, comp 1 of 0, #1, DI 00000036:)
    Data at offset 0 ('<FIXML DTDVersio') was found to be of TYPE
    X'0002' (Doc DTD).

    External Parser returned Error

    End of Validation messages for INPUT CARD 1.
    End of Execution messages.

    What is the problem of WTX (8.1.0.3 Build 37)?

    Thanks
    Ben
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 9.  Re: XMLParser error on valid (per XMLSpy) data

    Posted 06/09/09 09:18 AM
      |   view attached

    Originally posted by: SystemAdmin


    For better understanding I´ve posted the three files (xml, dtd and mtt)

    Maybe that helps.

    Hopefully
    Ben
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender

    Attachment(s)