How to Group and Sum rtf elements

Dear Friends,
I am having limited knowledge of XML so looking for your help
I am trying to create external template for Bill Presentment Architecture which is in .rtf. Template is having 3 section Invoice header, Lines and Tax summary.
Invoice Header and line section is ok, but facing some issues with Tax section.
LINE SECTION
LINE_ID     ITEM     RATE     QTY     BASE_AMT     TAX_RATE     TAX_AMT     TOTAL_AMT
1     P0001     20     10     200     21%     42     242
3     P0003     40     30     1200     21%     252     1452
4     P0004     20     100     2000     10%     420     2200
5     P0005     50     10     500     10%     105     550
2     P0002     50     20     1000     6%     210     1060
EXPECTED RESULT IN TAX SUMMARY SECTION WHICH I AM LOOKING FOR
TAX RATE           BASE_AMT          TAX_AMT          TOTAL_AMT
21%          1400          294          1694
10%          2500          525          2750
6%          1000          210          1060
Looking for your help, much appriciated.
Regards,
Jay
Edited by: 992820 on Mar 9, 2013 5:20 AM

>
Tax Code Taxable amount
VAT 6% 1200
VAT 6% 1400
VAT 7% 1000
VAT 7% 2000
I used you code
<?for-each-group:LINE;./tax_code?> G tag
and getting following result
VAT 6% 1200
VAT 7% 1000
>
because you have loop by tax_code and no loop and no aggregation function (e.g. sum) for amount, so amount will be from first row
try add sum function for amount
also http://docs.oracle.com/cd/E18727_01/doc.121/e13532/T429876T431325.htm#I_bx2Dcontent
Summary Lines: Check this box if you want to display summarized transaction lines. Grouped lines are presented in the Lines and Tax area of the primary bill page.so it's may be not template problem but some settings?

