How to find the XML file size in the scenarios?

Hi All,
Recently i have attended an interview at a MNC.
They asked some realtime questions like
1.how to find the XML document size in a File-File scenario?
2.What is mass-assignment replication etc.....
Can anybody tell me the solution for these.
Best regards
Hari prasad

If the input is a flat file, there is no exact way to calculate the size of the generated XML file, since it depends on many factors (number of fields in the recordsets, size of the name of the fields, number of records, etc).
As a rule of thumb, generally ppl use XML file size = 2 x Flat file size, in order to do sizing calculations etc. But again, that is just an estimation, not a precise calculation.
Regards,
Henrique.

Similar Messages

  • How to find PG.xml file name and path associated with a FUNCTION

    Hi,
    I am having a function:IRC_VIS_HOME_PAGE with Web HTML value as below:
    OA.jsp?akRegionCode=IRC_VIS_HOME_PAGE&akRegionApplicationId=800&OAPB=IRC_BRAND
    How to find PG.xml file name and path assoicated with above funtion.
    Thanks,
    ashok

    Ashok,
    Function IRC_VIS_HOME_PAGE will have 2 parameter defined for it which are OASF and OAHP where
    OASF=<SelectedFunctionName> - this tells the Framework to select this function in the given "Home Page" menu context.
    OAHP=<HomePageMenuName> - this is used ONLY with the OASF parameter, and it is used to establish the current menu context. It should point to a "Home Page" menu.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted.

    1.Some web pages give "XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted".
    2.Youtube gives, after pressing start button, message"An error occurred. Please try again later.
    Opening same youtube page with IE, there is no problems.
    3.Scrolling on Mozilla firefox pages works only with sidebar not with mouse wheel.
    Other user accounts on this computer doesn't have these problems.
    BR, Juha

    This can be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox

  • What is the actual file size for the iphone 4s update - 55.5 mb's or 832 mb's

    Can someone tell me the actual file size of the new update for the iphone 4s On my iphone it is telling me it is 55.5 mbs but when I try to download the file thru i tunes it twlls me it is 830 odd mb's.
    Thanks, michael.

    I suspect if you update wirelessly you are just downloading a "delta" updater whereas downloading through iTunes you are downloading the entire replacement firmware. Wirelessly updating does not take nearly as long for the download nor does it require completely erasing then restoring the device.

  • How to show a downloads file size in the "Save As" dialog?

    Hello,
    I have been using Firefox off and on for the last year or so, and there's one thing that always gets me to stop using it, whenever I download a file I cant see the file size of it in the "Save As" dialog, Internet Explorer and Opera has this feature and it's one of the things that I really need, I have tried that extension that does this (I forget the name of it), but unfortunately it is not for Firefox 4 :(
    Thanks you for your help :)

    Hi,
    Visit the following link for you addon:
    https://addons.mozilla.org/en-us/firefox/addon/show-file-size/
    This addon is incompatible for Firefox 4.0 RC. but you can add another addon in firefox to make it work: Addon Compatibility reporter. 1st install this addon and then install your " Show file size addon" it should work then.
    Addon compatibility reporter addon link:
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    Hope this resolves your issue:

  • Reading the XML file and displaying the string with the desired output

    Hi Gurus,
    I have an xml file as below.
    catalog>
    <book>
    <id>101</id>
    <genre>Computer</genre>
    <author>Jim Cortez</author>
    <title>XML for dummies</title>
    <price>44.95</price>
    <description>An in-depth look at creating mashed potatoes
    with XML.</description>
    </book>
    <book>
    <id>102</id>
    <author>George Bush</author>
    <title>I'm the decider</title>
    <genre>Fantasy</genre>
    <price>0.95</price>
    <description>I like milk and cookies.</description>
    </book>
    </catalog>
    I would like to display the Output as
    [<catalog>:1]
    [<book>:1]
    [<id>:1]
    [101:3]
    [</id>:2]
    [<genre>:1]
    [Computer:3]
    [</genre>:2]
    [<author>:1]
    [Jim Cortez:3]
    [</author>:2]
    [<title>:1]
    [XML for dummies:3]
    ............ etc., etc.,,
    here is the code template.......
    import java.io.*;
    class TagScanner implements TokenStream {
    public static final int BEGIN_TAG_TYPE = 1;
    public static final int END_TAG_TYPE = 2;
    public static final int TEXT_TYPE = 3;
    protected Reader reader = null;
    /** Lookahead char */
    protected char c;
    /** Text of currently matched token */
    protected StringBuffer text = new StringBuffer(100);
    public TagScanner(Reader reader) throws IOException {
    this.reader = reader;
    nextChar();
    protected void nextChar() throws IOException {
    c = (char)reader.read();
    public Token nextToken() throws IOException {
    if ( start of a tag ) {
    // scarf until end of tag
    // type is either BEGIN_TAG_TYPE or END_TAG_TYPE
    if ( end of file ) {
    type = Token.EOF_TYPE;
    text = "end-of-file";
    else {
    // scarf until start of a tag
    type = TEXT_TYPE;
    if ( just whitespace ) {
    // ignore and get another token
    return new Token(type, text.toString());
    Can someone please provide me the logic for the code please........... here is the complete link of the excersie
    http://www.antlr.org/wiki/display/CS652/Lexer+for+XML
    Many Thanks
    -M

    Can someone please provide me the logic for the code please..........The logic is pretty well spelled out for you in the description of the assignment and the outline for the code you provided. If you mean
    Can someone please do my homework for me....The answer to that is usually yes, someone can do your homework for you, but no, they usually won't actually do it for you.
    However, if you are really stuck on what to do, you should consider:
            if ( start of a tag ) {How would you know that you are at the start of a tag? Once you can answer that, the rest sort of works itself out as long as
                // scarf until end of tagyou realize what it means to 'scarf' and how to determine when an end-of-tag is reached (hint, very similar as to how to determine if you are at the start-of-tag).

  • Folder/Public Folder - What is the maximum file size before the URL created no longer works

    Hi,
    I have received links to files in beehive folder, where the URL will not load as the file name is to long and it's reach some type of maximum display limit for the URL.
    Is there a maximum document file name length before the URL hit some type of cut of point?
    For example if the document is in a folder, within a folder, within a folder and then the file name, how long can the file name be or how many folders can you go down to in the document area before some type of cut of limit is reached.
    I will locate the example as I am seeing this a lot when the URL comes from a specific team and there seem to be a lot of folders within folders.
    There was nothing in the documentation that I could find - Thanks in advance for your help.

    Miriam,
    The length of the URL is the critical factor in the access to the sub-folders - we have had issues with users having very long folder names without a great depth of folders. There is no actual limit on the depth of the folder structure - I just created 10 folders nested below the Documents area- admittedly the folder names were Documents>1>2>3>4>5>6>7>8>9>10. In the bug database there have been issues where the depth has been up to 50, though the issue has been mainly due to the time taken to get the details of the deep nesting not the actual number of nested folders. In practice a limit of 30 seems to be the point at which the performance can deteriorate so that is the limit we would advise.
    The client used seems to have an influence as well. IE has a limit on the URL of 2048 but it does not seem to be this limit that is hit so there is probably a cut-off at the lower number in the handler. The other clients webDAV, OBEE, OBEO and the Desktop Integration Server supplied with WebCenter have different reactions to deeply nested folders.
    However there was a proposed fix, for a future version which will not now appear, in OBEO and OBEE to report an error if you wanted more than nested 30 folders , though you could go as deep as 50 if the folder names were limited.
    My advice - keep the folder names as short as you can and try other clients - which all work on BeehiveOnline as well as stbeehive as the depth that can be handled is client dependent.
    Phil

  • How to load the XML file to BW3.5

    Hi Gurus,
    i am following the steps for extracting the data from XML to 3.5 following the steps in the HOWTOSENDXMLDATATOBW.doc. i have a doubt at the 22 nd Point where in the document given that jump to point 26 for 3.5 version. But where we need to specify the path of the XML file. Used the Tcode WSADMIN to test the Webservices, but i am unable to load the delta due to the above problem. what are the steps i need to follow in WSADMIN. We are using SOAPservice in BW.
    Please help me for finding the soluction for XML loading of the delta data to BW.
    Thanks,
    James
    Message was edited by:
            james winslet

    Hi,
    I am sending you a link that will provide you with some good idea on XML File Uploading....
    How to upload XML flat file
    Hope this helpful... award points
    regards,
    raj
    Message was edited by:
            gangaraju mullapudi

  • OIM Reporting: How to pass a dynamic parameter in the xml file

    Hi,
    I am generating a custom report in OIM. My stored procedure is ready and I am getting the required data when I query the database. However,while displaying it through the xml file, I need to filter the fetched data by group name. The glitch present here is that the group name is dependent on the resource selected and so the group parameter is dynamic. How can I pass this dynamic group parameter in the xml file to filter the data. Which attributes are to be used. Can anyone please help me out regarding this?
    Thanks in Advance,
    SK

    The OOTB OIM reporting mechanism does not support dependant LOVs, which is
    what you are asking for.

  • How to import the xml file into bcc?

    My input file to atg is xml which contain category or products assets.
    I want the scheduler to run in such a way that it should auto create a project and send an email to client for approval.
    When the client approves the xml file,then run the scheduler to input the xml file datas into bcc.
    i will be using : SingletonSchedulableService for this
    Give me a guidance for the same.
    Thanks in advance.

    I want to implement this in bcc.
    Which listener will listen for the approval of the client for the email (which contains the xml to import)we sent to him?
    You would have to do custom development to hook your custom workflow with the inbound email. For sending email notifications the action is already there and while creating its element in ACC you can specify a JSP for the email template. You may refer following relevant documentation:
    Oracle ATG Web Commerce - Workflows
    Oracle ATG Web Commerce - Workflow Action Elements
    I recommend to refer the existing DeploymentEmailer source in <ATG>\Publishing\samples\Java and see different DeploymentEvent types and states can be used based on your requirement in your custom component. Also refer these API javadocs to know about the available deployment events and process:
    DeploymentEvent (ATG Java API)
    DeploymentServer (ATG Java API)
    ATG does have a /atg/dynamo/service/POP3Service component to retrieve mails from a POP3 e-mail server but it is primarily used for detecting the bounced email. Not too sure if it would help or fit in your case but still you can go through about its details to know what is already there:
    Oracle ATG Web Commerce - Bounced E-mail
    You may also refer to the InboundEmail event and API javadocs for InboundEmailMessage which are used in this bounced email detection feature:
    Oracle ATG Web Commerce - InboundEmail Event
    InboundEmailMessage (ATG Java API)
    Now based on all this, if you extend and customize a lot of things it would be bit complex and tedious to detect the inbound approval mail based on its content and then advance your workflow. Another approach can be to put a URL in the mail template of your notification email which the approver would have to click and on the landing page you can authenticate and advance your custom workflow as required.

  • How to load a xml file from a package inside of a jar file

    hi@all
    my application has got a xml configuration file which is saved inside the package tree of the class that reads this file.
    when i`m developing using eclipse the class can find that file, everything works fine. but when i create a jar file of my application to use it in another application it cannot find that file anymore.
    can anyone tell me how to solve this problem, please?
    thx a lot
    dialsc

    hi all,
    the xml file is in the jar file and
    ClassLoader.getSystemResourceAsStream(..) solved my problem.
    in fact i did nameOfClassInSamePackageAsXmlFile.class.getResourceAsStream("nameOfFile.xml");thank you all
    greez
    dialsc

  • 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

  • How to generate an XML file from SSIS (based on an XSD)?

    I have an XSD that describes an XML format. I also have a sample XML file as well from the XSD. I am trying to understand SSIS's capability to generate the XML file in an ETL process. I would need to create the XML file based on the XSD that
    I have. It is safe to assume that all the data elements are in the DB that I am incorporating in the ETL and it is also safe to assume that the data in the XML may be from multiple different tables (so massaging is probably necessary). 
    Would this be a job for C#/VB or can I do this through an SSIS process/task? Please help me understand my options. Thanks.

    Dear All,
    Indeed the post by RamJaddu did not answer the question. I am having the same issue: I have been provided an .xsd file which contains a data schema, and I have all of the necessary
    data in a .mdf file in order to create the required .xml file. Having queried SQL Server and received my data in "myDataSet" I can use C# to create the .xml ignoring the schema using
    string strSchemaFile = @"F:\Documents\UserCost\VictorianDataCollection\VCDCSchema_v2.xsd";
    string strXmlFile = "testXmlExport.xml";
    myDataSet.WriteXmlSchema(strSchemaFile);
    myDataSet.WriteXml(strXmlFile, XmlWriteMode.IgnoreSchema);
    but how do I export the .xml file so that is conforms with the .xsd format?
    If any of you have worked this out the answer would be most appreciated.
    All the best,
    Nick
    "Everything should be made as simple as possible, but not simpler" - Einstein

  • How to Update existing XML File Using Java Swing

    Hi,
    I am reading XML file and getting keywords into JList. When i add some keywords into JList through textfield and remove keywords JList, then after click on save button it should update xml file. How can i do it ?
    Please provide me some code tips for updating xml file
    This is the code that i am using for reading XML File:
    import javax.swing.*;
    import java.awt.event.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    import java.io.IOException;
    import java.util.*;
    import java.text.Collator;
    import java.util.regex.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import com.cloudgarden.layout.AnchorConstraint;
    import com.cloudgarden.layout.AnchorLayout;
    public class getKeywords extends JFrame implements ActionListener
    static JPanel p;
    static JLabel lbl;
    static JButton btnSave,btnAdd,btnRemove;
    static String path;
    static Vector v;
    static JList lstCur;
    static JTextField txtKey;
    Document dom;
    static image imgval;
    NodeList nodelstImage;
    static AnchorLayout anchorLay;
    private DefaultListModel lstCurModel;
    public getKeywords()
         super("Current Keywords");
        v=new Vector();
        p=new JPanel();
        txtKey=new JTextField(10);
        btnAdd=new JButton("Add");
        btnRemove=new JButton("Remove");
        btnSave=new JButton("Save");
        lbl=new JLabel("Current Keywords");
        lstCurModel=new DefaultListModel();
            lstCur=new JList();
            JScrollPane scr=new JScrollPane(lstCur);
        runExample();
         lstCur.setModel(lstCurModel);
         p.add(lbl);
         p.add(scr);
         p.add(txtKey);
         p.add(btnAdd);
         p.add(btnRemove);
         p.add(btnSave);
         add(p);
         btnAdd.addActionListener(this);
         btnRemove.addActionListener(this);
         btnSave.addActionListener(this);
         setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    public static void main(String arg[])
         getKeywords g=new getKeywords();
         g.resize(250,400);
         g.setVisible(true);     
    public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==btnAdd)
              lstCurModel.addElement(txtKey.getText());
         if(ae.getSource()==btnRemove)
              lstCurModel.remove(lstCur.getSelectedIndex());
         if(ae.getSource()==btnSave)
              //Code to Write
         public void runExample()
              //Parse the XML file and get the DOM object
              ParseXMLFile();
              //Get the Detail of the Image Document
              parseImageDocument();
              //Get the Detail of the LML Document
              //parseLMLDocument();
              //System.out.println(lmlval.Title);
         public void ParseXMLFile()
              //Get the Factory
              DocumentBuilderFactory builderFac = DocumentBuilderFactory.newInstance();
              try
                   //Using factory get an instance of the Document Builder
                   DocumentBuilder builder = builderFac.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   dom = builder.parse("LML.xml");
              catch(ParserConfigurationException pce)
                   pce.printStackTrace();
              catch(SAXException sax)
                   sax.printStackTrace();
              catch(IOException ioex)
                   ioex.printStackTrace();
         public void parseImageDocument()
              //Get the root element
              Element docImgEle = dom.getDocumentElement();
              //Get a nodelist for <Image> Element
              nodelstImage =  docImgEle.getElementsByTagName("Image");
              if(nodelstImage != null && nodelstImage.getLength() > 0)
                   for(int i = 0; i < nodelstImage.getLength(); i++)
                        //Get the LML elements
                        Element el = (Element)nodelstImage.item(i);
                        //Get the LML object
                        getImage myImgval = new getImage();
                        imgval = myImgval.getimage(el);
                        v.addElement(new String(imgval.Thumb));
                        String[] x = Pattern.compile(",").split(imgval.Keys);
                        for (int s=0; s<x.length; s++)
                        lstCurModel.addElement(x[s].trim());
                        //System.out.println(x[s].trim());
    }     Thanks
    Nitin

    You should update your DOM document to represent the changes that you want made.
    Then, using the Transformation API you simply transform your document onto a stream representing your file. Something like this:
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    // TODO - set indentation amount!
    Source source = new DOMSource(dom);
    Result result = new StreamResult(file);
    transformer.transform(source, result);Hope this helps.

  • Format Payment Instructions - Need the XML file.

    Hi,
    We have a requirement to print first page of this check print program to go to one printer and the second page onwards should go to different printer.
    In order to achieve this requirement we had planned to have 2 programs. first program will be the standard 'Format Payment Instructions' which will print only the first page and we will have second program which will call the JAVA FO Processing API with the XML file generated from the first program and the layout name to generate the PDF file.
    But the problem here is we are not able to find the XML file for the 'Format Payment Instructions' program. Does this program generates the XML file in a different directory? Can anybody help us with the Unix path name where the XML file will be generated.
    Thanks
    Lakshmanan A.

    You can upload the ECCN XML file from the GTS cockpit -> SAP Compliance Management -> Classification/Master Data -> Load ECCNs from XML file.
    You normally get the ECCN XML files from data provider website.
    Edited by: Howard Dai on Feb 27, 2009 11:36 AM

Maybe you are looking for

  • Aviso de Cliente devedor!

    Amigos, Preciso de uma alerta no B1, que não gere trava, mas que em todos os documentos de marketing gere a informação que aquele determinado PN tem saldo devedor... Por exemplo, ao criar um pedido de venda, ou uma cotação, ao inserir o PN, o sistema

  • I need crystall report print button support insted of exporting to pdf then print

    Crystal reports are the most widely used reporting software.its print button is working on active X controls. due to the i am not able to use direct print button. so please help me to provide a plugin for crystal report

  • Titles won't display in App Store on iPhone

    While iTunes on my computer only cuts off the text on the brief page (still annoying, try downloading Khan Acadam.... out of thousands of videos) it does not cut off the title on the main page, BUT not so on the iPhone. You can be on the description

  • How to create a new Business Unit

    Hello, I have problem. Can anyone tell me 1 : How to create a new Business Unit, New Company from Jd Edwards screen means webpage. 2 : Can i find the User Defined Codes means UDC in jd edwards screen. Thanks, Shakti Prasad Priyakumar.

  • Phtoshop CS and Canon CR2 (400D)

    I have CS on Windows. I have read this in the FAQ: ==== Q: I have Photoshop 7, with Adobe Camera Raw 1; will there be an update to support the new cameras? What about Photoshop CS and Camera Raw 2.4? A: Only the current version of Photoshop will rece