Archiving xml messages in PI using DAS

Hallo,
I like to archive certain outbound messages in PI, this for security reasons. This means that a messages must be archived as soon as is enters the adapter, intergration server.
Is this possible in PI our can I only archive messages which are longer than a certain time in the database.
Regards,
Evert Schuiteman

Hi Evert,
You can archive any data as you wish, that can be current also (but not recommended at all). You will have to make configuration according to that and while scheduling Write job you will have to provide duration of period which you want to archive according to your requirement,

Similar Messages

  • How to store and retrieve XML messages in AQ using ESB/ BPE

    Hello,
    I am having a requirement which I feel should be fairly common - store and retrieve XML messages in AQ. However, I am struggling to decide which type of queue to use AQ or JMS...Here is the requirement
    1. In an ESB, I want to read different kind of files using file adapter. Different kind as in, having different structure or schema
    2. I want to create a queue that is capable of storing any kind of xml data. To this queue, I want to enqueue the message read in step 1.
    3. In another process, say a BPEL, I want to dequeue the message and write into a file. The filename is retrieved from one of the header properties. I want to dequeue using a stored procedure, not by using a JMS or AQ Adapter (reason being that these adapters poll the queue, and consume a message immediately. However, I want to consume the message only when there is a business need)
    My questions are:
    1. What kind of queue I should create in the DB (What should be its payload type...XMLType? )... I guess the answer would also determine the adapter to be used - JMS or AQ
    2. How I should map the xml data read from the file in step 1 to this adapter
    Any help is highly appreciated.

    You are right in suggesting that I dont need to store my XML data as xml in the DB...I dont want to too :) but its just that, thats the only option I can see at this time (the other track i am exploring is :
    File adapter(XML) -> Convert to opaque (base64binary) -> Enqueue opaque to JMS (aq$_jms_bytes_message) ->Dequeue Opaque -> Write file opaquely.
    In this I have hit the roadblock in trying to convert XML to base64binary...maybe some custom java function is needed...anyway)
    Coming back to this thread, where I am trying the following
    File adapter(XML)  -> Enqueue as XML to queue  ->Dequeue XML -> Write file opaquely.
    PS: I think its important for me to mention that I am using SOA 10.1.3.1.0
    I tried the steps you gave...after creating the queue, I am trying to create a JMS adapter. But the queue I created doesnt show up in the browse window of destinations for the JMS Adapter..That had led me to infer that JMS adapter cant be used
    {color:#99cc00}CREATE OR REPLACE TYPE batchupdate_row_type AS OBJECT
    (update_queue_id NUMBER
    ,upc VARCHAR2(20)
    ,price1 NUMBER);
    {color}
    {color:#99cc00}CREATE OR REPLACE TYPE batchupdate_rec_type AS VARRAY(9999999) OF batchupdate_row_type;
    CREATE OR REPLACE TYPE payload_type AS OBJECT ( payload batchupdate_rec_type);
    EXECUTE DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table => 'jmsuser.batch_update_queue_table', queue_payload_type => 'payload_type');
    EXECUTE DBMS_AQADM.CREATE_QUEUE ( queue_name => 'batch_update_queue', queue_table => 'jmsuser.batch_update_queue_table');
    EXECUTE DBMS_AQADM.START_QUEUE ( queue_name => 'batch_update_queue'); {color}
    I also needed some opinion on whether the last step of my proposed solution ( Dequeue XML -> Write file opaquely) is possible. As I want to develop a service oblivious of the structure of the file, I dont want to create a file adapter based on a particular xsd...so I want to write whatever xml I am getting from the queue....is this step possible

  • Error When reading Archived XML Message

    I am having the next issue reading the archived messages (error msg: Could not find message in archive).
    can anybody help me.
    my problem is the same that this topic.
    Problems with reading archived Messages
    Any suguest please?
    Regards
    RP.

    Hi Sudharshan/Cornelius,
    Thanks for your support. I am glad that my inputs were helpful.
    Shudarshan, what do you mean by the process?
    If you are talking about the arhiving process, then it is very huge topic
    in itself. You can find that in help.sap.com.
    But in this specifc case, what happens is that to made archiving possible,
    there are different objects involved. e.g Archiving object, read write methods, Infostructures etc. In our case, the infostructure objects is in "inactive" state. Which seems to be a mistake from the SAP side. All we need to do is activate that object. And we are done.
    Actually I also had the same issue, and I found this thread with few threads with no answer :-(.  Then I just went deep into it and I found this "mistake"
    It is just yesterday, when I cracked this issue by myself. I decided to put in the thread.
    again I am happy my efforts were useful to you people.
    Thanks and Regards,
    Arundeep Singh
    001-416-828-1307

  • Archiving SMS messages offline with PC Suite 6.7

    First of all, I'm not a computer expert so I really hope someone can help me! I downloaded PC Suite 6.7 and would like to archive my sms messages (received messages and sent messages) offline on my PC. But it seems that I can only see my messages when my phone is connected to the PC, once I disconnect, the messages are no longer available. This means that I cannot archive my messages. I used to have an old version of Nokia Phone Editor 4.5 with my old cellular which allowed me to do this.
    Basically, what I want to do is this:
    - Archive my messages on a regular basis so that I can delete them from my phone and free up its memory
    - Access these messages even when my phone is not attached to the PC
    It seems that I cannot view my Contacts either unless my phone is connected. Why is this? I did not have this problem with Phone Editor 4.5. Should I install an older version of PC Suite?
    I am running Windows XP and using a cable connection.
    PLEASE HELP ME!!!! I'M GOING CRAZY!!!
    Thanks, Michelle

    Hi, I don't have a solution either. I have tried copying the files while the phone is connected into a separate folder. The files will copy and they are accesible, but the dates are all messed up. Rather than the date the message was sent, it notes the date the file was created which is the date I copied them. So, messages sent over the course of a week all have the same date and almost the same time.
    I have also tried the export message option which makes each message a single cell readable in Excel but that single cell includes everything, the message, date, time, sender...certainly not a convenient way to archive messages.
    One main reason I decided to invest in a more expensive Nokia was the belief that there would be a good solution for archiving messages. I am sadly disappointed.

  • Hello. I have a problem with OEL 6.5 and ocfs2. When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.

    Hello.
    I have a problem with OEL 6.5 and ocfs2.
    When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.
    fstab:
    UUID=32130a0b-2e15-4067-9e65-62b7b3e53c72 /some/4 ocfs2 _netdev,defaults 0 0
    #UUID=af522894-c51e-45d6-bce8-c0206322d7ab /some/9 ocfs2 _netdev,defaults 0 0
    UUID=1126b3d2-09aa-4be0-8826-0b2a590ab995 /some/3 ocfs2 _netdev,defaults 0 0
    #UUID=9ea9113d-edcf-47ca-9c64-c0d4e18149c1 /some/8 ocfs2 _netdev,defaults 0 0
    UUID=a368f830-0808-4832-b294-d2d1bf909813 /some/5 ocfs2 _netdev,defaults 0 0
    UUID=ee816860-5a95-493c-8559-9d528e557a6d /some/6 ocfs2 _netdev,defaults 0 0
    UUID=3f87634f-7dbf-46ba-a84c-e8606b40acfe /some/7 ocfs2 _netdev,defaults 0 0
    UUID=5def16d7-1f58-4691-9d46-f3fa72b74890 /some/1 ocfs2 _netdev,defaults 0 0
    UUID=0e682b5a-8d75-40d1-8983-fa39dd5a0e54 /some/2 ocfs2 _netdev,defaults 0 0

    What is the output of:
    # chkconfig --list o2cb
    # chkconfig --list ocfs2
    # cat /etc/ocfs2/cluster.conf

  • Error in reading XML message and inserting data into another DB using DB link

    Hi Experts,
    I am getting error parsed XML message data while  inserting into another DB table using DB link.
    ORA-22804: remote operations not permitted on object tables or user-defined type columns.
    Please help me.
    Thanks.

    ORA-22804: remote operations not permitted on object tables or user-defined type columns.
    Looking at the error message assuming you might be doing the alter table statement on remote table unit_labels which is throwing the ORA-22804 error which is not permitted on remote tables.

  • Problem in XML Message creation using ABAP Proxy

    Hi,
    I am trying to send the data from ECC to CRM when post goods issue is done for a delivery from ECC side using ABP Proxy. I called my proxy method in BADI : DELIVERY_PUBLISH.
    And after calling the method, I used commit work also.
    But the problem is, some times it is working fine. and some times the XML messages are not getting created. When I go in debug, looks everything is fine.
    I am unable to understand why this inconsistency.
    Could you please help me out, do I need to take any more precautions.
    Thanks,
    Sandeep

    Hi,
    There is no problem in the proxy. Some small problem in the database update.
    It is solved.
    cheers
    san

  • A website I need to get information from returns a message stating that I do not have the most recent XML parser, and suggests using IE 5.5 or newer. This, of course, I have no intention of doing. Any suggestions?

    This is supposed to be an animated Help page. However, when Itry to click on it, it gives me the message:
    Your browser does not seem to have the most updated XML parser.
    Please use Microsoft Internet Explorer 5.5 or up for PointingTheWay features.
    System Can Not Proceed any further.

    Unfortunately, it's a member-only page, with member id and password required. I'm trying to contact their IT dept., but without much luck, so far!

  • Archiving  and Deleting of XML Messages in SAP NetWeaver PI 7.31 single stack

    Hello my XI friends!
    Need step by Step Guide to Archiving
    and Deleting of XML Messages in
    SAP NetWeaver PI 7.31 single stack
    Similar to these instructions
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0afdd69-a8a7-2d10-7e9a-cbf6fa21c5a7?quicklink=index&overridelayout=true
    Regards,
    Rinaz

    Please check the below blog  for archiving java only-(XMLDAS)
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2011/11/16/aae-archiving-in-sap-pi-711-with-xmldas
    For deletion there is standard delete job..
    https://help.sap.com/saphelp_nw73ehp1/helpdata/en/48/b2e0036b156ff4e10000000a42189b/frameset.htm
    Message was edited by: Hareesh Gampa

  • [URGENT] Get Inbound Message in EBS Using XML Gateway + SOAP

    Hi experts,
    I want to ask you about how to process the inbound message using XML Gateway and SOAP protocol.
    I have 2 EBS instances, let's called it A (source) and B (destination).
    FYI, I'm following this ebook: "Oracle E-Business Suite Development and Extensibility Handbook" in chapter 12 regarding Oracle XML Gateway.
    So I don't use BPEL PM to do this.
    I'm just using EBS with XML Gateway and Integrated SOA Gateway responsibilities.
    When I tried to send the XML from A to B using OXTA, it's success, the data can be processed in B and could store in the database.
    But when I tried to use SOAP, the XML message that has been sent from A is success, and when I check it on B (Integrated SOA Gateway -> SOA Monitor), the message is in there and I can see the SOAP request and response as well.
    SOAP request:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://xmlns.oracle.com/apps/fnd/XMLGateway" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <env:Header>
    - <ns0:XMLGateway_Header>
    <ns0:MESSAGE_TYPE>XML</ns0:MESSAGE_TYPE>
    <ns0:MESSAGE_STANDARD>OAG</ns0:MESSAGE_STANDARD>
    <ns0:TRANSACTION_TYPE>XKLB</ns0:TRANSACTION_TYPE>
    <ns0:TRANSACTION_SUBTYPE>ORDER_DETAILS_XO</ns0:TRANSACTION_SUBTYPE>
    <ns0:DOCUMENT_NUMBER>9282</ns0:DOCUMENT_NUMBER>
    <ns0:PARTY_SITE_ID>142</ns0:PARTY_SITE_ID>
    <ns0:USERNAME>cons.ade</ns0:USERNAME>
    <ns0:PASSWORD>cons.ade</ns0:PASSWORD>
    </ns0:XMLGateway_Header>
    </env:Header>
    - <env:Body>
    <ns0:ReceiveDocument xsi:type="xsd:string"><ORDER_DETAILS_XO xmlns=""> <ORDER> <ORDNO>100002</ORDNO> <ORDWT>100002</ORDWT> <RDATE/> <CITY>JAKARTA</CITY> <ZIP>17121</ZIP> </ORDER> </ORDER_DETAILS_XO></ns0:ReceiveDocument>
    </env:Body>
    </env:Envelope>
    SOAP response:
    - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header />
    - <env:Body>
    - <ReceiveDocument_Response xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">
    <ResponseCode xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">200</ResponseCode>
    <ResponseMsgId xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">BD4EAD91E76051D5E0440021287448DA</ResponseMsgId>
    <ResponseInfo xmlns="http://xmlns.oracle.com/apps/fnd/XMLGateway">Document received and pushed into queue for asynchronous processing. Enqueued message id is 'BD4EAD91E76051D5E0440021287448DA'.</ResponseInfo>
    </ReceiveDocument_Response>
    </env:Body>
    </env:Envelope>
    But the problem is the message that has been got in B can't store into the database yet.
    I had already changed the Queue in the XML Gateway -> Define Transaction, from APPLSYS.ECX_IN_OAG_Q (this is for OXTA) to APPLSYS.WF_WS_JMS_IN.
    After I invoke the webservice and the SOAP message has been got in B, I checked APPLSYS.WF_WS_JMS_IN in database and there is 1 record, the value of USER_DATA column is:
    ((, , , , , , ((BES_EVENT_NAME, 100, oracle.apps.fnd.wf.ws.inbound.xmltx.receive, , 27), (BES_EVENT_KEY, 100, 796550960, , 27), (BES_PRIORITY, 200, , 1, 23), (BES_FROM_AGENT, 100, [email protected], , 27), (BES_TO_AGENT, 100, [email protected], , 27), (MSG_ID, 100, 1334117503435, , 27), (ECX_MESSAGE_TYPE, 100, XML, , 27), (ECX_MESSAGE_STANDARD, 100, OAG, , 27), (ECX_PARTY_SITE_ID, 100, 142, , 27), (WS_PORT_OPERATION, 100, ReceiveDocument, , 27), (ECX_TRIGGER_ID, 100, 7101, , 27), (UserId, 100, 3020, , 27), (ECX_USERNAME, 100, CONS.ADE, , 27), (ECX_TRANSACTION_SUBTYPE, 100, ORDER_DETAILS_XO, , 27), (ECX_PASSWORD, 100, CONS.ADE, , 27), (ECX_DOCUMENT_NUMBER, 100, 9285, , 27), (BES_PAYLOAD_OBJECT, 100, false, , 27), (ECX_ATTACHMENTS, 100, , , 27), (ECX_TRANSACTION_TYPE, 100, XKLB, , 27), , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , )), 0, , )
    When I tried to select APPLSYS.WF_WS_JMS_IN for the 2nd time, there is no result, which means the business event has been triggered, right?
    So in this point I still don't have any idea why the process is (likely) ended after enter the Queue and the message can't store into B's database yet.
    Do I miss any setup when changing from OXTA into SOAP protocol to send XML message?
    Any urgent help most appreciated.
    Best Regards,
    Rheza

    Hi,
    Did you ever get any answers to this? We are thinking about the same thing.
    Thanks
    Darma
    [email protected]

  • XML Messages generated by XI using namespace aliases...

    I have a question regarding the XML messages that are generated by XI as part of the mapping, etc.
    I receive e.g. the following XML document in the payload of my message sent to a legacy system:
    <ns1:ArticleRequest xmlns:ns1="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve">
         <ns1:ArticleNumber>109</ns1:ArticleNumber>
    </ns1:ArticleRequest>
    Unfortunately the system cannot handle the ns1: prefixes correctly and would prefer if the XML message were using the default namespace.
    Can XI be configured to produce the XML using the default namespace (in case the interface has just one namespace this should be semantically identical)
    <ArticleRequest xmlns="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve">
         <ArticleNumber>109</ArticleNumber>
    </ArticleRequest>
    and furthermore, is there a way to include the xsi:schemaLocation attribute in the resulting XML document?
    like this:
    <ArticleRequest xmlns:ns1="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0 ArticleRequest.xsd" >
         <ArticleNumber>109</ArticleNumber>
    </ArticleRequest>
    kind regards for your help,
    Peter

    Hi Udo,
    I'm not sure how the XSL Mapping can remove the namespace alias and exchange it with default namespace. The xsl:copy-of just does a duplication of the selected node. Do you have any additional input on this one?
    Regarding the second hint, 'manipulate the field XML namespace in the message type', I could not find a place where to do this - as I am using 'External Definition' (XSDs imported into XI). Still when I change the namespace I will always receive the prefix in front of each element.
    Any additional help is highly appreciated.
    regards,
    Peter

  • PI 7.1 XML messages are not getting archived.

    Hi Experts,
    Currently I am wotking with PI 7.1. I am trying to archive PI messages from PI Production server,and also maintianed the following parameters in SXMB_ADM.
    ARCHIVE PERSIST_DURATION ASYNC 1 1
    DELETION PERSIST_DURATION ASYNC 1 1
    DELETION PERSIST_DURATION HISTORY 7 30
    DELETION PERSIST_DURATION SYNC 2 0
    DELETION PERSIST_DURATION_ERROR SYNC 3 1
    Retention period
    Retention Period for Asynchronous XML message in the Database
    XML Messages Without Errors Awaiting Deletion 1
    XML Messages Without Errors Awaiting Archiving 1
    Retention Period for Synchronous XML message in the Database
    XML Messages with Errors Awaiting Deletion 3
    XML Messages Without Errors Awaiting Deletion 2
    Retention Period for History Entries in the Database
    History Entries for Deleted XML Messages 7
    Messages are not getting archived.
    When I execute the report "RSXMB_SHOW_REORG_STATUS"
    I am geting the following output.
    Msgs not in retention period (can be archived):            0
    Msgs in retention period (cannot be archived):           88
    Kindly suggest me what changes can be done so that PI messages will get archived from PI production server.
    Regards
    Naveen

    Hi,
    Please refer this thread.
    [Deleting XML messages, database growing|Deleting XML messages, database growing]
    Suresh

  • Using CDATA when creating an xml message

    I'm currently trying to create an XML message in one of my tags I'm trying to put the following string "&#13;&#10;". However when I create the xml document I receive the following string &#13;&#10;. I think the conversion is happening when I call
    setStringNodeData
    Here is my code
    strCaseNotes = "&#13;&#10;" + "This is a test message";
    CreatedElement = setStringNodeData(doc,"strCaseNotes",CaseInfo, strCaseNotes);
    doc = getXMLDoc();
    doc.write (baos);
    String strXMLDoc = baos.toString ();          
    log.log("strXMLDoc: " + strXMLDoc, "SSDRulesEngine.txt");
    This is the ouput &#13;&#10;
    I assume the conversion is happening in setStringNodeData. Anyway to stop the conversion of & to amp. Any help is greatly appreciated, thanks

    Don't get mixed up between the string you see in your program and what you see in your XML file. If you want a CR-LF pair in your XML output you need to do this:strCaseNotes = "\r\n" + "This is a test message";In other words, within your program just use strings as you would normally. Don't try to second-guess the XML parser. You may find the XML software outputs that string in a text node as "&#13;&#10;This is a test message" or you may see something slightly different. Again, don't try to affect the output. If your XML software outputs it then any XML parser can read it. But if you mess with it after it's output, then you will probably break the XML in such a way that another XML parser will reject it.

  • How to use oracle TRIM functionality in XML messages

    When i am selecting data from XML message as per below query, it is returing values correctly.
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS><EMPID>2482</EMPID><NAME>SMITH</NAME><SALARY>4854</SALARY><LOC>CHENNAI</LOC></DETAILS>'),'/DETAILS'))) x;
    But when i am selecting data by using below query some additional spaces also coming with column values
    SELECT extractValue(x.column_value, '/DETAILS/EMPID') as emp_id,
    extractValue(x.column_value, '/DETAILS/NAME') as emp_name,
    extractValue(x.column_value, '/DETAILS/SALARY') as emp_sal
    FROM TABLE(
    XMLSequence(
    Extract( xmltype('<DETAILS>
                   <EMPID>
                             2482
                             </EMPID>
                             <NAME>
                             SMITH
                             </NAME>
                             <SALARY>
                             4854
                             </SALARY>
                             <LOC>
                             CHENNAI
                             </LOC>
                             </DETAILS>'),'/DETAILS'))) x;
    Please suggest how to remove additional spaces by using second query.
    Thanks
    Vikrant Jain.

    It appears that the ability to use XPath functions in the PATH expression doesn't work prior to 11g :
    Connecté à :
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> var xmldoc varchar2(4000)
    SQL> begin :xmldoc := '<DETAILS>
      2  <EMPID>
      3  2482
      4  </EMPID>
      5  <NAME>
      6  SMITH
      7  </NAME>
      8  <SALARY>
      9  4854
    10  </SALARY>
    11  <LOC>
    12  CHENNAI
    13  </LOC>
    14  </DETAILS>';
    15  end;
    16  /
    Procédure PL/SQL terminée avec succès.
    SQL> SELECT emp_id, emp_name, emp_sal
      2    FROM XMLTable('/DETAILS'
      3                  PASSING XMLTYPE(:xmldoc)
      4                  COLUMNS
      5                  emp_id     NUMBER        PATH 'normalize-space(EMPID)',
      6                  emp_name   VARCHAR2(20)  PATH 'NAME',
      7                  emp_sal    VARCHAR2(20)  PATH 'SALARY');
    SELECT emp_id, emp_name, emp_sal
    ERREUR à la ligne 1 :
    ORA-31011: Echec d'analyse XML
    ORA-19202: Une erreur s'est produite lors du traitement la fonction XML (
    LPX-00601: Invalid token in: '/*/normalize-space(EMPID)')Using it in XQuery will work though :
    SQL> SELECT *
      2  FROM XMLTable(
      3   'for $i in /DETAILS
      4    return element r
      5    {
      6     for $j in $i/*
      7     return element {local-name($j)} {normalize-space($j)}
      8    }'
      9   PASSING XMLTYPE(:xmldoc)
    10   COLUMNS
    11     emp_id     NUMBER        PATH 'EMPID',
    12     emp_name   VARCHAR2(20)  PATH 'NAME',
    13     emp_sal    NUMBER        PATH 'SALARY'
    14  );
        EMP_ID EMP_NAME                EMP_SAL
          2482 SMITH                      4854

  • Splitting xml message using XSLT

    Hi,
    I have XML message that I want to split up using XSLT. Following is the structure of the XML message.
    <Meters>
    <Meter>
    <ID>1</ID>
    <Type>A</Type>
    <Reading ref="1A" />
    </Meter>
    <Meter>
    <ID>2</ID>
    <Type>A</Type>
    <Reading ref="2A" />
    </Meter>
    <Meter>
    <ID>3</ID>
    <Type>B</Type>
    <Reading ref="3B" />
    </Meter>
    <Reading>
    <refLink>1A</refLink>
    <quantity>Watts</quantity>
    <value>221.00</value>
    </Reading>
    <Reading>
    <refLink>2A</refLink>
    <quantity>Wh d</quantity>
    <value>0.00</value>
    </Reading>
    <Reading>
    <refLink>3B</refLink>
    <quantity>Wh r</quantity>
    <value>3.00</value>
    </Reading>
    </Meters>
    The split up should happen on the <Meter> tag. Currently, this message has three <Meter> elements. The output should result in 3 different XML messages each having its own <Meter> element. Also, please note that each <Meter> has <Reading> which is linked to the actual <Reading> data using "ref" attribute and "refLink". The value of "ref" attribute will be unique through out the XML message.
    Expected output: 1.xml
    <Meters>
    <Meter>
    <ID>1</ID>
    <Type>A</Type>
    <Reading ref="1A" />
    </Meter>
    <Reading>
    <refLink>1A</refLink>
    <quantity>Watts</quantity>
    <value>221.00</value>
    </Reading>
    </Meters>
    and similarly 2 more XMLs.
    Please let me know if anyone has done this kind of work in XSLT.

    You are right I see that xsl:document is in 1.1 recommendation, but was referred by
    XSLT books I have.
    I found one site that's explaining this
    http://www.vbxml.com/xsl/elmxsl_document.asp
    http://www.w3.org/TR/xslt11/#multiple-output
    I am almost trying now to reverting to using java.util.regex and doing the split
    brutforce.. :))))
    - Ravi

Maybe you are looking for