Customer Portal

Comments 4

  • Avatar
    jausperger
    0
    Comment actions Permalink
    Hello, I believe you can use the first use case. The first component reads a xml file (last matadata field must use eofDelimiter if you use UniversalDataReader..), the second component is XSLTTranformer and the last component is XMLXpathReader.

    There is one condition you must set up appropriate field/record size in 'defaultProperties' file for the xml data.
  • Avatar
    mgrove
    0
    Comment actions Permalink

    The first component reads a xml file (last matadata field must use eofDelimiter if you use UniversalDataReader..)

    "jausperger"


    which component reads a raw XML file? i've only been able to do that in the past with the XmlXPathReader. could you give me an idea of components to use and the metadata setup?
  • Avatar
    jausperger
    0
    Comment actions Permalink
    You can use whatever reader (JMS, Universal, DBInputTable,...) and get whole xml into a field. I don't know how big is your xml file and it can cause memory problem. If you have simple file, you can use ie UniversalDataReader and metadata:

    <Metadata id="Metadata0">
    <Record name="recordName1" type="delimited">
    <Field eofAsDelimiter="true" name="field1" type="byte"/>
    </Record>
    </Metadata>

    Or you can also use SystemExecute/JavaExecute component the xslt tranformation.
    Or you can derive XSLTransformer component for your purpose but this is not easy for common user.
  • Avatar
    mzatopek
    0
    Comment actions Permalink
    Suggested solution is reasonable only for really small xml files, which are able to fit in a single field. This XSLT component should be able transform xml directly from file as well. I have committed new feature request to our bug system.

Please sign in to leave a comment.