How do I get the size of a variable on runtime while...

Hi,
I want to get the size of a variable which is storing an xml input from db.
I want to get the size of this variables on several intervals like displaying a message when the variable holds the data = one megabyte and then so on .
is it even possible to get the size in runtime?
guidance is greatly appreciated.
thanks

So you are looking for the total size of all the objects which go together to make the DOM implementation of your XML. Even if you could find that in any particular case, it would only be a rough guide. I suspect that if you have a few large text nodes in your XML, the DOM will be smaller than if you had many small text nodes, because it would require fewer supporting objects.
If you are interested in a rule of thumb, Michael Kay (who wrote the Saxon XSLT transformer product) suggests that 10 megabytes of XML is about the largest practical file size at the present time. I have however seen claims of people transforming files as large as 30 megabytes.
However, since you are sending the result to a browser, I don't see how you can handle that much data anyway. First of all it is going to take minutes to load into the DOM, while the user waits, and secondly you are going to have to summarize it heavily to be of any use to the user, which suggests that you should store it in some other format that is easier to summarize.

Similar Messages

  • How do I get the top banner to always be viewed while scrolling? (fixed header)

    How do I get the top banner to always be viewed while scrolling? (fixed header)

    Have you tried pinning the banner as an element?
    http://tv.adobe.com/watch/muse-feature-tour/muse-pin-objects-to-the-browser-window/

  • How can I get the size of a file with apple script

    I try to get the size of a file within an apple script. But I did not find information how to do this.

    There are two ways. I think Apple is moving toward using System Events, which is listed first.tell application "Finder"
    set myFile to selection as alias
    --this just gets a file for me to work with
    --coercing it into an alias is required for the other functions
    end tell
    tell application "System Events"
    get size of myFile
    end tell
    set myInfo to (info for myFile)
    get size of myInfo

  • By mistake, I shrink the size of a particular page, which firefox then remembers. How do I get the size back to normal?

    When moving around on websites, somehow I manage to shrink the size of what is shown on the screen. I have not figured out how to get the size back to 'normal'. However, Firefox remembers this so when I reenter this particular size, it will still be in the smaller format. Very frustrating and as this has happened for at least two of my most watched sites, I am more and more using competing formats, e.g. Explorer.
    I have alsl asked more experienced users of Internet to try to solve this but they are as lost as I am.
    Looking forward to getting your advice.
    Best regards,
    Lars Henriksson

    You can hit CTRL++ to zoom. Or install these add-ons:
    https://addons.mozilla.org/en-US/firefox/addon/theme-font-size-changer/
    https://addons.mozilla.org/en-US/firefox/addon/zoom-page/

  • How do I get the datatype of a variable or a field in table?

    Dear Friends,
    In Pl/SQL, How do I determine the datatype of a variable or a field in a table?
    While writing pl/sql code, I need to determine the datatype. Is there any option or function in pl/sql or in d2k.
    waiting for your response...
    Sanjai

    write a function based on this code with column_name and table_name
    as parameter and you get the data type as output.
    SQL> create table mytable(empno number, ename varchar2(32))
      2  /
    Table created.
    SQL>
    SQL> set linesize 100
    SQL> column table_name format a32
    SQL> column data_type format a32
    SQL>
    SQL> select table_name, data_type
      2    from user_tab_columns
      3   where table_name='MYTABLE'
      4  /
    TABLE_NAME                       DATA_TYPE                                                         
    MYTABLE                          NUMBER                                                            
    MYTABLE                          VARCHAR2                                                          

  • How do I get the size of a file on a server with an Applet

    Hei,
    I have a problem. I have some files that I need to read in with InputStream to get an Array of bytes. The Applet and the files are on the same server.
    My Prob is, that when I use
    URL(daFile).getFile().getSize();
    it only gives the inaccurate size from the dirlisting (i.e. 48 for 48k)
    So I can not build an array with the correct Size.
    Does anyone knows how I get the correct size of a file.
    Big thx
    LoCal

    Appler can open connections to server it was downloaded from. You don't need such complicated API as RMI... Just simple java server listening for queries.
    Like this:
    Applet:
    1. take a file path
    2. connect to simple server (gives OutputStream and InputStream)
    3. create ObjectOutputStream and send fiel to server (File is serializable)
    4. Read String with size from input stream
    Server
    1. Wait for connection
    2. When client connected create ObjectInputStream and expect File instance
    3. Get file size
    4 Replay with String with size
    Like this...

  • How can I get the size of all lines or the last line number in a DB?

    I want to display a certain number of lines from a DB.
    But before I fetch them out, I must know how many lines of this DB has.
    I donnot know if there is some methods have this function. I know the last() method can move the cursor to the last line, but some DB cannot support this function.
    Could someone know the answer or some examples about displaying data in a jsp?
    Thanks a lot.

    To get the number of rows in a ResultSet, loop over the result set with while(res.next()). Read each row into an object. Add each object into a, say, LinkedList. At the end, you will have the rows nicely converted to objects (which you probably should do anyway), and list.size() will give the number of objects.
    There are other ways to get the number of objects, but list.size() is the easy and reliable way. If you don't need the rows converted to objects ...why did you select them in the first place?
    Tricks with last() and whatnot sort of work. They read the entire result set into memory. But you'll need to write the while(res.next()) loop anyway. No point in having the computer do the same thing twice.

  • How can I get the size of conatiner which is kept in the array of conatiner?

    I have created an Array of Conatiner in Local variable (say Locals.Array_C). Within Array_C, I have few containers like Cont_1, Cont_2, Cont_3.
    Lets consider that there are four(4) Number fields added in the Cont_2.
    Here the number of elements in the Cont_2 is 4, but if I want to read this size through TestStand, how can I do that?
    I also tried to use "Call PropertyObject.GetNumElements" ActiveX property, but I could not get how to set Object Refernce in this case.
    Please help.
    Solved!
    Go to Solution.
    Attachments:
    Locals.Array_C.JPG ‏67 KB

    Hi,
    Your problem is how you are specify the array part. It may also be what you are using as the reference.
    Lets look ate the array part using the SequenceContext as the reference. The lookup string will be:
    "Locals.Array_C[1].Cont_2.Elemen4"
    If you are using the Locals as the reference the lookup string will be:
    "Array_C[1].Cont_2.Element4"
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I get the size to show when creating a line or a shape?

    Hello,
    Before, when I created lines or shapes in illustrator a small window would show the size of whatever I was creating. Now it does not show up and I have no idea what the size is of the shape or line. I'm sure there is a simple solution to this issue, however I do not know what that is and couldn't find it anywhere on forums and such. Appreciate any help!
    Thank you,

    Try looking at the Smart Guide options in the Preferences (Cmd(Ctrl)-K). Are Smart Guides on (toggle is Cmd(Ctrl)-U) Is this one checked?

  • How can I get the size of a file

    I want the size by BYTE.

    [url http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#length()]File.length()

  • How do i get the value in a variable that I don't know the name of til run

    I have a record type( pr_team) defined in a package - anchored to a table.
    I want to be able to go through each of the fields in it one at a time. I get the list of fields from the table definition from cursor as follows
    CURSOR c_fields IS
    SELECT column_name
    FROM all_tab_cols
    WHERE owner = 'CDS'
    AND table_name = 'TEAM';
    r_fields c_fields%ROWTYPE;
    So first returned value is team_id
    how can I get this value when all I know the field name is 'pr_team.' || r_fields.column_name
    cheers
    Simon

    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> CREATE OR REPLACE PACKAGE package_name
      2  AS
      3     r_emp emp%ROWTYPE;
      4  END package_name;
      5  /
    Package created.
    SQL> SET SERVEROUTPUT ON SIZE UNLIMITED;
    SQL> DECLARE
      2     v_empno emp.empno%TYPE;
      3     v_ename emp.ename%TYPE;
      4  BEGIN
      5     SELECT *
      6     INTO   package_name.r_emp
      7     FROM   emp
      8     WHERE  ROWNUM = 1;
      9
    10     EXECUTE IMMEDIATE
    11        'BEGIN ' ||
    12        '   :v_empno := package_name.r_emp.empno; ' ||
    13        '   :v_ename := package_name.r_emp.ename; ' ||
    14        'END;'
    15        USING OUT v_empno, OUT v_ename;
    16
    17     DBMS_OUTPUT.PUT_LINE ('v_empno => ' || v_empno);
    18     DBMS_OUTPUT.PUT_LINE ('v_ename => ' || v_ename);
    19  END;
    20  /
    v_empno => 7369
    v_ename => SMITH
    PL/SQL procedure successfully completed.
    SQL>

  • How Can I get the value of a variable name stored in another variable?

    I have a scenario wherein i get a record as %rowtype as input parameter into my function and i generate a dynamic sql to check the validity of a particular value in one of the columns of the input parameter record.
    I have a variable that stores the column name of input parameter record whose value is to be validated.
    The dynamic SQL looks like this:
    'Select empno from emp where empname = input_rec.'||v_colname
    While using Execute Immediate I get the error - Invalid Identifiier -'input_rec'.'ename'
    On Googling I found that the input parameter is out of the scope of the SQL that's being executed in the Execute Immediate.
    Is there any way I can get the value of ('input_rec.'||v_colname) so that I can pass it into the Execute Immediate with 'Using' clause?

    karthyk wrote:
    I have a scenario wherein i get a record as %rowtype as input parameter into my function and i generate a dynamic sql to check the validity of a particular value in one of the columns of the input parameter record.
    I have a variable that stores the column name of input parameter record whose value is to be validated.
    The dynamic SQL looks like this:
    'Select empno from emp where empname = input_rec.'||v_colname
    While using Execute Immediate I get the error - Invalid Identifiier -'input_rec'.'ename'
    On Googling I found that the input parameter is out of the scope of the SQL that's being executed in the Execute Immediate.
    Is there any way I can get the value of ('input_rec.'||v_colname) so that I can pass it into the Execute Immediate with 'Using' clause?compose the SELECT in a single VARCHAR2 variable before passing variable to EXECUTE IMMEDIATE

  • When I look at photos in Facebook (groups) the photos are huge. How do I get the size back to normal?

    Photos are huge in Facebook ( groups) ??

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site if only one app.
    Restore from backup. See:
    iOS: How to back up              
    Restore to factory settings/new iPod

  • How can I get the store to keep my filter settings while browsing apps (with  iPad)

    While looking for apps via(and for) my iPad, often I will start with a simple one word search term, then use the category, rating, price, and product filters to narrow my search - works great.
    BUT if I select an app to go to it's details page, when I navigate back to the previous page, all of the filters have been reset, and I've lost my place in the list even if I was 6 pages in.  This also happens when I re-open the app store after I choose to install an app.
    Why, Why, Why?!? This kind of poor user experience is so 1975.
    Please help me resolve, or at the very least, come to terms with this issue.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • How to get the size of the cuurrent illustration

    Sorry, I made a mistake before this one. The questios is this: can anybody tell me how can I get the size of the current illustration, (as oposed to the page size) in points. Something like 120 points wide and 87 points High?. What function do I need to call?

    From AI Function reference (included with CS2 SDK):
    AIDocumentSetup setup;
    error = sDocument->GetDocumentSetup(&setup);
    if (error) goto processError;
    writeDocumentSetup( &setup );
    The AIDocumentSetup record returns the following information:
    typedef struct {
    AIReal width, height;
    AIBoolean showPlacedImages;
    short pageView;
    AIReal outputResolution;
    AIBoolean splitLongPaths;
    AIBoolean useDefaultScreen;
    AIBoolean compatibleGradients;
    AIBoolean printTiles;
    AIBoolean tileFullPages;
    } AIDocumentSetup;

Maybe you are looking for

  • Cannot install software for printer m521dn

    Hello! I have a problem, trying to install software for HP lj pro m521dn. Tried to use both Full Solution and basic print and scan drivers installer. OS is Win7 enterprise x64. Connection with printer is network. When installing, progress bar reaches

  • Poor video quality, pixelation, flickering on moving subjects in frame

    I made a quicktime movie using File>Export>Quicktime Conversion... in FCP using H.264 compression codec with best video quality and 16-bit audio. video was originally captured in miniDV. Self contianed movie was made and looked pretty good in Quickti

  • N82 Sound Recorder Application?

    This has been a handy tool on pretty much every phone I can remember owning in this century, but I can't seem to find such a feature on my new N82 Am I missing something? Or does one not exist? If so, are there third party applications available for

  • How to use postlv user event in labview

    Hi sir   I am sending data labwindow cvi dll call to labview,for that we need postlv user event.please any one knows to use postlv user evenet in labview. Below will  be the  structureand i need to update in labview . typedef struct unsigned uDSPIO,

  • How do I recover a password for a Numbers 09 spreadsheet

    How do I recover a Numbers 09 spreadsheet password?