Customer Portal

XML parsing with XMLReader component

Comments 2

  • Avatar
    imriskal
    0
    Comment actions Permalink
    Hi, scatto86,

    You have to modify your xpath expression and add outPort attribute to the inner context instead of outer context. You will iterate over Record elements.

    <Context xpath="/soapenv:Envelope" namespacePaths='soapenv="http://schemas.xmlsoap.org/soap/envelope/";cs="http://www.endeca.com/MDEX/conversation/2/0"'>
    <Context xpath="./soapenv:Body/cs:Results/cs:ContentElement/cs:ResultRecords/cs:Record" outPort="0">
    <Mapping cloverField="FactPost_PostId" xpath="cs:attribute[@name='FactPost_PostId']" />
    <Mapping cloverField="FactPost_TimeId" xpath="cs:attribute[@name='FactPost_TimeId']" />
    <Mapping cloverField="FactPost_Type" xpath="cs:attribute[@name='FactPost_Type']" />
    </Context>
    </Context>

    Best regards,
  • Avatar
    scatto86
    0
    Comment actions Permalink
    Thank u very much. Problem solved! :D

Please sign in to leave a comment.