Help needed !  How to find out 'XML Difference' using XDK

I'm using oracle.xml.differ.XMLDiff.
I have set XML files.
Then calling generateXSLFile("somefile")
While running facing :
Exception in thread "main" java.lang.NullPointerException
at oracle.xml.differ.XMLDiff.generateXSL(XMLDiff.java:383)
at oracle.xml.differ.XMLDiff.generateXSLFile(XMLDiff.java:330)
at XMLDiffTest.main(XMLDiffTest.java:38)
Same prob if I use setDocuments(xd1,xd2) ....
What is the way out ?
Does anyone have any sample code ?
TYI
Kaniska

To compare XML documents with the XMLDiff class.
-Add /lib/xml.jar and /lib/xmlparserv2.jar to the Classpath.
-Parse the two documents to be compared with the DOMParser.
    DOMParser parser=new DOMParser();
             parser.parse("file://c:/xmlFile1.xml");
XMLDocument document1=parser.getDocument();
XMLDocument document2;-Create an object of type XMLDiff
XMLDiff xmlDiff=new XMLDiff(); -Set the documents to be compared.
xmlDiff.setDocuments(document1, document2);-Compare the XML documents.
boolean diff=xmlDiff.diff();If diff is 'true', the documents are different.
-Generate the XSLT for the differences between the XML documents.
xmlDiff.generateXSLFile("diff.xslt");

