Multiple XML formats

I have some servlets that are requesting tracking data from multiple carriers for an e-commerce site. The data is coming back in XML from each different carrier, but the format is different. Is there a way for me to create a "general" parsing method that will work for them all?
UPS:
<?xml version="1.0"?>
<TrackResponse>
  <Response>
    <TransactionReference>
      <CustomerContext>Example 1</CustomerContext>
      <XpciVersion>1.0001</XpciVersion>
    </TransactionReference>
    <ResponseStatusCode>1</ResponseStatusCode>
    <ResponseStatusDescription>Success</ResponseStatusDescription>
  </Response>
  <Shipment>
    <Shipper>
      <ShipperNumber>12345E</ShipperNumber>
      <Address>
        <AddressLine1>2010 WARSAW RD</AddressLine1>
        <City>ROSWELL</City>
        <StateProvinceCode>GA</StateProvinceCode>
        <PostalCode>30076</PostalCode>
        <CountryCode>US</CountryCode>
      </Address>
    </Shipper>
    <ShipTo>
      <Address>
        <AddressLine1>1000 MANSELL ROAD</AddressLine1>
        <AddressLine2>CIM GROUP</AddressLine2>
        <AddressLine3>APOLLO SECTION</AddressLine3>
        <City>ROSWELL</City>
        <StateProvinceCode>GA</StateProvinceCode>
        <PostalCode>30076</PostalCode>
        <CountryCode>US</CountryCode>
      </Address>
    </ShipTo>
...  Airborne:
<?xml version="1.0"?>
<ECommerce action="Response" version="1.1" timestamp="2002/06/24T16:23:27" transmission_reference="DA71319F">
<Requestor>
<ID>COMPA_0124</ID>
          <Password><![CDATA[********]]></Password>
     </Requestor>
<Track action="Get" version="1.0" test="True">
<Shipment>
<TrackingNbr>1231230011</TrackingNbr>
     <Result>
<Code>0</Code>
          <Desc>Airbill found.</Desc>
     </Result>
     <ShipmentType>
<Code>1</Code>
          <Desc>Document</Desc>
     </ShipmentType>
     <Service>
<Code>E</Code>
          <Desc>Express</Desc>
     </Service>
     <Origin>
<Station>ROA</Station>
     </Origin>
     <Destination>
<Station>MCN</Station>
     </Destination>
</Shipment>USPS:
<TrackResponse>
<TrackInfo ID="EJ958083578US">
<TrackSummary>
<EventTime>8:10 am</EventTime>
<EventDate>June 1, 2001</EventDate>
<Event>DELIVERED</Event>
<EventCity>WILMINGTON</EventCity>
<EventState>DE</EventState>
<EventZIPCode>19801</EventZIPCode>
<EventCountry/>
<FirmName></FirmName>
<Name></Name>
<AuthorizedAgent></AuthorizedAgent>
</TrackSummary>
<TrackDetail>
<EventTime>11:07 am</EventTime>
<EventDate>May 30, 2001</EventDate>
<Event>NOTICE LEFT</Event>
<EventCity>WILMINGTON</EventCity>
<EventState>DE</EventState>
<EventZIPCode>19801</EventZIPCode> <EventCountry/>
...and then there is FedEx.

You could write one program that could accept any of those formats. But I wouldn't do that, because that program would be a mess to start with, and as you tried to make it work with new formats, or changes to the existing formats, it would become an awful mess.
What I would do would be to write one XSL transformation for each of the formats. Its job would be to convert a document in (say) USPS format to a document in a standard format that you define. Then you would only have to write one parser, which would accept a document in your standard format and produce whatever output you needed -- database updates, reports, notifications, whatever.
Your standard format would have to be able to mirror all of the data structures in the incoming formats, of course, but it wouldn't have to have the same element names as any of them.

