Merging XML files

Hi All,
I want to merge two XML files using XSL under Apache's Xalan.
Or If there is any way to merge two XMI documents (XML For Metadata Ineterchange) then it is well.

sure, use the document() function in XSL to call the content of another XML.
<xsl:apply-templates select="document('http://myfile1.xml')"/>
<xsl:apply-templates select="document('http://myfile2.xml')"/>

Similar Messages

  • Merging XML Files After Debatching - 10.1.3.4

    I have a large fixed-width file which I am debatching and transforming to XML files:
    bigfile.txt (~52MB) -> file_%SEQ%.xml (~4MB each)
    resulting in:
    file_2001.xml (~4MB)
    file_2002.xml (~4MB)
    file_2003.xml (~4MB)
    file_2004.xml (~4MB)
    I would like to merge these resulting XML files back into one XML file:
    bigfile.xml (~52MB)
    I know the [Append="true"] attribute in the file adapter used to write the file won't "work" with XML files. I've tested this anyway and received "out of memory" errors while appending. This removes post-processing options.
    I'm new to BPEL and feel that I must be missing something simple. Any advice would be appreciated.
    Thanks in advance,
    Rob

    Hi Rob,
    You can create a temp variable of xsd type of bigfile.xml, read all below files one by one and within assign activity use append operation to append all xml files, when all read is complete, dispatch this message to file adapter to write file.
    file_2001.xml (~4MB)
    file_2002.xml (~4MB)
    file_2003.xml (~4MB)
    file_2004.xml (~4MB)
    Here, there is a possibility of out of memory error.
    Please try it,
    Regards

  • Merging xml files element by lement

    Hi, I have two xml files of dept and emp tables. I want to merg these two xml files in such a way that the output should be grouped by deptnos.
    i.e., under dept deptno 10 child node, i should get all emp child nodes who have deptno 10. How can I do this using DBMS_XMLDOM. Please help. Thank you.
    dept xml -
    <?xml version="1.0"?>
    <DEPT_SET>
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DNAME>ACCOUNTING</DNAME>
    <LOC>NEW YORK</LOC>
    </DEPT>
    <DEPT>
    <DEPTNO>20</DEPTNO>
    <DNAME>RESEARCH</DNAME>
    <LOC>DALLAS</LOC>
    </DEPT>
    <DEPT>
    <DEPTNO>30</DEPTNO>
    <DNAME>SALES</DNAME>
    <LOC>CHICAGO</LOC>
    </DEPT>
    <DEPT>
    <DEPTNO>40</DEPTNO>
    <DNAME>OPERATIONS</DNAME>
    <LOC>BOSTON</LOC>
    </DEPT>
    </DEPT_SET>
    emp xml -
    <?xml version="1.0"?>
    <EMP_SET>
    <EMP>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>20-FEB-81</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7521</EMPNO>
    <ENAME>WARD</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>22-FEB-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>500</COMM>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7566</EMPNO>
    <ENAME>JONES</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>02-APR-81</HIREDATE>
    <SAL>2975</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7654</EMPNO>
    <ENAME>MARTIN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>28-SEP-81</HIREDATE>
    <SAL>1250</SAL>
    <COMM>1400</COMM>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7698</EMPNO>
    <ENAME>BLAKE</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>01-MAY-81</HIREDATE>
    <SAL>2850</SAL>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7782</EMPNO>
    <ENAME>CLARK</ENAME>
    <JOB>MANAGER</JOB>
    <MGR>7839</MGR>
    <HIREDATE>09-JUN-81</HIREDATE>
    <SAL>2450</SAL>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7788</EMPNO>
    <ENAME>SCOTT</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>09-DEC-82</HIREDATE>
    <SAL>3000</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    <JOB>PRESIDENT</JOB>
    <HIREDATE>17-NOV-81</HIREDATE>
    <SAL>5000</SAL>
    <DEPTNO>10</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7844</EMPNO>
    <ENAME>TURNER</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>08-SEP-81</HIREDATE>
    <SAL>1500</SAL>
    <COMM>0</COMM>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7876</EMPNO>
    <ENAME>ADAMS</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7788</MGR>
    <HIREDATE>12-JAN-83</HIREDATE>
    <SAL>1100</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7900</EMPNO>
    <ENAME>JAMES</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7698</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>950</SAL>
    <DEPTNO>30</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7902</EMPNO>
    <ENAME>FORD</ENAME>
    <JOB>ANALYST</JOB>
    <MGR>7566</MGR>
    <HIREDATE>03-DEC-81</HIREDATE>
    <SAL>3000</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <EMP>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    <DEPTNO>10</DEPTNO>
    </EMP>
    </EMP_SET>
    Required output is -
    <?xml version="1.0"?>
    <DEPT_SET>
    <DEPT>
    <DEPTNO>10</DEPTNO>
    <DNAME>ACCOUNTING</DNAME>
    <LOC>NEW YORK</LOC>
    </DEPT>
    <DEPT>
    <DEPTNO>20</DEPTNO>
    <DNAME>RESEARCH</DNAME>
    <LOC>DALLAS</LOC>
    </DEPT>
    <EMP>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17-DEC-80</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </EMP>
    <DEPT>
    <DEPTNO>30</DEPTNO>
    <DNAME>SALES</DNAME>
    <LOC>CHICAGO</LOC>
    </DEPT>
    <DEPT>
    <DEPTNO>40</DEPTNO>
    <DNAME>OPERATIONS</DNAME>
    <LOC>BOSTON</LOC>
    </DEPT>
    </DEPT_SET>

    Well, if you are building the dept and emp XML files yourself, then the easiest solution is to use one SQL/XML (XMLElement, XMLForest, XMLAgg) statement to build the required XML instead of building two pieces and trying to merge.
    If you can't go that option, then you can use importNode and appendChild to insert your selected nodes into the correct spot in the main XML.
    As a starter, here is a snippet of code that takes a single node from a temp DOMDocument and inserts it into the master DOMDocument at a certain location.
        l_inq_nodelist := dbms_xmldom.getelementsbytagname(l_temp_domdoc,
                                                           'theDesiredNode');
        l_inq_nl_len := xmldom.getlength(l_inq_nodelist);
        IF l_inq_nl_len > 0 THEN
           -- Take the node above and adopt it into the response document
           l_temp2_nd := dbms_xmldom.importNode(o_response_doc,
                                                dbms_xmldom.item(l_inq_nodelist, 0),
                                                TRUE);
           -- Put the node in the correct position in the response document                                          
           l_temp2_nd := xdb.dbms_xmldom.appendChild(l_rsp_msg_nd, l_temp2_nd);
        END IF;I know your situation is slightly different as you need to take multiple nodes but once you can select out your nodes from the emp XML, you can use the above to insert into the dept XML. I would provide more samples but it has been a while since I've read XML via DOMDocument as I use XMLType when reading XML. Feel free to post what you have if you get stuck.

  • How to Merge multiple XML  files in one file ( Env: XML Publisher 5.6.2)

    All,
    I have recently started working on XML publisher and have developed 3 reports in last 2 days using XML Publisher and integrating them with Concurrent programs.
    This is a great tool.
    I have got another requirement, where i need to use xml file generated by multiple run of same report with various parameters and then merge all xml file to a single report. Developing the whole custom process will take very long time and sure will have bugs in it. Instead i was thinking to use xml file generated by Oracle report itself.
    Report "US Gross to net summary" generates xml output in standard output directory and then show output in PDF file. I have 7 such file generated for each payroll. I want to merge output of xml into a single xml so that i can create single report having data from all 7 xml files showing me All payroll output in a single report.
    Can someone please guide me , how can i read xml file data from the output directory of a seeded concurrent program and how to manipulate data in it.
    Thanks
    Ankur

    Hi Tim,
    Thanks for replying. I have looked for "PDFBookBinder class" in xml publisher user guide for ver 5.6.2. I didn't get any reference of this text. Can you please guide me to a tutorial/link where i can get more information about this class.
    Also, i originally thought of similar to your second logic, as my design basis. Oracle process generates the xml file in output directory which i can get. What i didn't get is how do i "pick them up and merge" using publisher. Also, is there way to do this merging process using pl/sql ? Can you please give little more information on your second approach.
    My original plan of action is that i will create a report set in which i will call oracle seeded report for all 7 payrolls in a sequential manner. Then using the child requests of the report set i will get to 7 xml files generated by seeded oracle process. Then the piece i am not sure of , i will use those 7 files to generate a single xml file having payroll name as tree top for each output. Once single xml is ready, i can easily design a template and register the process to generate output as Excel.This process will not require me to actually change any data or do any calculation. It will only reformatting the feilds we see and abiity to see all 7 payroll at one time rather then entering these numbers manually into an excel to do analysis.
    Please provide your feedback, if you think above plan is not feasible or need corrections.
    Best Regards,
    Ankur

  • Can an XML file be converted into something I can merge?

    Hello, all. I'm trying to help my coworker, Dolly, solve a problem with LiveCycle, but confess up front that I know little about it. I frequent these forums to help and get help with other programs (Photoshop, InDesign, AfterEffects, etc.), but I usually generate my PDFs from within these design applications and rarely deal directly with Acrobat. Dolly doesn't really know how to use these forums and I've never used LiveCycle, so I'll attempt to translate her problem, which is this ...
    Dolly asked me to help her merge pages from Doc B into Doc A, which is a pretty basic function in Acrobat and one that I'm familiar with. When I attempted to do the merge I got an error warning that Doc A was an XML file and couldn't be merged. I'm not sure what makes it an XML file and neither does Dolly. I had her show me her save options and was offered a couple of "Static PDF" formats in additon to the XML and several others which didn't seem relevant. I had her re-save Doc A in the static formats, but when I tried to merge into these was given the same error telling me they were XML files. Dolly created Doc A from scratch with LiveCycle. Doc B was created by someone else from an InDesign file.
    So, I'm not sure how to advise her, but it would seem that the solution is to get the file to save as a PDF that isn't some kind of an XML file. I'm aware of XML as web formatting, but am unsure how it relates to this PDF that has no fill-in fields or other interactivity that I can see. It's strictly a print file.
    Can anyone offer any insight that would help me help Dolly? If so, I have a bonus question, but one thing at a time! My sincere thanks in advance for any help.

    >Well, thanks for that info. What is it that makes these files XML and incompatible with other PDFs?
    The short answer is "everything". It's like getting an apple and
    painting it orange. It now looks like an orange, but it doesn't taste
    like one.
    > I ask because I'm wondering if my coworker is using the proper tool.
    That depends what the business need is.
    Forms can be made directly in Acrobat, but they will be a different
    kind of form, with a different feature set. You'd need to look at what
    your coworker's exacy requirements are.
    >Could she open Doc A in a different program and save it as a regular PDF?
    Not if it is to be fillable.
    >
    >Barring that, what would you recommend as the best way to delete 6 pages from the end of the XML PDF and replacing them with pages from a regular PDF? Does she need to start from scratch to create the hybrid?
    If this is the sort of requirement you have, it may well be that the
    original decision to use LiveCycle (a decision which Acrobat
    encourages you to make without giving enough information to make an
    informed decision) was not the right one.
    LiveCycle Designer is about making interactive business forms. That's
    all.
    Aandi Inston

  • How to merge portlet.xml file from shared libraries into an EAR application

    Hi all
    I need some help
    I have some applications as shared-libs referenced by weblogic.xml into a EAR application.
    To see all portlets from that shared-libs, I'm creating a portlet.xml into the EAR application with all portlets from all shared libs. But is terrible for me. I would like to have it merged automatically without having to create it in the EAR application. Is that possible?
    Regards
    Bruno

    In the documentation, I saw this text:
    Overriding Shared J2EE Library Settings in the web.xml File
    At runtime, the web.xml files in all the shared J2EE libraries are merged, along with the web.xml
    file in your portal web project. The content of your WEB-INF/web.xml file overrides anything in
    the shared J2EE libraries, so if you want to change particular settings, you can do it there.
    There are many other files for which file contents are merged; these can be overridden in the same
    way. These files include not only WEB-INF/web.xml but also WEB-INF/weblogic.xml and any
    files mentioned in weblogic-extension.xml from either the users' application or the shared
    libraries.
    It seems to be possible to customize the weblogic-extension.xml. But I haven't seen how to do that
    What do you think about it?
    Regards
    Bruno

  • HELP:Merging External File (JPG/PDF) into XDP/XML Merged PDF on Client

    I need some serious help pointing me in the right direction.
    What I have...and is working:
    I have an Invoice Template/PDF/Form created by LiveCycle with form fields.  When requested by the user, in real-time I send XML from my server that is merged with the PDF template to create a single PDF file with multiple pages of invoices.  Each invoice fits on one page.  Works great...technically I think this is called or used XDP to merge the two on the client computer with a PDF and XML being supplied by the server.
    The server is just a generic Unix/PHP/MySQL environment...no Adobe products are installed (or can be installed on that machine).  I rely entirely on the client's computer to assemble and create the finished PDF.
    What I NEED:
    So the client is now asking that I be able to insert receipts into the invoice PDF stream.  So in order words you would still have the invoices above, but if we happen to have scanned receipts for a given invoice, they want those embedded into the PDF.  A finished product would look like:
    Page 1 - Invoice 00001
    Page 2 - Receipt #1 for Invoice 0001
    Page 3 - Receipt #2 for Invoice 0001
    Page 4 - Invoice 00002
    Page 5 - Invoice 00003
    Page 6 - Receipt #1 for Invoice 0003
    etc.
    Can someone point me in the right direction to make this happen?
    Perfect world, I would like to have the invoices be actual images of the receipts (assume we need to have a JPG or PDF scan of the receipt)
    Okay world, I guess we could just attach the actual document so if it is XLS, DOC, PDF...etc...I don't need to convert...just attach.
    Last choice, I could just include hyperlinks back to our server for the client to click on and open the receipt document as we store it.

    From your post it sounds like you are Central Pro (a product for which I am by no means an expert), but you say you want to upgrade to a newer product from your "legacy" one. Is there a reason for this? Have your requirements change so that it no longer fits them? Central is still in the current Adobe roster and as far as I know there is no plans to get rid of it any time soon, so if it does everything you want I don't see why you would want to change.
    There is no product in the LiveCycle suite that merges xml data into a form from the command line. LiveCycle (with the exception of Designer) is a suite of server products, so the closest you would come is LiveCycle Forms (merge the xml and create a fillable PDF) or LiveCycle Print (merge the xml and print the form).
    Hope this helps somewhat.
    Chris
    Adobe Enterprise Developer Support

  • Merge xml source files; 1:n relationship

    Hi!
    All samples I have checked are based on 1:1 relationship
    between master and detail data set.
    For example:
    Exactly one xml file will be loaded depending on which
    element of the master xml file is selected.
    http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
    But what about 1:n relationships? What if the master xml
    returns more than one depending xml file?
    Two scenarios are imaginable:
    1. Collect all detail xml data by looping through all data
    rows and create a dataset on the fly with all relevant data.
    (Please note my last posting "Observer event fires two times") That
    could be a new merge function ;-)
    2. Implementation of a new XMLDataSet constructor that allows
    an array with one or more path to detail xml file(s).
    What do you think about it? Or is there another way to handle
    1:n relationships?
    Regards
    libelle2000

    Hi !
    On Srpy 1.4 version the 1:n relation is not supported, but we
    have two new solutions for this already posted on preview section.
    http://labs.adobe.com/technologies/spry/preview/samples/data_region/NestedXMLDataSample.ht ml
    Instead of creating one master xml file that points to other
    details xml files, you can have a single xml and create there the
    1:n relation there. In this way your request is solved using a
    single xml file.
    Please follow the link I gave you above and see the examples
    from there.
    Diana

  • Merging XML and XDP files

    Hello!
    I must build this POC for a client and the idea is merge XML and XPD files to feed a LiveCycle Output process and create PDF files.
    I've built the XDP files and the XML to start things, now I need to figure out how to create the process to merge them in Workbench.
    Is there any tutorial to help me with this task?
    Thank you for any ideas!
    Marcos

    Thank you guys for helping a beginner in trouble.
    I hope I will soon be able to help others here and help the comnunity.
    Right now, I've so much to learn!
    Thank you!
    Marcos, Brazil

  • Recursively Merging 2 XML files with XSLT

    Hi there, I'm having a problem with merging a couple of XML files. I've found a few examples of merging on-line but none that really help.
    Basically I have an XML file which is written out by my Java program that looks something like this:
    <alldata>
       <data val="xx">
          <data val="yy">
             <data val="ss"></data>
          </data>
       <data val="gg"></data>
    </alldata>The number of children and siblings can change by the way.
    Therefore in the XSLT document I'm displaying the data recursively, i.e.
    <tr><td><xsl:value-of select="@val"/></td></tr>
    <xsl:for-each select="*">
       <xsl:call-template name="itself"></xsl:call-template>
    </xsl:for-each>This all works fine, but I now need to do a side by side comparison with another XML document that has exactly the same structure, but could have different values. I'm not sure how to do this, perhaps using the same recursive code and using a sort of pointer to where you are in the 2nd XML file (see below), but I've no idea how to go about this?
    <tr><td><xsl:value-of select="@val"/></td>
           <td><xsl:value-of select="<2nd documents @val>"/></td>
    </tr>
    <xsl:for-each select="*">
       <xsl:call-template name="itself"></xsl:call-template>
    </xsl:for-each>Output:
    xx    xy
    yy    yy
    ss   ss
    gg   hhDoes anybody have any suggestions or help on how to achieve this?
    Cheers
    Dan

    I posted the same question on the xsl-list message list and got a working solution - here it is in case anyone else has the same problem:
    <xsl:variable name="a" select="document('doc1.xml')//data"/>
    <xsl:variable name="b" select="document('doc2.xml')//data"/>
    <xsl:template match="/">
         <table>
           <xsl:for-each select="$a">
             <xsl:variable name="p" select="position()"/>
             <tr>
               <td><xsl:value-of select="@val"/></td>
               <td><xsl:value-of select="$b[$p]/@val"/></td>
             </tr>
           </xsl:for-each>
         </table>
    </xsl:template>Cheers
    Dan

  • Need to Merge an Adobe XML file with a normal PDF

    The problem...
    I have created an order form in Adobe LiveCycle Designer (pre-ES).  The customer's requirements force us to merge their purchase order (a flat standard PDF) with the order form I have created to get the complete PDF to bill with.  Previously we were using a form created in another software and printing to PDF to merge the 2 PDF files.  The thought process with creating a form in LiveCycle Designer was "Oh 2 PDF's we can just merge them" ... we were very WRONG.  And please don't suggest "Packaging" the files... it won't work for our processing system... we've already tried .
    What we know now (had we known it before we'd have never purchased the licensing for LiveCycle Designer to start with)...
    You can NOT merge a PDF that has XML in it with Adobe Proffesional.
    Temporary Solution...
    We know we can print to PDF and then merge the files... this gets us the result we need, but it takes longer to print to PDF from these XML files than it did from the previous versions of the order forms in created in other software.
    Is there another solution? 
    Plea for help!  The users that are forced to do the process of printing to file and merging are ready to riot and/or go back to the "other" software.

    Hello!
    There are a couple terms you can google:
    "PDF Concatenate Forms iText"
    "Merge XML data with PDF Forms"
    Concatenating PDFs means you join multiple forms together into one PDF.
    Did you need to merge, or concatenate the forms?
    Either way there are a couple of methods to do this programmably.
    iTextSharp (.NET)
    iText (Java)
    FDFToolkit.net (.NET)
    iText products are open source, and have a learning curve, and support is provided on a Open mailing list.
    iText products are free ($) but can cost you time and money to research the methods.
    Useful Links:
    http://www.fdftoolkit.net/
    Message was edited by: NKOWA

  • Merging X XML files, sorting the resultlist and finally execute a distinct?

    I have several questions about an XSLT file that I should write:
    1� First, I get X paths to XML files. It can be 2, 3, 4, ... whatever a number. I don't know exactly the total amount of XML files.
    I need to merge them dynamicly to one resultset.
    2� Next, I need to sort them on a specific node (remark: every XML file has the same DOM tree)
    3� Finally, I want to distinct the values because some of the nodes are in file 1, 2, 3 ... So I don't want duplicates.
    I guess this is not possible in XSLT? I can't use Java, so it should be done using XSLT ;;;

    Have a look here:
    [http://www.jenitennison.com/xslt/index.html|http://www.jenitennison.com/xslt/index.html]
    under the "Sorting" and "Grouping" sections. Also consider using XSLT 2.0, which has built-in grouping elements which make the convoluted XSLT 1.0 techniques unnecessary.

  • Merge Two Xml files ????

    I have two xml files, which I want to merge.
    Both are having same structure�
    Eg. *INPUT-FILE-1*
    <library>
         <book isbn="1">
              <name>Book-11</name>
              <author>steve</author>
              <price>2.99</price>
         </book>
              <book isbn="2">
              <name>Book-22</name>
              <author>john</author>
              <price>12.99</price>
         </book>
    </library>
    *INPUT-FILE-2*
    <library>
         <book isbn="1">
              <name>Book-11</name>
              <author>steve</author>
              <price>2.99</price>
         </book>
              <book isbn="3">
              <name>Book-33</name>
              <author>johnthan</author>
              <price>12.99</price>
         </book>
    </library>
    *OUTPUT-file*
    <library>
         <book isbn="1">
              <name>Book-11</name>
              <author>steve</author>
              <price>2.99</price>
         </book>
              <book isbn="2">
              <name>Book-22</name>
              <author>john</author>
              <price>12.99</price>
         </book>
    </book>
              <book isbn="3">
              <name>Book-33</name>
              <author>johnthan</author>
              <price>12.99</price>
         </book>
    </library>Merge should provide third file without any repetition of any record.
    Which parser to use and how to use ???
    Any help on this ???????????
    Thanks !!

    Merge should provide third file without any repetition of any record.
    Which parser to use and how to use ???Look at JDOM
    Any help on this ???????????One question mark is all that is necessary.

  • Merge two XML files From java

    hi,
    i'm in need to merge two XML files from my java code please help me as soon......

    Rajesh42 wrote:
    hi,
    i'm in need to merge two XML files from my java code please help me as soon......Hello Rajesh42,
    While it is wonderful that you have discovered the magically code tags, please consider if it is the right time to use them. Code tags should only go round code. Note used to make your posts "stand out", or used to quote other people. Just code.
    As to your question, what have you tried, what are you stuck on?
    Mike

  • Merging 2 message history xml files using java

    hi., i'm new to xml programming..
    well..., i got homework bout it..., and got a lot of problems to write it..
    could you help me a favor??
    I need to write a homework bout merging 2 MSN mssg history files (xml files) using java.
    At least need to maintain their date, time, sender, receiver, and information(sayings)....and are ordered using time..
    can u help me??

    Well, show us what you've got and where you are having difficulty.

Maybe you are looking for

  • SMART Utility Says "Failing"

    My 12" powerbook Aluminum was refusing to shut down--meaning I couldn't clone it to my external. So I ran SMART Utility. It found Pending Bad Sectors: 2, Reallocated Bad Sectors: 3, Total Errors 30, and Last Error Type: Uncorrectable. So I ordered a

  • I lost the foward-back page arrows in the upper let corner, how do i get them back?

    I have an i-mac and when I updated Firefox I lost the page forward-back arrows in the upper left corner. Can't figure out haoe to get them back.

  • Restrict Vendor for material group

    Hello Friends, My client has a new requirement as below:- I have material groups : 0001, 0002 and 0003 For Material Group 0001 : Only Vendors A, B & C are allowed. For Material Group 0002 : Only Vendors  B, C & D are allowed. For Material Group 0003

  • IMovie update 7.1.2 crashes at start while generating thumbnails

    Since I updated iMovie to v7.1.2 it crashes every time I open it. First shows a message saying that a camera has been detected (although there is no camera connected) Then it starts generating thumbnails and crashes. I re-installed version 7.1.1 and

  • Narrow down the forum search function

    Is it possible to use the built in search function but to limit the search to a certain forum or space?