Similar Messages

  • How to find out the Transactions used per month & the USER who used that

    Hi,
    1)How to find out the Transactions used per month & the USER who used that?
    2)and can i get the above same for minimum 20 month?
    System : SAP- Enterprise Core Component.

    You can use my program...
    *& Report  Z_ABAP_TCODE_MONITOR
    *****&  Program Type          : Report                                 *
    *****&  Title                 : Z_ABAP_TCODE_MONITOR                   *
    *****&  Transaction code      : ZTCODE_USAGE                           *
    *****&  Developer name        : Shailendra Kolakaluri                  *
    *****&  Deveopment start date : 26 th Dec 2011                         *
    *****&  Development Package   : ZDEV                                   *
    *****&  Transport No          : DEVK906086                                       *
    *****&  Program Description   : This program is to display
    *List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    *& Modification history
    REPORT  Z_ABAP_TCODE_MONITOR.
    *& List all tcodes executed during previous day.
    *& Show the number of users executing tcodes
    TYPE-POOLS : slis.
    DATA: ind TYPE i,
          fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
          layout TYPE slis_layout_alv,
          variant TYPE disvariant,
          events  TYPE slis_t_event WITH HEADER LINE,
          heading TYPE slis_t_listheader WITH HEADER LINE.
    *REPORT  z_report_usage.
    TYPES: BEGIN OF zusertcode,
      date   TYPE swncdatum,
      user   TYPE swncuname,
      mandt     TYPE swncmandt,
      tcode     TYPE swnctcode,
      report TYPE swncreportname,
      count     TYPE swncshcnt,
    END OF zusertcode.
    *data   : date type n.
    DATA: t_usertcode  TYPE swnc_t_aggusertcode,
          wa_usertcode TYPE swncaggusertcode,
          wa           TYPE zusertcode,
          t_ut         TYPE STANDARD TABLE OF zusertcode,
          wa_result    TYPE zusertcode,
          t_result     TYPE STANDARD TABLE OF zusertcode.
    PARAMETER: month TYPE dats DEFAULT sy-datum.
    *PARAMETER: date TYPE dats.
    *select-options : username for wa_usertcode-account.
    START-OF-SELECTION.
    PERFORM get_data.
    PERFORM get_fieldcatalog.
      PERFORM set_layout.
    PERFORM get_event.
    PERFORM get_comment.
      PERFORM display_data.
    FORM get_data .
    *date = sy-datum - 2 .
    After start-of-selection add this line (parameter Month required 01 as day).
      concatenate month+0(6) '01' into month.
      CALL FUNCTION 'SWNC_COLLECTOR_GET_AGGREGATES'
        EXPORTING
          component     = 'TOTAL'
          ASSIGNDSYS    = 'DEV'
          periodtype    = 'M'
          periodstrt    = month
        TABLES
          usertcode     = t_usertcode
        EXCEPTIONS
          no_data_found = 1
          OTHERS        = 2.
      wa-date  = month.
    *wa-date  = date.
      wa-mandt = sy-mandt.
    wa_usertcode-account = username.
      LOOP AT t_usertcode INTO wa_usertcode.
        wa-user = wa_usertcode-account.
        IF wa_usertcode-entry_id+72 = 'T'.
          wa-tcode  = wa_usertcode-entry_id.
          wa-report = space.
        ELSE.
          wa-tcode  = space.
          wa-report = wa_usertcode-entry_id.
        ENDIF.
        COLLECT wa INTO t_ut.
      ENDLOOP.
      SORT t_ut BY report ASCENDING.
      CLEAR: wa, wa_result.
    endform.
    FORM get_fieldcatalog .
    fcat-tabname     = 't_ut'.
    fcat-fieldname   = 'DATE'.
    fcat-seltext_l   = 'Date'.
    fcat-key         = 'X'.
    APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'MANDT'.
      fcat-seltext_l   = 'Client'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'USER'.
      fcat-seltext_l   = 'User Name'.
      fcat-key         = 'X'.
      APPEND fcat.
      CLEAR fcat.
      fcat-tabname     = 't_ut'.
      fcat-fieldname   = 'TCODE'.
      fcat-seltext_l   = 'Transaction Code'.
      fcat-key         = 'X'.
      APPEND fcat.
    ENDFORM.
    *&      Form  SET_LAYOUT
          text
    -->  p1        text
    <--  p2        text
    FORM set_layout .
      layout-colwidth_optimize = 'X'.
    ENDFORM.                    " SET_LAYOUT
    *&      Form  GET_EVENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_event .
    events-name = slis_ev_top_of_page.
    events-form = 'TOP_OF_PAGE'.
    APPEND events.
    *ENDFORM.                    " GET_EVENT
    **&      Form  GET_COMMENT
          text
    -->  p1        text
    <--  p2        text
    *FORM get_comment .
    DATA: text(30).
    text = 'Billing Report'.
    heading-typ = 'H'.
    heading-info = text.
    APPEND heading.
    *ENDFORM.                    " GET_COMMENT
    **&      Form  top_of_page
          text
    -->  p1        text
    <--  p2        text
    *FORM top_of_page .
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
       EXPORTING
         it_list_commentary       = heading[]
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    *ENDFORM.                    " top_of_page
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      sort t_ut[].
    DELETE ADJACENT DUPLICATES FROM t_ut[] COMPARING ALL FIELDS.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = fcat[]
          i_save             = 'A'
          is_variant         = variant
          it_events          = events[]
        TABLES
          t_outtab           = t_ut
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " DISPLAY_DATA

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • How to find out the difference between two payloads in the BPEL/xsl

    Hi,
    We are invoking a soa service from a BPEL with 10 input parameters and getting the output for only 7 parameters (where 10-7=3 are not returned by service as they are not processed by the service due to invalid input data).
    But the BPEL process should return the 10 payloads with 3 having the failures status.i.e need to find out the difference between input payload and the payload returned by the soa service.
    Can any one tell us, how to achieve this.
    Thanks in advance,
    Ram.

    Check the instance in EM console( in 11G) or BPEL console (in 10G ) and u can see the input and output xmls.

  • How to find out Query last used by whom

    Dear All,
    Can any one tell me that "How to find out the Query last used by whom. I have already searched in SDN but no luck. In my system BW Stats are not installed and I have already checked the below tables.
    RSZELTDIR  - Directory of the reporting component elements
    RSZELTTXT  - Texts of reporting component elements 
    RSZELTXREF  - Directory of query element references 
    RSRREPDIR -  Directory of all reports (Query GENUNIID) 
    RSZCOMPDIR -  Directory of reporting components 
    RSZRANGE  - Selection specification for an element 
    RSZSELECT -  Selection properties of an element
    RSZELTDIR - Directory of the reporting component elements 
    RSZCOMPIC -  Assignment reuseable component <-> InfoCube
    RSZELTPRIO -  Priorities with element collisions
    RSZELTPROP - Element properties (settings)
    RSZELTATTR - Attribute selection per dimension element 
    RSZCALC - Definition of a formula element 
    RSZCEL - Query Designer: Directory of Cells
    RSZGLOBV -  Global Variables in Reporting
    RSZCHANGES  Change history of reporting components 
    I am able to find out the Date and time but not the user name.  So could you please help on this.
    Regards
    Sankar

    i think u have missed it.
    RSZCOMPDIR IS THE ONLY TABLE WHICH PROVIDES THE DATA.
    ENTER TECHNICAL QUERY Name in RSZCOMPDIR-COMPID.
    RSZCOMPDIR-TSTNAM gives you the user id of sap bw user who made the change.
    RSZCOMPDIR-TSTPDAT gives you date on which  change was made .
    RSZCOMPDIR-TSTPTIM   gives you timestamp on which  change was made .
    all users details can be obtained from TCODE SU01 where you need to enter sap user id.
    You can also get user name( description) by using tcode SE09 and entering above sap user id.

  • How to find out time difference between 2 consecutive characters coming in

    Hi
    Data is coming on serial port and m taking this data in a input stream.I need to know the time difdference between consecutive characters.Any ideas?

    What do you mean? If you meassure the time between two characters, you want to calculate how accurate it is? First you would need to find out how accurate the System.currentTimeMillis is on the platform you run on. That may be easy
    long start = System.currentTimeMillis();
    long end;
    while ((end = System.currentTimeMills()) == start);
    long delta = end - start;But sometimes (on win98) it reports 50, other times 60. So its not quite accurate. But you could redo that test a couple of times and take the avg or the max.
    Then if you get a time difference of 0ms between two characters, you know it will be somewhere 0 and 60ms. If you get 60ms between two characters, you know it will be somewhere between 0 and 120 ms. It's +/- delta seconds accurate.
    Would this be a way to calculate the percentage accuracy: 100.0-100.0*delta/(time+delta)
    Still better to meassure the time over more than just 2 characters unless it is a very slow stream.

  • Please help on how to find out if your capped? And...

    Is there another way to find out if your capped and when it will come off (other than it sloooooooows down at 5 and picks up at 12? Which could be lots of users on line, but funny how it happens every night at the same time.)
    without having to call bt to be told no your not

    the speedtester should tell you what yourthroughput is. try doing that during your peak time. also do a download test say xp service pack 3
    before peak time and during peak time to see how your line is bieng capped.  that way hopefully you can get a better idea

  • HT4811 I have tried to find out more about recent virus hitting apple computers through 'adobe' downloading. can anyone help me how to find out if my Mac is infected ?

    How do I find out if FileVault is enabled ?

    To answer your subject line, see About the Flashback malware.  (Note that my pages contain links to other pages that promote my services, and this should not be taken as an endorsement of my services by Apple.)
    I'm not sure what that has to do with FileVault, but to answer that question, go to System Preferences -> Security & Privacy -> FileVault.

  • How to find out what is using the native heap of a process running a JVM?

    Hello,
    I am not sure where to post this question so I am starting here.
    I am troubleshooting a Java application using some native calls (32 bits Java running on Solaris 10). The size of the process (as reported by prstat) is slowly increasing day after day.
    The size of the 'Java heap' is fixed at the start (-Xms and -Xmx are set to the same value on the command line when launching the Java app) and the GC is workling fine. No memory complaints from the Java side of the application.
    It is the size of the 'native' heap (as reported by 'pmap') that is increasing:
    root@mas01 # pmap 5382
    5382:/apps/java/bin/java -server -Xms207M -Xmx207M -XX:MaxNewSize=24M -XX:N
    00010000 64K r-x-- /apps/jdk1.5.0_19/bin/java
    0002E000 16K rwx-- /apps/jdk1.5.0_19/bin/java
    00032000 3896K rwx-- [ heap ]
    00400000 389120K rwx-- [ heap ]
    18000000 2784K rwx-- [ heap ]
    DCAF4000 48K rw--R [ stack tid=169 ]
    DCBF6000 40K rw--R [ stack tid=161 ]
    DCCF8000 32K rw--R [ stack tid=160 ]
    My first reaction was to search for a memory leak. Found a minor leak in the JVM with the ::findleak function (called within the mdb debugger). Upgraded to a later release of Java 5 (Java 1.5.0_19) where the leak is fixed but the heap is still increasing.
    Many parts of the process allocate memory in the native heap. The JVM itself, the native calls made to a C++ library part of our Java application and maybe also some 3rd party software.
    I would like to know what is the best way to find out what is consuming more and more memory in the native heap. I started looking a DTraces but I am new to this. I also thought maybe the Solaris Perftools might be of use but I never used them. Before plunging into a tool more or less blindly, I am asking for advices on how to tackle this issue. Can someone recommend a tool/method to see what is allocated in the heap?
    Regards,
    Stéphan
    Edited by: StephanDupont on Sep 22, 2009 8:47 AM

    After googling a lot I managed to run my application with libumem, generated a core file and succeeded to find some leak with mdb even if ::findleak reported nothing.
    Does anyone knows if the ::findleak (you need libumem and mdb) is supposed to find leak in the native part of the memory and a Java application using the JNI interface?
    Regards,
    Stéphan

  • How to find out which application uses how many Web containers?

    Hi everybody,
    we are monitoring several JAVA engines via sapccmsr and often get a threshold overflow for SID\Server\...\Web Container\AllRequestsCount
    The SAP online documentation tells me how to set a threshold for any web application. But befor that I should know, which application uses up all the Web Containers. How can I find out?
    btw: Does the Threshold (1.000.000) make any sense, or is this just a number that may be changed without the fear for any consequences? Is there a serious performance impact?
    Thank you in advance
    Ralf

    Ralf,
    I have an opinion, that you can take a trace messages from Web Container service, which might give you some more details.
    I am not completely sure if that serves your purpose. Still you can have a look in the below document, if it looks helpful.
    http://wiki.sdn.sap.com/wiki/display/JSTSG/%28JSTSG%29%28Web%29Trace+locations
    Regards,
    Sujit.

  • How to find out user privilege using JPDK

    Hi All,
    How can I find out what type of user-privilege that a user has inside the renderBody method of the subclass of the BaseManagedRenderer class? e.g: whether the user has the Administer privilege.
    I looked through the ProviderUser object which can be obtained from the pr.getUser() (PortletRenderRequest.getUser()) and it does not seem to provide the method to get the user's privilege.
    Any insight is greatly appreciated!
    Thanks,
    Vince

    Vince,
    How did you figure out calling the is_user_in_group or other
    similar function calls in the WWSEC_API?
    I tried making a regular SQL Statement by doing the following.
    CallableStatement callablestatement = conn.prepareCall
    ("begin ? := wwsec_api.is_user_in_group(?,?); end;");
    callablestatement.registerOutParameter(1, 12);
    callablestatement.setInt(2, 17);
    callablestatement.setInt(3, 0);
    callablestatement.execute();
    boolean s2 = callablestatement.getBoolean(1);
    callablestatement.close();
    but it fails with the following exception in the JSP...
    java.sql.SQLException: ORA-06550: line 1, column 13: PLS-00382:
    expression is of wrong type ORA-06550: line 1, column 7: PL/SQL:
    Statement ignored
    Can you shed some light on the problem?
    Thanks,
    Niket Parikh

  • How to find out who is using the shared library?

    Is there a way to find out who is listening to my music on my shared library and what they are listening to?

    After googling a lot I managed to run my application with libumem, generated a core file and succeeded to find some leak with mdb even if ::findleak reported nothing.
    Does anyone knows if the ::findleak (you need libumem and mdb) is supposed to find leak in the native part of the memory and a Java application using the JNI interface?
    Regards,
    Stéphan

  • How to find out operation unit used in preliminary cost estimate.

    Please tell me in which table operation unit used in cost estimate is stored.I dont want information from routing.Can i get the information from cost estimate table itself.

    ttSize 'estimates' the storage required for a table (and indexes) based on the table schema and the number of rows to be stored in the table.
    DSSIZE reports several values from the SYS.MONITOR table. The main one of interest here is PERM_IN_USE_SIZE: 416840. This means that currently 416,840 KB (~407 MB) of memory is used within the datastore. Have you loaded the data for all three tables from Oracle into TimesTen (LOAD CACHE GROUP)? It would be very unusual for there to be such a discrepancy between the size estimated by ttSize and the actual memory needed...
    Unfortunately, there is no way to find out the exact amount of memory actually occupied by a specific table in TimesTen :-(
    Chris

  • How to find out the variable using in the system.

    Hi Friends,
    When I am trying to create a new variable for a infoobject. It is giving me a warning that Change the tecnical name 'New Variable.....' Before save
    This is not allowing me to create any new variable.
    In the system I find out one variable is there with the name  'New Variable.....'
    And It is being used some where. When I am trying to delete this variable it is giving me a msg that it is being used in ZSCEMESTS.
    But I am not able to find out where this ZSCEMESTS is exists.
    Is there any TCODE for find out this object.
    I want to delete this New Varable.....  So can any body pls provide me the solution?
    Regards,
    Sridhar

    Hi Sridhar.
    Can you please tell me, is the variable entry mandatory? If yes please make the variable entry is optional.
    Hi Sridhar,
    Can you please tell me which type of variable it is? On which object this variable built?
    Variable is available global level, so you can view this variable on the same object right click restrict --- variable --- select --- delete.
    If it though it is already used in another query then use where used list then go to respective query and delete the same.
    Regards,
    Lokanatha.

  • How to find out the updates using query which has done in Discoverer Admin

    Hi All,
    I have done some updates in Discoverer Admin like add field in some folders and rename...I want to know the updates which has been done in the front end using sql query.
    Could any one please tell me is there any query to find out the updates in Discoverer admin.
    Thanks,
    Kamal

    Hi Siddarth,
    Solution :
            1) Go to SE16 - Table Name : EKBE (PO History)
            2) Field - BUDAT (Posting Date)
            3) Transaction event Type:
                             - 1 (Only GR's )
                             - 2 (Both GR and IR)
            4) We can fetch both GR Numbers and also PO Numbers for which IR has not been done if transaction event - 1.
    In addition to MB5S, you can try this also...

