Sax xml format problem

I must parse an xml file(quite large) and there is an "<" character inside of an attribute name (instead of "& lt").
Of course it appears an SAXParseException and the program stops; the attribute name is not important for me (for example I could ignore < ), but I want that the program to continue to parse.
Which is the best way to solve this problem?
thanks, liviu

XML parsers will not parse documents unless they are well-formed XML.
Your document is not well-formed XML.
Therefore it follows that you must fix the document. Contact the person who sent it to you and tell them not to send you garbage any more.

Similar Messages

  • SAX XML format

    Hi all,
    I've got the following unsual XML format
    <doc>hello <name attr="1" attr2="2">Tom</name>. i am <name>Sue</name>. cheers</doc>
    How do I write a SAX parser to read and parse this file and the result should be (in a vector or collection or whatever)
    doc:hello .i am .cheers
    name:Tom
    name:Sue
    (basically node names and their values)
    Thanks & regards,
    Tim

    Don't waste your time writing an XML parser. Save yourself several months and use one of the XML parsers that are already available. For the particular problem, I would not use Java at all. I would use XSLT, in which it is one line of code to do what you want.

  • XML format problem

    Dear all,
    I am generating a XML file in AS400 FTP directory, XML file is generated correctly when I open in IE it opens with all the taggs in new lines but when I open it in notepad or editor all contents are coming in One line.
    Is there any way I can get the Content same as it displayed in IE browser. is there any option available in File adapter?
    NO File content conversion is used in File.
    Chirag

    its from File adapter simple one to one graphical mapping is used.
    also when I open the file in notepad with wrap option the structure is not coming in vertical format instead it is
    <?xml version="1.0" encoding="utf-8" ?><ns1:MT_PurchaseOrderDetailDB_EDI xmlns:ns1="urn:Ducati-EDI:PurchaseOrderDetail"><RecordSet><FileEmpty>N</FileEmpty><FileType>U_ORDERS</FileType><FileCreated>20091211 093908</FileCreated><FileCompany>DUCATI MOTORS</FileCompany><Header><id_order_header>5500000011 00010</id_order_header><id_network>DUCATI_MOTOR</id_network><id_supplier>IT02451420968</id_supplier><id_ordertype>LPA</id_ordertype><IssueDate>20090706</IssueDate><OrderNumber>5500000011-00010</OrderNumber><DeliveryLocation/><FaxOrder>038/ 616110</FaxOrder><IssuerType>803</IssuerType><IssuerDescription>SGORBATI ALB. MOT.</IssuerDescription><ToBeCollected>N</ToBeCollected><GeneralDescription/><VatExcemption/><Currency>EUR</Currency><Payment>Bank transfer 90 days</Payment><Shipment/><Packaging/><ReturnNote>Ex Works</ReturnNote><Vettore/><SupplierCode>FF15937</SupplierCode><CurrentPayment>5500000011</CurrentPayment><CurrentShipment>2009-06-26</CurrentShipment><CurrentReturnNote>Ex Works</CurrentReturnNote><HeaderNote/><LineItems><id_order_line>5500000011 00010 0001</id_order_line><CounterLine>0001</CounterLine><IssuedDate>20090928</IssuedDate><IssuedQuantity>25.000 </IssuedQuantity><ProductCode>70010431A</ProductCode><Unit>ST</Unit><PriceUnit>ST</PriceUnit><IssuedPrice4Unit>32 </IssuedPrice4Unit><ConvRate>1 </ConvRate><I_Description>ALBERO MOTORE 1198
    which is coming when it opens in IE.
    chirag
    is there any other way I cann

  • SAX XML Parser problem

    Hi,
    I have a standard .xml file and a file called TemplateContentHandler that parses the info in the xml doc but there is an error in it. See below:
    TemplateContentHandler.java
    if ( strElementName.equals( TemplateConstants.RNC_Module_LDN_TU1 ) ) {
                timingUnit1TagExistInDefaultTemplateFile = true;
                System.err.println("timingUnit1TagExistInDefaultTemplateFile for TU1 == "+timingUnit1TagExistInDefaultTemplateFile);
                System.err.println("strValue for TU1 == "+strValue);
                tTemplate.setRNC_Module_LDN_TU1( strValue );
                Trace.exit();
                return;
            if ( strElementName.equals( TemplateConstants.RNC_Module_LDN_TU2 ) ) {
                timingUnit2TagExistInDefaultTemplateFile = true;
                System.err.println("timingUnit2TagExistInDefaultTemplateFile for TU2 == "+timingUnit2TagExistInDefaultTemplateFile);
                System.err.println("strValue for TU2 == "+strValue);
                tTemplate.setRNC_Module_LDN_TU2( strValue );       
                Trace.exit();
                return;
            }DefaultTemplate
    <RNC_Module_LDN_TU2>ManagedElement=1,Equipment=1,Subrack=MS,Slot=5,PlugInUnit=1</RNC_Module_LDN_TU2>
    <RNC_Module_LDN_TU1>ManagedElement=1,Equipment=1,Subrack=MS,Slot=4,PlugInUnit=1</RNC_Module_LDN_TU1>
    OutPut
    root@atrcus13> timingUnit2TagExistInDefaultTemplateFile for TU2 == true
    strValue for TU2 == ManagedElement=1,Equipment=1,Subrack=MS,Slot=5,PlugInUnit=1
    timingUnit1TagExistInDefaultTemplateFile for TU1 == true
    strValue for TU1 == ManagedElement=1,Equipment=1,Subrack=MS,SlottimingUnit1TagExistInDefaultTemplateFile for TU1 == true
    strValue for TU1 == =4,PlugInUnit=1
    as you can see it parses the Tag <RNC_Module_LDN_TU1> twice and splits it in2 pieces. does anyone know why this is? Also I added a dirty hack whcih works:
    private int timimngUnit1Tagcounter = 0;
        private int timimngUnit2Tagcounter = 0;
    if( timimngUnit1Tagcounter == 0) {
                    tempTU1 = strValue;
                    timimngUnit1Tagcounter++;
                    Trace.message("FIRST TIME STRVALUE === "+strValue);
                    tTemplate.setRNC_Module_LDN_TU1( strValue );
                else {
                    Trace.message("SECOND TIME STRVALUE === " + tempTU1+strValue);
                     tTemplate.setRNC_Module_LDN_TU1( tempTU1+strValue );
                     timimngUnit1Tagcounter = 0;
                }but now the parser is screwing up other tags in the file; anyone have any ideas?
    Thanks,
    Vinnie

    In which method is the code you've posted called?
    Given your results, I'd suspect that it's in characters, and strValue is a string created from the character data passed in.
    in that case, read
    http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/ContentHandler.html#characters(char[],%20int,%20int)
    in particular
    The Parser will call this method to report each chunk of character data. SAX parsers may return all contiguous character data in a single chunk, or they may split it into several chunks; however, all of the characters in any single event must come from the same external entity so that the Locator provides useful information.
    The accepted pattern of use where you want to process all character data between tags in one go is to use a StringBuffer to acculmulate the characters, then process them in the following endElement or beginElement method.
    Pete

  • 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?

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • Attempt to process file failed with Exception in XML Parser-format problem

    Hi all,
    Iam getting an unusual error in the J2EE stack in XI.
    And the message is:
    006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
    This means that error occured during content conversion of XML to the prescribed file format.
    Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
    Thanks in advance...
    karun

    Hi Bhavesh,
    Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
    The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
    2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
    2006-11-30 17:30:50 Success Start converting XML document content to plain text
    2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
    2006-11-30 17:31:07 Error Exception caught by adapter framework: null
    2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
    2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
    2006-11-30 17:31:07 Success The message status set to WAIT.
    2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
    2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
    2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1

  • Converting a result of query into XML format

    Hi,
    I am going to use DBXML,DBBOM and DBXSL
    ie PLSXML utilities to convert the records returned after querying the data into XML format.Is it possible to do this using these packages?
    Should i use Oracle SQL XML Utility?
    Which would be better?

    I've used both utilities and I personally like the concept of SQL Utility. I'm still
    having some problem with encoding issues
    but it seems a better tool to use with Java.
    If I'm just going to be using PL/SQL, I'll
    use PLSXML utilities. Note that PLSXML does
    not support SAX nor will XSQL servlet work
    with it.
    null

  • 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.

  • Oracle reports in xml format end with stat_low = 6 stat_high = 0

    hi
    i have a problem with my reports
    i have oracle application 11.5.10.2 on linux 32 redhat 4 update 5
    after apply the RUP 6
    my character_set is :American_America.AR8MSWIN1256
    base lang American
    install lang ARABIC
    when i generate the reports in xml format i get:
    Inventory: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    ZMCINVTRREG1 module: ZMC Transaction Register Report
    Current system time is 04-AUG-2009 14:32:30
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_BREAK_ID='1'
    P_RPT_UOM='2'
    P_ORG='223'
    P_QTY_PRECISION='3'
    P_GLCC_STRUCT_NUM='50289'
    P_TXN_DATE_LO='2009/08/04 00:00:00'
    P_TXN_DATE_HI='2009/08/04 00:00:00'
    P_AUDIT_DETAIL='2'
    P_REASON_DETAIL='2'
    P_LOC_DETAIL='2'
    P_CATEGORY_DETAIL='2'
    P_SERIAL_DETAIL='2'
    P_LOT_DETAIL='2'
    P_CATG_SET_ID='1'
    P_CATG_STRUCT_NUM='101'
    -- Start of Reports Command --
    ar60runb
    P_CONC_REQUEST_ID=373985
    P_BREAK_ID='1'
    P_RPT_UOM='2'
    P_ORG='223'
    P_QTY_PRECISION='3'
    P_GLCC_STRUCT_NUM='50289'
    P_TXN_DATE_LO='2009/08/04 00:00:00'
    P_TXN_DATE_HI='2009/08/04 00:00:00'
    P_AUDIT_DETAIL='2'
    P_REASON_DETAIL='2'
    P_LOC_DETAIL='2'
    P_CATEGORY_DETAIL='2'
    P_SERIAL_DETAIL='2'
    P_LOT_DETAIL='2'
    P_CATG_SET_ID='1'
    P_CATG_STRUCT_NUM='101'
    report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
    batch=yes
    destype=file
    desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
    desformat=XML
    -- End of Reports Command --
    Request language is :
    AMERICAN
    Request territory is :
    AMERICA
    XML_REPORTS_XENVIRONMENT is set to:
    /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Enabling XML_REPORTS_ENVIRONMENT based environment switching
    The Character-Set of the System is:
    AR8MSWIN1256
    Environment will now switch to UTF-8 code-set.
    Parts of this log file may not display correctly
    as a result. This is an expected behavior.
    Converting parameters to UTF-8
    -- Start of Reports Command Converted to UTF-8 --
    ar60runb
    P_CONC_REQUEST_ID=373985
    P_BREAK_ID='1'
    P_RPT_UOM='2'
    P_ORG='223'
    P_QTY_PRECISION='3'
    P_GLCC_STRUCT_NUM='50289'
    P_TXN_DATE_LO='2009/08/04 00:00:00'
    P_TXN_DATE_HI='2009/08/04 00:00:00'
    P_AUDIT_DETAIL='2'
    P_REASON_DETAIL='2'
    P_LOC_DETAIL='2'
    P_CATEGORY_DETAIL='2'
    P_SERIAL_DETAIL='2'
    P_LOT_DETAIL='2'
    P_CATG_SET_ID='1'
    P_CATG_STRUCT_NUM='101'
    report=/oraapp/prodappl/inv/11.5.0/reports/US/INVTRREG.rdf
    batch=yes
    destype=file
    desname=/oraapp/prodcomn/admin/out/PROD_apps/o373985.out
    desformat=XML
    -- End of Reports Command --
    XML_REPORTS_XENVIRONMENT is :
    /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /oraapp/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Previous NLS_LANG Environment Variable was :
    American_America.AR8MSWIN1256
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 6
    stat_high = 0
    emsg:was terminated by signal 6
    *** glibc detected *** double free or corruption (!prev): 0x08bf6a78 ***
    Report Builder: Release 6.0.8.25.0 - Production on Tue Aug 4 14:32:30 2009
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Reset original NLS_LANG in environment as :
    American_America.AR8MSWIN1256
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 373985.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 373985 on node APPS at 04-AUG-2009 14:32:37.
    Post-processing of request 373985 completed at 04-AUG-2009 14:32:38.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 04-AUG-2009 14:32:38
    can any one help me with it????

    hi,,,
    it seems OS package version conflict
    Please check glibc and openmotif version (its responsible for reports)
    and
    Set the environment variable MALLOC_CHECK_=0 and bounce the Concurrent Managers
    MALLOC_CHECK_ can be changed in two places :-
    1. Add this to the $APPL_TOP/custom<TWO_TASK>_<HOSTNAME>.env
    MALLOC_CHECK_=0
    Then restart the concurrent managers and retest
    2. Change it in the adovars.env file
    Again bounce the concurrent managers and retest
    THANKS (ZzZ)
    Edited by: zzz on Aug 5, 2009 8:59 AM
    Edited by: ZzZ on Aug 5, 2009 9:00 AM

  • Convert PDF to XML Format . Can´t get it working :(

    Hi everybody,
    I am a Rocky in Acrobat Scriptingand I need some helpd to convert a PDF file into an XML format using the build in javascript console.
    The only thing I got so far is:
    this.saveAs("/e/test.xml","com.adobe.acrobat.xml-1-00")
    I got this information from the refrence guide, but I did not find an accurate example. Can you lend me a hand ? If you find a solution can you also explain me the different sections of the code because I still want to learn something besides using the copy and paste option.
    Thank you very much:
    Roland

    Bernd Alheit wrote:
    What happens when you try it?
    The problem is I tried it several times, but nothing happens at all.  The reference guide mentioned a second file with the ending *.xls will be created but nothing happens at all. Can you help me out ?

  • Conversion of Minitab to xMII XML format

    Hi,
      how to convert minitab file into xml format. i tried possibilities but facing problems. i tried for two psiibilities.
    1) i imported minitab file(.mtw) into BLS text loader. then i added flat file parser then StringList to XML parser. but it doesnt show correct xml output. it shows each row as single item.
    2) I saved minitab file as text file by applying comma seperator. then i opened that file in BLS. this file having column names but in BLS it consider each item as single row. for example if  i have 2x2 rows / columns means, BLS consider it as 4 rows and take column name also as row.
    how to solve it? how to convert minitab file as it is(with .mtw) extension to xMII XML format.
    -senthil

    Senthil,
    In xMII 11.5 SP3 in the Logic Editor under Misc Functions -> Minitab Export
    -Sam

  • Download internal table in XML format

    Hi experts,
    I want to download an internal table into an XML format.
    How can I achieve this?
    I have used the GUI_DOWNLOAD earlier for XLS purpose, will that work in this case too?
    Thanks,
    Ajay.

    Hi Ajay,
      You can use the below format
    DATA : gs_xml TYPE lvc_t_fccl.
    (Fill lt_Table here)
        TRY.
            CALL TRANSFORMATION id SOURCE root = lt_Table
                 RESULT XML gs_xml.
          CATCH cx_st_error.
    ENDTRY.
    Then Call GUI_DOWNLOAD, passing gs_XML as data_tab and filetype = BIN
    Note : GUI_DOWNLOAD will not work in background.
    Hope this solves your problem
    Regards,
    Seema

  • XML alignment problem when opening with notepad - XML generated from SAP

    Hi all,
    I am sending a mail with attachment as XML format by using the function module SO_NEW_DOCUMENT_ATT_SEND_API1.
    I am getting the xml file in mail and it was properly aligned when i open it. But when i open it with notepad the alignments are changing. 
    Below is the code for sending a mail. The content of the XML file populaed in int. table  lt_attachment.
    lt_attachment[] = pt_attachment[].
      LOOP AT lt_attachment INTO ls_attachment.
        ls_objtxt-line = ls_attachment-container.
        APPEND ls_objtxt TO lt_objtxt.
        CLEAR : ls_attachment, ls_objtxt.
      ENDLOOP.
    Creating the document to be sent
      ls_mailsubject-obj_name     = 'MAILATTCH'.
      ls_mailsubject-obj_langu    = sy-langu.
      ls_mailsubject-obj_descr    = 'You have got mail'.
      ls_mailsubject-sensitivty   = 'F'.
      lv_cnt = LINES( lt_objtxt ).
      ls_mailsubject-doc_size     = ( lv_cnt - 1 ) * 255 + STRLEN( ls_objtxt ).
      DESCRIBE TABLE lt_objtxt LINES lv_tab_lines.
    Header of the email
      ls_objpack-transf_bin = space.
      ls_objpack-head_start = 1.
      ls_objpack-head_num   = 0.
      ls_objpack-body_start = 1.
      ls_objpack-body_num   = lv_tab_lines.
      ls_objpack-doc_type   = lc_raw.
      APPEND ls_objpack TO lt_objpack.
      CLEAR ls_objpack.
      ls_objpack-transf_bin = lc_x.
      ls_objpack-head_start = 1.
      ls_objpack-head_num   = 1.
      ls_objpack-body_start = 1.
      ls_objpack-body_num   = lv_tab_lines.
      ls_objpack-doc_type   = 'XML'.
      ls_objpack-obj_name   = 'data'.
      ls_objpack-obj_descr  = 'data'.
      ls_objpack-doc_size   = ls_objpack-body_num * 255.
      APPEND ls_objpack TO lt_objpack.
      CLEAR ls_objpack.
    Add Recipients
      ls_reclist-rec_type = 'U'.
      ls_reclist-com_type  = 'INT'.
      ls_reclist-receiver =  pv_mail.
      APPEND  ls_reclist TO lt_reclist.
    Mail Contents
      ls_mailtxt-line = 'Please find attached your XML doc.'.
      APPEND ls_mailtxt TO lt_mailtxt.
      CLEAR ls_mailtxt.
      ls_mailtxt-line = lc_regards.
      APPEND ls_mailtxt TO lt_mailtxt.
      CLEAR ls_mailtxt.
      ls_mailtxt-line = lc_dewa.
      APPEND ls_mailtxt TO lt_mailtxt.
      CLEAR ls_mailtxt.
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_mailsubject
         put_in_outbox              = lc_x
         commit_work                = lc_x
        TABLES
          packing_list               = lt_objpack
          contents_bin               = lt_objtxt
          contents_txt               = lt_mailtxt
          receivers                  = lt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc EQ 0.
        COMMIT WORK.
        SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.
        pv_return = 'Success'.
      ELSE.
        pv_return = 'Failed'.
      ENDIF.
      CLEAR: ls_objtxt,ls_reclist, ls_objpack ,ls_doc_chng.
      REFRESH: lt_objtxt,lt_reclist,lt_objpack.
    Could any one help me on this.
    Thanks & Regards,
    Vineel.

    Can't you PREVIEW your question before posting? Here you have more than 2500 characters, so we can't read your code.
    Your "problem" seems normal to me (you shouldn't open an XML file with Notepad). Could you give an example how it looks like and how you'd like to make it appear?

  • XML reports show in XML format instead of Defult output PDF in R12

    I am facing a problem in XML report in oracle R12 ,
    when I am running the report ,it through warning msg and output is coming in XML format instead of PDF .
    Please let me know the solution.
    Zulqarnain

    I am facing a problem in XML report in oracle R12 ,
    when I am running the report ,it through warning msg and output is coming in XML format instead of PDF .What is the warning message?
    Please let me know the solution.Please check the OPP log file for any errors. Also, please post the contents of the concurrent request log file here.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=XML+AND+Output+AND+PDF&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

Maybe you are looking for