Similar Messages

  • Multiple file formats in sender SFTP

    Hi,
    I have multiple file formats to pick.
    for example:
    SAPxyz_deltaDATE.xml
    SAPabc_deltaDATE.xml
    SAP123_deltaDATE.xml
    need below
    SAPxyz_delta*.xml   and  SAPabc_delta*.xml  with one communication channel (need help here)
    and SAP123_delta*.xml  another communication channel (i can do this)
    when i use comma for two file formats SAPxyz_delta*.xml,SAPabc_delta*.xml; the files are not picked. whats the correct way to pick two file formats with one channel?
    Thanks.
    Prema

    Hi,
    please check this thread and similar threads...
    https://scn.sap.com/thread/3315484
    Ambrish

  • XML Format in PI 7.1

    Hi All,
    Actually,I need to create the XML format for the Source fields.
    I have created the source  data type of Complex type.also the message type of the same name.
    The contents of the data type  Info  are 
    name
    age
    qualification
    dateofbirth
    While at the receiving end I am supposed to get only  3 of them.
    I have never created the XML structure previousely.
    Please tell me how will it be.
    If there is anything relevant to the XML format ,please tell me.
    Thanks in advance.

    Hi Swetha,
       Your understanding is right.
    If your file have two records then you need to create two records in your mapping test tab. But by default it has only one record, so what you do is on your source root node do a right click and click on Duplicate Subtree. It was duplicate the same structure. Now you have two records and fill both of them and take the xml. So now your file has two records. Similarly you can do extend to your test cases.
    1.So I should go to the Test Tab of the Message Mapping section to do this,is it?
    Since you want to test the message mapping for multiple records .you have to do the replication of the structure(duplicattion).if the occurenes metioned for that structure is more than one its fine .Else it will throw an error during run time due to mismatch of occurences(eg., if u mentioned occurences as 1 and if u send two records it will throw an error).
    2.After that I should click on the root node in the Test tab and should do the right click on duplicate subtree so that I can mention 2 values for 1 field and can get the 2 records ,similarly the elevant XML, is it ?
    Your understanding is right in this case too.You replicate the field or structure u want and give the values as u said (consider occurenes here too).It will serve your puropse.
    3.After that the only thing that I need to do is the copying the XML code in the XSD section which is the relevant XML file,and consider it as the Source XML Structure,is it?
      Since you  mentioned that you dont have source xml to be tested .You can use the XML code that has been generated in during testing by saving it as filename.xml that u mentioned in the communication channel.
    Hope you got the point.
    Thanks,
    Ram.

  • XML format in SWi1

    Hi,
    Is there a way to view a form (example job salary change form) in xml format in SWi1 or in any other transaction.
    Basically we would like to view the contents of the form like action, reason for action, old value, new values effective date...to replicate the same form in quality server.
    Thanks,
    Sriram

    Hi Swetha,
       Your understanding is right.
    If your file have two records then you need to create two records in your mapping test tab. But by default it has only one record, so what you do is on your source root node do a right click and click on Duplicate Subtree. It was duplicate the same structure. Now you have two records and fill both of them and take the xml. So now your file has two records. Similarly you can do extend to your test cases.
    1.So I should go to the Test Tab of the Message Mapping section to do this,is it?
    Since you want to test the message mapping for multiple records .you have to do the replication of the structure(duplicattion).if the occurenes metioned for that structure is more than one its fine .Else it will throw an error during run time due to mismatch of occurences(eg., if u mentioned occurences as 1 and if u send two records it will throw an error).
    2.After that I should click on the root node in the Test tab and should do the right click on duplicate subtree so that I can mention 2 values for 1 field and can get the 2 records ,similarly the elevant XML, is it ?
    Your understanding is right in this case too.You replicate the field or structure u want and give the values as u said (consider occurenes here too).It will serve your puropse.
    3.After that the only thing that I need to do is the copying the XML code in the XSD section which is the relevant XML file,and consider it as the Source XML Structure,is it?
      Since you  mentioned that you dont have source xml to be tested .You can use the XML code that has been generated in during testing by saving it as filename.xml that u mentioned in the communication channel.
    Hope you got the point.
    Thanks,
    Ram.

  • Quotation marks removed from XML formatting

    See http://forums.adobe.com/message/4035539#4035539
    The original data was
    <?xml version="1.0" encoding="utf-8" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
        <id>examples.html.HelloWorld</id>
        <versionNumber>0.3</versionNumber>
        <filename>HelloWorld</filename>
        <initialWindow>
            <content>HelloWorld.html</content>
            <visible>true</visible>
            <width>400</width>
            <height>200</height>
        </initialWindow>
        <icon>
            <image16x16>"-C C:/Program Files (x86)/Adobe/AIRSDK/samples/icons/."</image16x16>
            <image32x32>"-C C:/Program Files (x86)/Adobe/AIRSDK/samples/icons/."</image32x32>
            <image48x48>"-C C:/Program Files (x86)/Adobe/AIRSDK/samples/icons/."</image48x48>
            <image128x128>"-C C:/Program Files (x86)/Adobe/AIRSDK/samples/icons/."</image128x128>
        </icon>
    </application>
    but posting it as XML formatting removed the apostrophes (in the <icon> section).  Not very good if you want to show how you've done something, or instruct another user how to do it...
    Message was edited by: ʇɐb ɹəuəllıʍ - edited multiple times because of "unexpected error has occurred".

    apostrophes = '
    Quotes = "
    Colon = :
    Semicolon = ;
    Comma = ,
    Period = .

  • FlatFile to produce multiple xml Files

    Hi - my requirement is I need to convert the below FF to xml format producing unique ID record and multiple Question and Answer Record under it.
    Output should be of this format :For 5 different IDs, 5 seperate xml's should be produced
    <ID> 000000001 </ID>
    <CODE> CNC_OHCA </CODE>
    <MemberID> 00123213</MemberID>
    <AnswersInfo>
    <Question> CNC_RESON_DD </Question>
    <Answer> 01 Initial </Answer>
    <DATE> 2013-12-31T23:59 </DATE>
    </AnswerInfo>
    <AnswersInfo>
    <Question> CNC_PSDN_RADIO </Question>
    <Answer> 01 </Answer>
    <DATE> 2013-12-31T23:59 </DATE>
    </AnswerInfo>
    <AnswersInfo>
    <Question> CNC_RESON_LABEL </Question>
    <Answer> 01 Initial </Answer>
    <DATE> 2013-12-31T23:59 </DATE>
    </AnswerInfo>
    MBH

    I was able to debatch the FF into xml, from here I have to group <ID> into 1 unique record and create xml
    - <Root xmlns="http://Test_ParallelTest.Test">
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_RESONASSESSMENT_DD</QuestionID>
    <Answer>01 Initial</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_PSDRNKALCOHL_RADIO</QuestionID>
    <Answer>01</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_RACEETHNIC_LABEL</QuestionID>
    <Answer>01</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_CRGIVERDOB1_DATE</QuestionID>
    <Answer>Answer optional, not indicated.</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_GENDER_RADIO</QuestionID>
    <Answer>Female</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000001</ID>
    <AssessmentID>CNC_OHCAIGEAIDASEMNT_06132013</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_MEMBERSSN_TXT</QuestionID>
    <Answer>Answer optional, not indicated.</Answer>
    <Date>2013-12-31T23:59:59.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000002</ID>
    <AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_RESONASSESSMENT_DD</QuestionID>
    <Answer>01 initial</Answer>
    <Date>2014-01-01T00:02:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000002</ID>
    <AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
    <MedicaidID>00123213</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_ASIAN_CKBOX</QuestionID>
    <Answer>Answer optional, not indicated.</Answer>
    <Date>2014-01-01T00:02:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000002</ID>
    <AssessmentID>CNC_OHLTCBIOPSYSOCV2_022414</AssessmentID>
    <MedicaidID>00123214</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_STANDBY_CKBOX</QuestionID>
    <Answer>Yes</Answer>
    <Date>2014-01-01T00:03:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000003</ID>
    <AssessmentID>CNC_OHREALMR_06132013</AssessmentID>
    <MedicaidID>00123214</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_STRENGTHS_TEXT</QuestionID>
    <Answer>Arm</Answer>
    <Date>2014-01-01T00:03:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000003</ID>
    <AssessmentID>CNC_OHREALMR_06132013</AssessmentID>
    <MedicaidID>00123214</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_STROKE_CKBOX</QuestionID>
    <Answer>No</Answer>
    <Date>2014-01-01T00:03:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000004</ID>
    <AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
    <MedicaidID>00123215</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_SATREATMENT_CKBOX</QuestionID>
    <Answer>No</Answer>
    <Date>2014-01-01T00:03:20.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000004</ID>
    <AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
    <MedicaidID>00123215</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_DESCSURGHIST_TEXT</QuestionID>
    <Answer>Saw last May 2012 and outpaitient</Answer>
    <Date>2014-01-01T00:03:20.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000004</ID>
    <AssessmentID>CNC_PHQ-9_11JAN2012</AssessmentID>
    <MedicaidID>00123215</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_TAKESMEDS_CKBOX</QuestionID>
    <Answer>Yes</Answer>
    <Date>2014-01-01T00:03:20.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000005</ID>
    <AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
    <MedicaidID>12321666</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_NOTPRESCRIBED_RADIO</QuestionID>
    <Answer>01 No</Answer>
    <Date>2014-01-01T00:04:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000005</ID>
    <AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
    <MedicaidID>12321666</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_TEETHDENT_CKBOX</QuestionID>
    <Answer>Yes</Answer>
    <Date>2014-01-01T00:04:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000006</ID>
    <AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
    <MedicaidID>12321667</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_NOTPRESCRIBED_RADIO</QuestionID>
    <Answer>01 No</Answer>
    <Date>2014-01-01T00:04:00.000</Date>
    </AnswerInfo>
    </R1>
    - <R1 xmlns="">
    <ID>0000000006</ID>
    <AssessmentID>CNC_OHMODFYMORSKYSCL_061313</AssessmentID>
    <MedicaidID>12321667</MedicaidID>
    - <AnswerInfo>
    <QuestionID>CNC_TEETHDENT_CKBOX</QuestionID>
    <Answer>Yes</Answer>
    <Date>2014-01-01T00:04:00.000</Date>
    </AnswerInfo>
    </R1>
    </Root>
    MBH

  • Question about creating multiple XML files from same query

    I have a query like this:
    select * from emp;
    ename empno deptno
    Scott 10001 10
    Tiger 10002 10
    Hanson 10003 20
    Jason 10004 30
    I need to create multiple output files in xml format for each dept
    example:
    emp_dept_10.xml
    emp_dept_20.xml
    emp_dept_30.xml
    each file will have the information for employees in different departmemts.
    We are using DBMS_XMLGEN package to generate XML.
    The reason I need to do this is to avoid executing the same query 200 times for generating the same output for different departments. Please let me know if it is practically possible to do this.
    Any input is greatly appreciated.
    Thanks a lot!!

    one solution i can think of is to use SQLX operator instead of dbms_xmlgen.
    here is a sample example.
    declare
      l_xmltype xmltype;
      l_deptno  emp.deptno%type;
    begin
      for i in (select * from emp order by deptno)
      loop
        select xmlconcat(
                    xmlelement("ename", i.ename)
                   ,xmlelement("sal", i.sal)
                   ,xmlelement("detpno", i.deptno))
          into l_xmltype from dual;
        dbms_output.put_line(l_xmltype.GetClobVal());
      end loop;
    end;
    /Now here you can open the query once, keep writing to the file till the deptno
    is same, when the deptno changes, close the file and open a new file with new
    deptno and start writing.
    Note : in this way you will have to add the xmlprolog manually to each of the file which should not be an issue. after opening the file add the prolog string manually.
    Hope this helps.

  • I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the butten is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • How to generate Campaign details in XML format for sending to downstream sy

    Dear gurus,
    we have a requirement to send the Campaign details from CRM to some Downstream system in the XML format through PI interfaces. We want to include the following campaign details in the structure.
    <SAPTOAL DATE="03-MAR-2011" TIME="13:25pm">
          <CAMPAIGN>
                <ID></ID>
                <NAME></NAME>
                <RUNDATE></RUNDATE>
                <RUNTIME></RUNTIME>
                <STARTDATE></STARTDATE>
                <ENDDATE></ENDDATE>
                <RECORDCOUNT></RECORDCOUNT>
          </CAMPAIGN>
          <TARGETGROUP>
                <ID></ID>
                <NAME></NAME>
    </TARGETGROUP>
          <BUSINESSPARTNERS>
                <BUSINESSPARTNER>
                      <ID>001</ID>
                <TARGETGROUPID></TARGETGROUPID>
                <FIRSTNAME></FIRSTNAME>
                      <LASTNAME></LASTNAME>
                      <TITLE></TITLE>
                      <SUFFIX></SUFFIX>
                      <EMAIL></EMAIL>
                      <REPFIRSTNAME></REPFIRSTNAME>
                      <REPLASTNAME></REPLASTNAME>
                      <REPPHONE></REPPHONE>
                      <REPSIGNATUREURL></REPSIGNATUREURL>
                      <REPPICTUREURL></REPPICTUREURL>
                      <REPEMAIL></REPEMAIL>
                </BUSINESSPARTNER>
                <BUSINESSPARTNER>
                      <ID>002</ID>
                <TARGETGROUPID></TARGETGROUPID>
                      <FIRSTNAME></FIRSTNAME>
                      <LASTNAME></LASTNAME>
                      <TITLE></TITLE>
                      <SUFFIX></SUFFIX>
                      <EMAIL></EMAIL>
                      <REPFIRSTNAME></REPFIRSTNAME>
                      <REPLASTNAME></REPLASTNAME>
                      <REPPHONE></REPPHONE>
                      <REPSIGNATUREURL></REPSIGNATUREURL>
                      <REPPICTUREURL></REPPICTUREURL>
                      <REPEMAIL></REPEMAIL>
                </BUSINESSPARTNER>
          </BUSINESSPARTNERS>
    </SAPTOAL>
    We have already tried the following things in SPRO.
    CRM --> Marketing --> Marketing Planning and Campaign Management --> Campaign Execution --> Define File Export Variants
    But with this we were not able to get the full XML structure, as required above. We got only this much.
    <?xml version="1.0" encoding="utf-8" ?>
    <DATA>
    <ITEM>
       <Field_1>Test Email.</Field_1>
       <Field_2>Test Email.</Field_2>
       <Field_3>ABC Company.</Field_31>
    </ITEM>
    </DATA>
    Any pointers or help on this will he greatly appreciated.rgrds,
    Randhir Soni

    Hi Prabhu,
    The program SAPFPAYM generates the payment Medium  on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
    Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
    Regards,
    Rony

  • Concurrent request submission displays Output in xml format ?

    Hi ,
    I am submitting a concurrent request from workflow which is an xml publisher report . my problem when the program is run individually it displays the output correctly in rtf format but when the same request is submitted from worklfow the output comes in xml format ?
    What could be the problem ?
    I am using the standard submission "FND_WF_STANDARD.SUBMITCONCPROGRAM " program and assigning the values directly to it . the submission activity is working fine but the output comes as mentioned above.
    Regards,
    Skg

    Kiran ,
    I am not using fnd_request.submit request coc I don't need to capture the user information for my workflow .
    I am only using the standard " FND_WF_STANDARD.SUBMITCONCPROGRAM " . this Package only submits the concurrent program through workflow in a function.
    no need of backend programming.
    My job is to submit and move to the next function . the output will be determined via custom profile option.
    now, for this package I am directly assigning the values like appshort name , prog shrt name , and parameter.
    there is no mention of layouts anywhere in the standard workflow package .
    its very urgent for me friend.
    Regards,
    Shashank.

  • Problem with getting a D2K report in XML format

    Hi all,
    Could any body give a solution for this problem.
    I have a matrix report like following:
    Q_Statement_Of_Net_Assets ----> main query
    |
    G_Cross ----> Cross product
    | CS_VALUE
    | CS_NET_ASSET
    | CF_COSTI
    |
    | --------------------------------- |
    | | G_CTIF | | ------> Like this I have two more groups
    | --------------------------------- |
    ...... |
    -----------------------------------------------|
    My requirement is i want to print CS_VALUE, CS_NET_ASSET, CF_COSTI values in XML report, these values i am getting in a Normal/RTF format reports.
    But i am not getting in XML format report.
    thanks in advance.
    Vasu

    Thanks Schellyc
    actually I want to creat a new SOAPMessage for the very beginning like this:
    try{
                MessageFactory mf = MessageFactory.newInstance();
                SOAPMessage msg = mf.createMessage();
                SOAPPart sp = msg.getSOAPPart();
                //create the header container
                SOAPEnvelope se = sp.getEnvelope();
                SOAPHeader sh = se.getHeader();
                SOAPBody sb = se.getBody();
            }catch(Throwable e) {
                e.printStackTrace();
            }and I want to get the empty header from this newly created SOAPEnvelop and add my own content into the header as well as the empty body.
    I wrote the code by following the example from the jaxm api.
    can anybody tell me any further information about the NullPointerException?

  • Data is not converting in XML format in output while download in report

    Hi All,     While downloading the report in XML format value '&' is not changing its XML format '&amp', but showing in debug mode and sam thing while download its not showing in output. showing in debug like; MS NA - DCS Tooling & Automation but in output showing the data like:  MS NA - DCS Tooling & Automation because of this getting issue. Please help me out . Thanks and Regards Sankil

    In that case, it is correct.
    Try replacing & with &amp; before downloading xml in case you want & to appear as &amp; in web browser view.

  • How do I use "Generate" to produce multiple file formats from the "Default" layer?

    I have a Photoshop file with ~50 layers, each with unique file names for images I want to create.  I want to produce in both .png and .svg file formats for each layer.
    Rather than adding the code to each layer individually can multiple file formats be assigned on the "Default" layer? What is the correct syntax to do that?
    Something like:
    default  100% .png, svg/ *.svg
    ... to generate the .png versions and then also create a folder called "svg" that contains all the .svg versions of those images?

    Dear Thomas,
    I entered TM and found the sparsebundle under the Filesync library. However, it appears NOT to be recoverable and I tried double clicking on it but it doesnt do anything other than show a summary of what it is.
    By the way, I really do appreciate your comments and agree completely. Something strange happened with my syncing of Idisk (which is set to "automatic"). It has been working fine for years. But for some reason, it stopped two days ago and did not let me know. When I tried to put something manually on it (through drag/drop), it never showed up on the Idisk on the cloud which made me notice and check it out by going to Mobileme through the browser. I then went to the tech service for Idisk and they explained that something probably got corrupted so just hit STOP syncing and then hit Automatic again. Which is what I did. Then everything from the cloud went to my Idisk on my computer and for some reason, the latest version of my excel spread sheet for attendance showed two days ago, not last night. so I lost wed/thursday classes. I KNOW it was on my Laptop which is backed up to TM every morning.. Thats why I believe that the latest file IS on my TM backup for this morning. But I can't get to it. Any other help would be appreciated.
    Skip

  • How can I convert IDoc in XML format w/DTD into a string?

    I want to send by e-mail outbound IDoc in XML format with its document type definition (DTD).
    I want to be able to get the same output result into a string than the XML file IDoc port type with DTD activated.  I have created a FM (based on SAP "OWN_FUNCTION") assigned to an IDoc port of type ABAP-PI that executes the following processing steps:
    1-Extract outbound IDoc information to get the sender & recipient mail addresses (EDP13 / EDIPHONE tables).
    2-Convert & Transform IDoc data into XML string using FM IDX_IDOC_TO_XML.
    3-Prepare and send e-mail with XML attachement using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I cand generate the e-mail with the XML file attachement but FM IDX_IDOC_TO_XML does not convert the IDoc with proper formating and DTD.
    What should I use to accomplish the IDoc conversion to XML w/DTD into a string?
    Should I use XSLT tools ?
    How does that work?
    Thank you
    Carl

    muks wrote:
    Use decimal string to number
    Specifically, you can define a constant with a different datatype on the input on the lower left if you need a different datatype (e.g. U8, I64, DBL, etc) Are all your values integers or do you also need to scan fractional numbers? In this case, you should use "fract/exp string to number" instead.
    LabVIEW Champion . Do more with less code and in less time .

  • How to configure for Multiple XML

    Hi,
    We were successful in working with single xml as a input. Now we are using multiple xml as a input for a single transaction. With the references and the suggestion in documents(working with xml files.pdf) related to Documaker we have changed configuration settings in FSISYS.INI and AFGJOB.JDT.
    Down below we have mentioned those changes.
    Input Extract file has been changed as F_Sch.DAT; following is the content in the extract file
    COM_LOB_1111 .\INPUT\F_SCH1.xml
    COM_LOB_1111 .\INPUT\F_SCH2.xml
    COM_LOB_1111 .\INPUT\F_SCH3.xml
    F_SCH1.xml,F_SCH2.xml,F_SCH3.xml
    <?xml version="1.0"?>
    <global>
         <lm>
              <COM>COM</COM>
              <LOB>LOB</LOB>
              <TRANSACTIONID>121212</TRANSACTIONID>
         </lm>     
         <Foodcard>
              <Accname>Alex</Accname>
              <Email>[email protected]</Email>
              <Accid>1234123412341234</Accid>
              <Accno>1234123412341234</Accno>
              <Accaddr1>address1</Accaddr1>
              <Accaddr2>address2</Accaddr2>
              <Accaddr3>address3</Accaddr3>
         </Foodcard>     
    </global>
    Changes to FSISYS.INI
    < ExtractKeyField >
    Key = 1,3
    SearchMask = 1,COM_LOB_1111
    < TRN_FIELDS >
    COM = 1,3,N
    LOB = 5,3,N
    PolicyNum = 9,3,N
    < DATA >
    ExtrFile = C:\FAP\DLL\Computer\INPUT\F_Sch.DAT
    AFGJOB.JDT
    ;ImportXMLFile;2;SCH=1,COM_LOB_1111 15,19
    Inspite of those changes that made, we were not able to generate the output using three xml as a input.
    ***error details.***
    [04:16:29PM] Warning: Company - LOB - Transaction
    [04:16:29PM] Warning: DM17115: : The DownLoadFAP option is set to Yes, this option should be set to No for optimal performance. Check the RunMode control group, DownLoadFAP option.
    [04:16:29PM] Error: Company - LOB - Transaction
    [04:16:29PM] Error: DM12041: : FAP library error: Transaction:<>, area:<DXMLoadXMLRecs>
    code1:<48>, code2:<0>
    msg:<XML Parse Error: The 1 chars before error=<C>, the 20 chars starting at error=< >>.
    [04:16:29PM] Error: Company - LOB - Transaction
    [04:16:29PM] Error: DM12041: : FAP library error: Transaction:<>, area:<DXMLoadXMLRecs>
    code1:<48>, code2:<0>
    msg:<syntax error at line 1 column 0>.
    [04:16:29PM] Error: Company - LOB - Transaction
    [04:16:29PM] Error: DM10292: in <RULXMLExtract()>: Unable to <DXMLoadXMLRecs()>.
    [04:16:29PM] Warning: Company - LOB - Transaction
    [04:16:29PM] Warning: DM13023: in RCBSendToErrBatch(): Unable to assign the transaction to the error batch. The SentToManualBatch field is not defined in the TrnDfdFile.
    [04:16:29PM] Error: Company - LOB - Transaction
    [04:16:29PM] Error: DM10947: in NoGenTrnTransactionProc(): Unable to RULLoadXtrRecs(pRPS).
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12018: in RPDoBaseFormsetRulesForward(): Unable to <WINNOGENTRNTRANSACTIONPROC>().
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12066: in RPProcessOneTransaction(): Unable to RPDoBaseFormsetRulesForward(pRPS, RP_PRE_PROC_A).
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12064: in RPProcessTransactions(): Unable to RPProcessOneTransaction(pRPS). Skipping the rest of the transactions for this Base. See INI group:< GenDataStopOn > option:TransactionErrors.
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12004: in RPProcessOneBase(): Unable to RPProcessTransactions(pRPS).
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12001: in RPProcessBases(): Unable to RPProcessOneBase(pRPS). Skipping the rest of the Bases for this batch run. See INI group:< GenDataStopOn > option:BaseErrors.
    [04:16:51PM] Error: Company - LOB - Transaction
    [04:16:51PM] Error: DM12127: in RPRun(): Unable to RPProcessBases(pRPS).
    [04:16:51PM] Error: An error occurred during processing.
    Kindly let us know in case of any solution for this issue.
    Regards,
    Balaji R.

    It looks like it is unable to load your XML files. Depending on how your configuration is laid out, you may want to list full path names in your extract file - we make use of the same technique in 11.5, which I would imagine isn't terribly different in this respect from 12.0. Our configuration is such that we run Gendata at one level, read an extract file in the deflib folder, and the input files are in an input folder, so each entry in the extract file is C:\fap\mstrres\sampco\input\input1.xml.
    Not sure if that is analogous to your setup or not, but based on the errors, either it can't find the file, so it is a pathing issue, or the file contents are invalid.
    Tony

Maybe you are looking for

  • Why can't i e-mail photos from my iphone 5

    I can't e-mail or send text message with photos from my iPhone 5s. What are the solutions to resolve this issue? Thanks.

  • Pdf printing problem

    I can not print a pdf file on MacBook Pro with Snow Leopard (10.6.8) installed.  I have tried deleting and reinstalling printers (both Brother and Canon).  I have tried both Adobe Reader and Preview.  I get nothing but blank pages.

  • Black screen in Windows 8.1 on Late 2009 27" iMac

    Hi, My Late 2009 27" iMac i7 will not allow the display to turn on under Windows 8.1. It's not just black, its as though its powered off. This is some kind of a software problem. I am certain of this because I ran Windows 8.1 just fine since its rele

  • How to create and use a node globally  as well as internal table

    HI, Kindly let me know how can I create a node & internal table globally and which I can use them in various methods in view and controller as well, if u can provide an example it could be very help full. my requirment is uploading a multiple files i

  • Can I add more memory to a MacBook Pro after purchase?

    What can handle the most memory (RAM?) and speed - MacBook Pro or iMac?  I'll be using Adobe Creative Suite 6.  I prefer MacBook Pro because of portability, but don't know how it compares to iMac in memory and speed.  Thank you.