Maybe you are looking for

  • "Non-receipt" of Exchange e-mail STILL broken in 10.9.2

    If I restart my computer and run Mail, after a day or two Exchange-based e-mail from work stops being received (it is received perfectly fine on my iOS devices, which is how I know I'm getting the mail). I then have to either restart Mail, toggle "go

  • Search feature in the new 1.2 software not working

    i just watched the video of the announcing of the new ipod features and it showed him using a search feature from the new 1.2 software but i dont have it on my ipod. why is this?

  • Aperture 3, Photoshop CS5 and OnOne Plugin Suite 5.1 for Mac

    Hi yall, I mostly use Aperture 3.1.3 to manage my photos. I got a new iMac and installed this software and recovered my Aperture Library. All is fine. But I also installed my Adobe Creative Suite 5 Master Collection for Mac, and y OnOne Plugin Suite

  • BI Applications Administrator User : given name as Administrator

    Installing Oracle BI APPS 11.1.1.7.1 in Windows 2008 Server Run ConfigApps.bat Step 7 of 15 BI Applications Administrator User Wrongly given the Username : Administrator Now, unable to login to repository in ODI. What are my options, how to resolve t

  • SR1 De-Centralized Adapter Engine Install

    Folks, I have installed Netweaver Developer Workplace SR1 sucessfully on a local machine XP Professional. When I attempt to install the De-Centralized Adapter Engine (also SR1) on the same machine it seems to corrupt the local AS Java server and it c