Similar Messages

  • I am trying to figure out how to cut and paste in elements 11

    I am trying to figure out how to cut and paste in elements 11

    On picture A, use one of the selection tools (e.g. selection brush, lasso tool, etc.) to select the object
    Go to Edit menu>copy to place the object on the clipboard
    Open picture B
    Go to Edit menu>paste
    Get the move tool out of the toolbox, and position the object and resize with the corner handles of the bounding box

  • Purchased photoshop elements 12 and premiere elements 12. downloaded and installed photoshop elements12 but cannot find how to download and install premiere elements 12

    After I purchased pselements 12 and premiere elements 12 I downloaded and installed pselements 12 but I cannot find how to download and install premiere elements 12 because that window has disappeared and I can't get back to it. How do I download and install premiere elements 12? where is it? how can I find it?

    rachif
    I am assuming that the purchase and download is from Adobe. You should find the information that you seek under My Orders at http://www.adobe.com after you sign in (as per John's link).
    However, if you have difficulties in going that route, please contact Adobe via Adobe Chat to discuss your order under the topic of Orders, Refunds, and Exchanges. To do that, click on the following link, and, when it opens, make sure that the topic is set at "Orders, Refunds, and Exchanges", click on the statement "Still need help? Contact us." to bring up the Adobe Chat.
    Contact Customer Care
    Please let us know the outcome.
    Thank you.
    ATR

  • Sql grouping and summing impossible?

    I want to create an sql query to sum up some data but i'm starting to think it is impossible with sql alone. The data i have are of the following form :
    TRAN_DT     TRAN_RS     DEBT     CRED
    10-Jan     701     100     0
    20-Jan     701     150     0
    21-Jan     701     250     0
    22-Jan     705     0     500
    23-Jan     571     100     0
    24-Jan     571     50     0
    25-Jan     701     50     0
    26-Jan     701     20     0
    27-Jan     705     0     300The data are ordered by TRAN_DT and then by TRAN_RS. Tha grouping and summing of data based on tran_rs but only when it changes. So in the table above i do not want to see all 3 first recods but only one with value DEBT the sum of those 3 i.e. 100+150+250=500. So the above table after grouping would be like the one below:
    TRAN_DT     TRAN_RS     DEBT     CRED
    21-Jan     701     500     0
    22-Jan     705     0     500
    24-Jan     571     150     0
    26-Jan     701     70     0
    27-Jan     705     0     300The TRAN_DT is the last value of the summed records. I undestand that the tran_dt may not be selectable. What i have tried so far is the following query:
    select tran_dt,
             tran_rs,
             sum(debt)over(partition by tran_rs order by tran_dt rows unbounded preceding),
             sum(cred)over(partition by tran_rs order by tran_dt rows unbounded preceding) from that_tableIs this even possible with sql alone, any thoughts?
    The report i am trying to create in BI Publisher.Maybe it is possible to group the data in the template and ask my question there?

    915218 wrote:
    Is this even possible with sql alone, any thoughts?It sure is...
    WITH that_table as (select to_date('10/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 100 debt, 0 cred from dual union all
                         select to_date('20/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 150 debt, 0 cred from dual union all
                         select to_date('21/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 250 debt, 0 cred from dual union all
                         select to_date('22/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 500 cred from dual union all
                         select to_date('23/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 100 debt, 0 cred from dual union all
                         select to_date('24/01/2012', 'dd/mm/yyyy') tran_dt, 571 tran_rs, 50 debt, 0 cred from dual union all
                         select to_date('25/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 50 debt, 0 cred from dual union all
                         select to_date('26/01/2012', 'dd/mm/yyyy') tran_dt, 701 tran_rs, 20 debt, 0 cred from dual union all
                         select to_date('27/01/2012', 'dd/mm/yyyy') tran_dt, 705 tran_rs, 0 debt, 300 cred from dual)
    , brk AS (
    SELECT     tran_dt,
            tran_rs,
         debt,
         cred,
            CASE WHEN Nvl (Lag (tran_rs) OVER (ORDER BY tran_dt, tran_rs), 0) != tran_rs THEN tran_rs || tran_dt END brk_tran_rs
      FROM that_table
    ), grp AS (
    SELECT     tran_dt,
            tran_rs,
             debt,
             cred,
            Last_Value (brk_tran_rs IGNORE NULLS) OVER  (ORDER BY tran_dt, tran_rs) grp_tran_rs
      FROM brk
    SELECT     Max (tran_dt),
            Max (tran_rs),
             Sum (debt),
             Sum (cred)
      FROM grp
    GROUP BY grp_tran_rs
    ORDER BY 1, 2
    Boneist
    MAX(TRAN_    TRAN_RS       DEBT       CRED
    21-JAN-12        701        500          0
    22-JAN-12        705          0        500
    24-JAN-12        571        150          0
    26-JAN-12        701         70          0
    27-JAN-12        705          0        300
    Me
    MAX(TRAN_ MAX(TRAN_RS)  SUM(DEBT)  SUM(CRED)
    21-JAN-12          701        500          0
    22-JAN-12          705          0        500
    24-JAN-12          571        150          0
    26-JAN-12          701         70          0
    27-JAN-12          705          0        300Edited by: BrendanP on 17-Feb-2012 04:05
    Test data courtesy of Boneist, and fixed bug.
    Edited by: BrendanP on 17-Feb-2012 04:29

  • LINQ Group and Sum table

    I can't figure how to group those records 
    EmpID
    ClientId
    HourIn
       HourOut
            Date
    TotalHours
    12345
    9999
    8:00 AM
    12:00 PM
    01/05/2015
    4
    12345
    9999
    1:00 PM
    3:00 PM
    01/05/2015
    2
    12345
    9999
    3:30 PM
    6:00 PM
    01/05/2015
    2.5
    12345
    9999
    8:00 AM
    5:00 PM
    01/06/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/07/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/08/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/09/2015
    9
    I want to group by date and sum total hours and hourin in the first and hour out is the last one. 
    FYI (date can be datetime) (eg i can make date to be (1/18/2014 12:00:00 AM)
    EmpID
    ClientId
    HourIn
    HourOut
    Date
    TotalHours
    12345
    9999
    8:00 AM
    6:00 PM
    01/05/2015
    8.5
    12345
    9999
    8:00 AM
    5:00 PM
    01/06/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/07/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/08/2015
    9
    12345
    9999
    8:00 AM
    5:00 PM
    01/09/2015
    9
    Thanks in advance

    Hope this helps..do a group by and then select ..change the below accordingly
    DataTable objtable = new DataTable();
    objtable.Columns.Add("EmpID", typeof(int)); objtable.Columns.Add("ClientId", typeof(int));
    objtable.Columns.Add("HourIn", typeof(DateTime)); objtable.Columns.Add("HourOut", typeof(DateTime));
    objtable.Columns.Add("Date", typeof(DateTime)); objtable.Columns.Add("TotalHours", typeof(double));
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/05/2015 8:00 AM"), Convert.ToDateTime("01/05/2015 12:00 PM"), Convert.ToDateTime("01/05/2015"), 4);
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/05/2015 1:00 PM"), Convert.ToDateTime("01/05/2015 3:00 PM"), Convert.ToDateTime("01/05/2015"), 2);
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/05/2015 3:30 PM"), Convert.ToDateTime("01/05/2015 6:00 PM"), Convert.ToDateTime("01/05/2015"), 2.5);
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/06/2015 8:00 AM"), Convert.ToDateTime("01/06/2015 5:00 PM"), Convert.ToDateTime("01/06/2015"), 9);
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/07/2015 8:00 AM"), Convert.ToDateTime("01/07/2015 5:00 PM"), Convert.ToDateTime("01/07/2015"), 9);
    objtable.Rows.Add(12345, 9999, Convert.ToDateTime("01/08/2015 8:00 AM"), Convert.ToDateTime("01/08/2015 5:00 PM"), Convert.ToDateTime("01/08/2015"), 9);
    objtable.AcceptChanges();
    var result = objtable.AsEnumerable().GroupBy(x => x.Field<DateTime>("Date")).Select(g => new
    empId = g.First().Field<int>("EmpID"),
    clientID = g.First().Field<int>("ClientId"),
    hoursIn = g.Min(e => e.Field<DateTime>("HourIn")),
    hourOut = g.Max(e => e.Field<DateTime>("HourOut")),
    totalhours = g.First().Field<double>("TotalHours")
    foreach (var row in result)
    Console.WriteLine("{0} {1} {2} {3} {4} ", row.empId,row.clientID, row.hoursIn.ToString("HH:mm tt"), row.hourOut.ToString("HH:mm tt"),row.totalhours);

  • Grouping and sum values in XI

    Hello,
    I 'm working with invoice and I have this source structure as XI input:
    Invoice
    -- |....
    -- |....
    -- |Item1
    |taxcode=01
    |Amount=12
    --|Item2
    |taxcode=08
    |Amount=10
    --|Item3
    |taxcode=01
    |Amount=24
    Now my scope is to map these fields to the IDOC segment E1EDP04 grouping by taxcode (MWSKZ taxcode)and putting the sum of the group amount (MWSBT amount).
    IDOC:
    --|...
    --|...
    --|E1EDP01
    |...
    |...
    |EIEDP04
    |MWSKZ=01
    |MWSBT=36
    |...
    --|E1EDP01
    |...
    |...
    |EIEDP04
    |MWSKZ=08
    |MWSBT=10
    |...
    How can I group by a field in XI?
    Thank you
    Corrado

    Hi Corrado,
    If You want to do it in graphical mapping then I will do it this way:
    1. sort by taxcode
    (taxcode) --> split by value (valuechanged) --> formatByExample (Amount, and splitted value) --> sum(amount) --> MWSBT
    I can send u a screenshot of something similar if u need.
    best regards
    Dawid

  • Group and Sum in Webi

    Hi,
    I have three objects Business Unit, Department and Revenue
    I would like to group by Business Unit and Departement; sum of Revenue.
    How to do this in report level?
    Please let me know?
    Thanks and Regards,
    Manjunath N Jogin

    Hi Pumpactionshotgun ,
    I did same thing in webi but revenue field is diplaying all records.
    It is not aggreagting (sum) based on Business Unit and Departement.
    How to  do 'aggregation seting for Revenue in the universe'
    I am waiting your replay.
    Thanks and Regards,
    Manjunath N Jogin

  • Select query with group and sum

    Friends I have a table which has a list of item that are sold in many provinces and their selling price.
    EMP_TABLE
    item_code
    item_desc
    item_province
    item_selling_price
    Now I want a query which a row containing
    distinct item code ,item desc,province ,sum of item_selling_price for Ontario,sum of item_selling_price for British Columbia,sum of item_selling_price for Quebec
    Can anyone please tell me how to do it.
    thx
    m

    Hello
    It's always usefull to provide some test data and create table scripts etc, but does this do what you're after?
    create table dt_test_t1
    (item_code                     varchar2(3),
    item_desc                    varchar2(10),
    item_province               varchar2(20),
    item_selling_price          number(3)
    ) tablespace av_datas;
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item1','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item2','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item3','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item4','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province2',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province1',10);
    INSERT INTO dt_test_t1 VALUES('ABC','Item5','Province2',10);
    SQL> SELECT
      2     item_code,
      3     item_desc,
      4     SUM(DECODE(item_province,'Province1',item_selling_price,0)) province_1_total,
      5     SUM(DECODE(item_province,'Province2',item_selling_price,0)) province_2_total
      6  FROM
      7     dt_test_t1
      8  GROUP BY
      9     item_code,
    10     item_desc;
    ITE ITEM_DESC  PROVINCE_1_TOTAL PROVINCE_2_TOTAL
    ABC Item1                    10               20
    ABC Item2                    30                0
    ABC Item3                     0               30
    ABC Item4                    20               10
    ABC Item5                    10               20HTH
    David

  • Expression Grouping and Summing

    I am working on a report where I have an expression that gets the Max value of a field in the detail row of my report.  I have four levels of grouping that I then need this expression to sum.  The expression is: 
    =Max(IIF(LEFT(Fields!JobNum.Value,1)="S" AND Fields!Week1STol.Value<>0, CDBL(Fields!Week1STol.Value), 0))
    I am using Max, because I need a value from a result set that is one of the non-zero values from the result set.  They will all be the same, or 0, so if there is a different way to get the non-zero value without using an aggregate I can change my expression
    to do that, but I have not found a way to do that yet.  Now since I am grouping this, and as each group rolls up I need the sum of the max values in the subgroup.  When I get is the Max value of the new group.
    I have tried various ways to try and get this to sum.  I have tried creating total rows, added custom code to collect running totals, etc., I have also tried wrapping the whole thing in a SUM aggregate, and that will work in the detail, but will not
    roll up into the groupings.
    Any help as to how this can be done will be greatly appreciated.
    Thank you,
    Chad 

    Ok, after continuing to search the internet I finally found the extra piece that I was missing that gave me the results I needed. The new expression looks like this:
    =runningvalue(Sum(Max(IIF(LEFT(Fields!JobNum.Value,1)="S" AND Fields!Week1STol.Value<>0, CDBL(Fields!Week1STol.Value), 0),"JobItem"),"JobItem"),SUM, "JobItem")
    In this I wrapped the original expression of Max in both a Sum and a runningvalue both at the JobItem level to get this rollup value. Now when I open the grouping I get the correct running value at each level.
    What this really gives to me is a running total at each of four groupings, even with a "max" value at the detail level. This also allows me to total a max value inline on the report, without needing a hidden row, or report footer.
    Thank you to everyone who looked at this, I hope it helps someone else. If this answer is not clear enough, please don't hesitate to add to the comments and I will try to clarify.
    Thank you, Chad

  • How to Merge and Sum across columns??

    Hey guys I have an interesting Problem (at least interesting to me:p). I am trying to figure out how to use numbers to collate or group certain column data and then sum the values of the grouped data. below is a snippet from my an error log i've parsed. The final step I need to do is to create a 3 column output where the values are - Error (merged), # Errors (SUM), Error Detail(merged).
    I hope this makes sense and any help is greatly appreciated.
    24900 291 Client/zimpErrVal.h
    24900 96 Client/zimpErrVal.h
    24900 82 Client/zimpErrVal.h
    15007 700 Alllocation/zsmErrVal.h
    15209 15274 Session/zapErrVal.h
    15209 228 Session/zapErrVal.h
    15209 2447 Session/zapErrVal.h
    best,
    Curtis
    Message was edited by: Curtis Wiilliams

    Well there is a lot of interesting stuff going one here. The Hidden Col formula works great when the Err Code Col is sorted. When Err Code is random, the Hidden Col repeats counts some Err Codes twice thus giving an incorrect total...
    /___sbsstatic___/migration-images/migration-img-not-avail.png
    whereas the sorted Err Code returns the values I think your formula intended
    /___sbsstatic___/migration-images/migration-img-not-avail.png
    Also for some reason I can't get the Table 2 - Col A formula to recognize Table 1 - Err Code as a reference???
    =IF(ROW()-1>MAX(Table 1 :: Hidden),"",LOOKUP(ROW()-1,Table 1 :: Hidden,Table 1::'Error Code'))
    /___sbsstatic___/migration-images/migration-img-not-avail.png
    how the heck do you post a screenshot???
    Message was edited by: Curtis Wiilliams
    Message was edited by: Curtis Wiilliams

  • How to select and sum  internal table records

    Dear Friends
    I kindly ask you if we have select statement
       if s_mtart = 'z003'
          select single pvprs from ckmlcr into ckmlcr-pvprs
    where poper EQ s_poper and
          kalnr = itab2-kalnr  and
          bdatj = itab2-bdatj and
          curtp = itab2-curtp.
    like this how can I calculate how many record it got and I want to get summation of this field(pvprs).And for all poper's must contain.
      Please  Let me remind you my itab is already open I didn't put any thing for this situation

    it seems to be you written this SELECT in a loop. if so,
    instead of pushing the values into ckmlcr-pvprs ,create an internal table
    data : begin of itab,
         pvprs  type ckmlcr-pvprs ,
        end of itab.
    then just after that SELECT SINGLE,
    select single pvprs from ckmlcr <b>into ITAB-pvprs</b>
    where poper EQ s_poper and
    kalnr = itab2-kalnr and
    bdatj = itab2-bdatj and
    curtp = itab2-curtp.
    IF SY-SUBRC = 0.
      APPEND ITAB.
    here either you can use APPEND OR COLLECT.
    If you use COLLECT,all the values will get summed up and final sum will be in the table ITAB-pvprs.
    ENDIF.
    After all loops your itab will have the totals.
    DESCRIBE TABLE ITAB LINES V_LINES.
    V_LINES Will have total no of lines.
    Regards
    srikanth

  • How to download and convert RTF/DOC file in DMS into PDF file

    Hello.
    We're on ECC6.0. We have a requirement to get the *.doc or *.rtf file checked in DMS, convert it to pdf format and download it as *.pdf file. The document data is stored in DRAO-ORBLK (LRAW data type). Has anyone programmatically done this? What is the process to achieve this? I've read in the forum that you should first convert RTF(.doc) data to OTF format using CONVERT_RTF_TO_ITF and then you will get the script format from rtf data. Generate the spool using the script data. Convert the spool to PDF using CONVERT_OTFSPOOLJOB_2_PDF. However, the fm CONVERT_RTF_TO_ITF uses RAW data type. There's also fm CONVERT_OTF_2_PDF but I don't know how to implement this for my purpose.
    Also, if Adobe Distiller is installed on the SAP application server, can it be used from an ABAP pgm?
    Thanks in advance for your inputs.

    Hi Maria,
    I realize this a rather old post, but was wondering if you managed to do this as I am having a similar requirement. Appreciate if you could share any solution or findings.
    Thanks,
    Lashan

  • How Employee groups and Organizational units are related

    Hi All,
    I had a requirement for bulk upload of Appraisal documents.
    I am an ABAP Consultant.
    Here client wants the Employee group as a Selection Criteria.
    Based on this I had a query how can I get Organizational units from Employee group.
    Actually this is my requirement and if any alternate solutions & suggestions are also welcome.
    Thanks for your time.
    Edited by: nayani pavan on Dec 30, 2008 3:17 PM

    Hi Madhu,
    Thanks for your reply, it is helpful and I need this query.
    Suppose for an organizational unit there will be subordinate organizational unit.
    That means how can I found whether is there any subordinate organizational unit for any organizational unit.
    Hi Ananth,
    But the requirement is in selection screen only Employee group will be available.
    Based on that we need to provide logic. So, I hope above solution is not helping me because they do not want to create appraisal documents person by person. Please guide me.
    Thanks & Regards,
    Pavan.
    Edited by: nayani pavan on Dec 30, 2008 3:56 PM

  • Java XML-Reader (SAX)--How to read and display xml-element-data???

    hello all,
    i would like to display just some xml-data
    Which methods in java should i use to select just one character-data of this (for example: "deu" from the element <Language> or the attribut "version" of the element <catalog>).
    Here is the XML-document i want to parse and display it with System.out.print() :
    <BMECAT version="1.2">
         <HEADER>
              <GENERATOR_INFO>
                   e-proCat 2.1, e-pro solutions GmbH
              </GENERATOR_INFO>
              <CATALOG>
                   <LANGUAGE>deu</LANGUAGE>
                   <CATALOG_ID>Katalog 01</CATALOG_ID>
                   <CATALOG_VERSION>001.000</CATALOG_VERSION>
                   <CATALOG_NAME>ETIM</CATALOG_NAME>
                   <DATETIME type="generation_date">
                        <DATE>2002-05-22</DATE>
                   </DATETIME>
                   <TERRITORY>DE</TERRITORY>
                   <CURRENCY>EUR</CURRENCY>
                   <MIME_ROOT>ETIM-Daten</MIME_ROOT>
              </CATALOG>
    </HEADER>
    </BMECAT>
    Here is the java application i wrote and which doesn t work:
    import org.apache.xerces.parsers.SAXParser;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.XMLReader;
         public class XmlLeser implements ContentHandler {
    public XmlLeser(String fileName) {
    try {
    XMLReader myParser = new SAXParser(); // SAXParser (Xerces)
    myParser.setContentHandler(this);           
    myParser.parse(fileName);      } catch (Exception e) {
         System.out.println("Erreur " + e);     }
    }// End of constructor
    public void startDocument() {
         System.out.println(" start to parse " );
    } // startDocument()
    public void endDocument() {
    System.out.println(" End of Parse ");
    } // endDocument()
    public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
         System.out.println(localName) ;
    public void endElement(String namespaceURI, String localName, String qName) throws SAXException {           
    }// Endelement()
    public void characters(char ch[], int start, int length) {
    } // endCharacters(char[],int,int);
    public void processingInstruction(String target, String data) {
    } // processingInstruction(String,String)
    public void ignorableWhitespace(char ch[], int start, int length) {
              characters(ch, start, length);
    } // ignorableWhitespace(char[],int,int);
    public static void main(String args[]) {
    String xmlFileName = "";
    if (args.length == 0) {               
    System.out.println("Usage::java XmlLeser path/xmlFilename");
    System.exit(0);      } else {
    xmlFileName = args[0];
    XmlLeser pux = new XmlLeser(xmlFileName);
    }// end main()
    }//endClass

    You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
    If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
    If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
    You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
    Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
    Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
    Regards
    JFM

  • How to uninstall and deactivate PS elements 11 from a broken computer so I can download on a new one?

    I recently bought a new computer because my old one crashed. All that I have that is usable is the hard drive. Thank God. However, I cannot uninstall and deactivate my PS elements 11 from that computer to put in on my new one. I've call several numbers for adobe help and nobody seems to be willing to help. Can I please get some help with this?

    There is no number to call, but you can go here:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    and scroll down to "Still need help? Contact us" and just keep going through the links, even when it looks like you're getting looped back to where you were. Eventually you will be able to start a chat session and get it straightened out.

Maybe you are looking for

  • LOCKED OUT OF MY HP G60 PLEASE HELP ASAP

    Locked my self out of my hp g60 trying to make a new password and now i dont know what i typed , PLEASE HELP

  • ICloud sync with Outlook issues

    My problem is this: I use Outlook 2013 and iCloud Control Panel ver. 3.0 (latest). The whole sync process completes fine but when I open Outlook I notice that not all folders/subfolders have been synced plus contacts have not been synced with picture

  • Javascript error in navigation

    Hi all, I have a problem in the portal navigation (we have Enterprise Portal 6.0). I have the following structure: My staff (workset)  Appraisals (workset)  Appraisals (page) The page contains several links to BSP applications. The problem occurs wit

  • Order the keys of Map

    Hi, Running the following code gives the output Map map = new Hashtable(); map.put("RatificationGroup","1"); map.put("XRatificationGroupMember","2"); map.put("RatificationPerEnvironment","3"); map.put("Ratification","4"); map.put ("RatificationCommen

  • Windows 8 Compatability

    I am running Windows 8 Release Preview-Evaluation Copy. Build 8400. Is Firefox compatible with Windows 8? For weeks now, I have been having a problem with downloads and delays. On fresh install, I have decent speeds, but after a day or two, speeds bo