3 levels of XML-based array

I want to make an easy exit excel to filter. The data I want to produce just 3 different levels of the XML. When you use the table Wizard you can choose only one level to use for the table. What kind of code I need to add superiors also will appear?
Thank you.

You can create the table manually or if you pick a specific set of data from the table Wizard, then you can include the fields as needed.

For fields that are not included in the data set, that you chose, you can add them manually in. To go from plain wherever you are, use '... /'. Use as a '... /' of them like the levels you want to go to the top.

If all goes well, I did quite understand your condition.

Thank you
Bipuser

Tags: Business Intelligence

Similar Questions

  • analyzing XML based on the elements of the array...

    Hello

    I wonder why two of my three tracks below are undefined or 'white', I think that everything is set up the way it should be, however, when I try and draw the attributes, they are not defined. What I am doing wrong? I hope it's an easy place for someone, my head popped up a bit (I show my naiviety).

    I will not go into why I do it this way, but I'm trying to get this data model to work.

    Thanks for any help,

    Chipleh

    var teamXML:XML = <team headerText="Field1,Field2,Field3,Field4,Field5,Field6,Field7" hitsFieldNumber="5">
      <player Field1="BLAH 1" Field2="BLAH 2" Field3="BLAH 3" Field4="BLAH 4" Field5="BLAH 5" Field6="BLAH 6" Field7="BLAH 7"/>
    </team>
                    
        var xmlHeaderText:XMLList = teamXML.@headerText;        
        var headerTextArray:Array = [];    
        var headerTextString:String = teamXML.@headerText;        
        headerTextArray = headerTextString.split(",");
        trace("headerTextArray = "+ headerTextArray);
        for(var i:int = 0;i<headerTextArray.length;i++)
        {
            trace(i + " : " + headerTextArray[i]);        
            trace("teamXML.player.@headerTextArray[i] = " + teamXML.player.@headerTextArray[i]);        
            var theField:String = headerTextArray[i];
            trace("teamXML.player.@headerTextArray[i] = " + teamXML.player.@theField);        
        }    
        
    
    use:
    
    var teamXML:XML = 
      
    
    
        var xmlHeaderText:XMLList = teamXML.@headerText;
        var headerTextArray:Array = [];
        var headerTextString:String = teamXML.@headerText;
        headerTextArray = headerTextString.split(",");
        trace("headerTextArray = "+ headerTextArray);     for(var i:int = 0;i 
               
  • XML based UI development

    Hello

    I've coded hard all my user interface so far and would do my more customizable user interface. (The fields on a form, the data in a field, etc.).

    I'm used to doing this on webapps, but I wonder if it's a good idea on blackberry since analysis XML seems to be an expensive task.

    Can someone provide advice on if it's a good idea / if there is another way to do it?

    Thank you

    Teja.

    We do this for some screens and wrote, one third, one based on XML "interpreter" who, as well as screens, enabled the XML to specify a logical flow and the form collection.

    The performance is fine, even if we try to create screens once, cache and reuse rather than creating each time.

    The biggest problem I have is that it is very difficult to adapt screens, for example to look OK on various of the device and to be able to perform intelligent processing - for example to perform a context sensitive treatment.  Personally for our applications, I'm not sure we saved time overall.

    In summary, I think that for the capture of data/simple forms, it is useful for in looking at cela, but for a complicated application, I am not convinced.

    But it's certainly doable.

  • Retrieves the values of XML based on filters

    I am new to use XML with oracle. This is a sample XML from an XML file, now the question is it really possible to write sql queries to extract based on a result, that is to say, if I do a clip like this extract(column_name,//Requests//RequestBody//Item//ItemHeader//ItemAction/text(),).getStringVal () then I results XL1XL2 what I need exactly is only "ItemAction" XML member value when the value is = 'Add '. which means that the final result value, I need XL1. Please note that the values I gave ablove XL1 and XL2, is flexible, that is, sometimes, it's XLLL1 some time XL1, so can't go based on the use of SUBSTR function to extract a fixed value.

    < ns3:Requests >

    < ns3:Request >

    < ns3:RequestBody >

    < ns3:Item >

    < ns3:ItemHeader >

    < ns3:ItemId > 99 < / ns3:ItemId >

    < ns3:ItemType > TypItem < / ns3:ItemType >

    < ns3:ItemAction > Add < / ns3:ItemAction >

    < / ns3:ItemHeader >

    < ns3:ItemBody >

    < ns3:ServiceItem >

    < ns3:ServiceCode > XL1 < / ns3:ServiceCode >

    < / ns3:ServiceItem >

    < / ns3:ItemBody >

    < / ns3:Item >

    < ns3:Item >

    < ns3:ItemHeader >

    < ns3:ItemId > 100 < / ns3:ItemId >

    < ns3:ItemType > TypItem < / ns3:ItemType >

    < ns3:ItemAction > Remove < / ns3:ItemAction >

    < / ns3:ItemHeader >

    < ns3:ItemBody >

    < ns3:ServiceItem >

    < ns3:ServiceCode > XL2 < / ns3:ServiceCode >

    < / ns3:ServiceItem >

    < / ns3:ItemBody >

    < / ns3:Item >

    < / ns3:RequestBody >

    < / ns3:Request >

    < / ns3:Requests >

    As I understand it, you want to return the code of service elements where the ItemHeader = "add"?  Note: You have missed your name space in the XML document, so I added a.

    with data (the_xml) as)

    Select xmltype (')

    99

    TypItem

    Add

    XL1

    100

    TypItem

    Delete

    XL2

    ')

    of the double

    )

    Select x.*

    data d

    Join the xmltable (xmlnamespaces ('somenamespace "like" ns3 "),)

    "' ns3:Requests / ns3:Request / / ns3:RequestBody / / ns3:Item [ns3:ItemHeader / ns3:ItemAction ="Add"]"

    in passing d.the_xml

    columns

    Path of varchar2 (20) conduitePlan ' ns3:ItemBody / ns3:ServiceItem / ns3:ServiceCode'

    ) x 1 = 1

    RESULT

    CONDUITEPLAN

    'XL1 '.

  • How to control the display of the level of xml in the Tree control?

    I want to display xml nodes in the Flex tree control. for example, the XML file to display contains the nodes of level 5, level 1 (root node), level 2,..., 5 (leaf) level, but I want to only display level 1, level 2, level 3 without display of level 4, level 5 knots, anyone can tell how realize that with tree control? Thank you.

    Ward

    Custom ITreeDataDescriptor.  Probably substitute getChilden() and

    hasChildren()

  • Dynamically display the contents of xml based on the method addEventListener (MouseEvent.MOUSE_DOWN, displayContent);

    Hello

    I have been working for a few days now with this script and got up to a point almost finished, but I can't go to the final stage of script. I have an xml file that is being scanned in my .fla file. There are 3 buttons that are created dynamically based on a tag called < navItem >. "DisplayContent" function should display the appropriate block of xml in various text boxes, but instead, it does show that the last song (the 3rd song) no matter which button I click on. I pasted my code on pastebin here:

    http://pastebin.com/mb3e3cd9

    If someone could take a look at my code, especially the last function, "displayContent" and suggest what I could do to fix the code, or point out where I did wrong, I would be very grateful.

    ~ Chipley

    IF you use the movieclip buttons:

    1. myText.condenseWhite = true;
    2. var paragraphText = xml.mpu.bodyText.page.p;
    3. myText.htmlText = paragraphText;
    4.               
    5. trace (MyText.Text);
    6. for (var i = 0; i)
    7. {
    8. trace ("xml.mpu.bodyText.page.navItem.length =" + i);
    9. var mcMenuItem:mcMenu = new mcMenu();
    10. mcMenuItem.x = button_mc.x;
    11. mcMenuItem.y = button_mc.y + i * 50;
    12. addChild (mcMenuItem);
    13. mcMenuItem.btnTxt.htmlText = navItemText [i];
    14. mcMenuItem.ivar = i;
    15. mcMenuItem.buttonMode = true;
    16. mcMenuItem.addEventListener (MouseEvent.MOUSE_DOWN, displayContent);
    17. }
    18. }
    19. }
    20. function displayContent(event:MouseEvent):void {}
    21. for (var i = 0; i)
    22. {
    23.                         titleText var = xml.mpu.bodyText.page.h1 [event.currentTarget.ivar];
    24. myTitle.htmlText = Text;
                            var paragraphText = xml.mpu.bodyText.page.p [event.currentTarget.ivar];
    1. myText.htmlText = paragraphText;
    2. }
    3. }
  • Auto level entire image based on the selection?

    I'm scanning some old magazine pages. But because certain cuts are irregular in shape, the bright white of the scanner cover is in the image. Then he throws off Auto levels & auto contrast. If I take the marquee tool to select a portion of the image, is there a way to auto level, all of the document based on the text box scrolling selected smaller?

    I put option in parentheses, because it is optional, option-click if you want to see the settings dialog box. If you just click on Auto, it will call the function of auto tone, if you want a color Auto or auto contrast, need you to option-click

  • (XML-based) SMS sending to the JMS queue

    Hi gurus,

    How we can publish a text message in the JMS queue using message text option by writing to Java or PL/SQL according to the following XML schema definition:

    <? XML version = "1.0" encoding = "windows-1252"? >

    " < xsd: Schema container = ' http://www.w3.org/2001/XMLSchema "

                xmlns=" http://www.example.org "

    " targetNamespace = ' http://www.example.org "

    elementFormDefault = "qualified" >

    < xsd: element name = "Employee" >

    < xsd: annotation >

    < xsd: documentation >

    An element of the sample

    < / xsd: documentation >

    < / xsd: annotation >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "EmpNo" type = "xsd: Decimal" / >

    < xsd: element name = "EmpName" type = "xsd: String" / >

    < xsd: element name = "Salary" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    My Composite SOA will contain a JMS as a Service exposed adapter.

    Hello

    Please find enclosed the attachment for an example implementation of the Java client code to post the message to a weblogic JMS queue.

    It will be useful.

  • Sidecar.XML based on the way, adding more items to the folio

    Hello - I have created a sidecar on the path that works very well. Now, I want to add more items to the folio. How do I do that? If I download the whole again through "Import using sidecar.xml", he writes on existing articles? If I have "import as unique items", new content, how can I get a new file of sidecar in there?

    Thank you!

    Beth

    You can import new items as specific items, and later, when you update your sidecar.xml you put in an empty folder with nothing else inside and then import "several items" on this issue. It works fast, no crash at all.

  • [NEED] Example-based array to implement!

    I need help with a basic sample to implement, I tried everything in this forum and all information is confused, I have no experience in blackberry a few days only! and I can't do

    With a sample of basic, I mean a few rows and 2 columns

    Hard to believe that you could not find a simple example on the web.

    What you're looking for?

    Something like that?

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

  • Help with Ora-19046: Out-of-table row cannot be shared by two top-level tab

    Hello!
    My tutor asked me to store and query xml "natively" files in xml db. First, I tried to save the patterns that rely on these xml files. There are about 30 patterns thus between them, and I have to use 'FORCE' them to save, like this:

    BEGIN
    () DBMS_XMLSCHEMA.registerSchema
    "http://www.isotc211.org/gmd/metadataEntity.xsd,"
    BFILENAME ('ISOGMD', 'metadataEntity.xsd'),
    TRUE,
    TRUE,
    FAKE,
    TRUE,
    (TRUE);
    END;

    So no tables are created automatically. And when I wanted to create a XML based on patterns of thses manually, he proped error: ORA-19046: Out-of-table row cannot be shared by two top-level tab. He mistook me for a week. Does anyone know what is the problem with registration? Forward online! Thank you!

    Maybe you're missing type due to the DeffaultTable = ""-xdb:annotation "
    Try to understand it with the trace file that will be created if you set

    ALTER SESSION SET EVENTS = '31098 TRACE NAME CONTEXT FOREVER' 
    
  • Pulling data from the class on a MovieClip array

    I am trying to create this slideshow application that displays product information (Tennis rackets) issues of different categories. A great programmer advised me that OOP would be a way to go, however I'm having a difficulty with it.

    I created:

    A document class called CustomClass--> This class downloads all data from the server and pushing the content in the XML based on a category tables. These berries are public, there is also a funciton iterateArray that places the children information somewhere.

    I would like to have 3 different movie clips

    1 screen-> Welcome Message

    2nd screen-> first table

    3rd screen-> second table Dispalyed

    package {
         
         import flash.display.*;
         import fl.transitions.*;
         import fl.transitions.easing.*;
         import flash.net.*;
         import flash.events.*;
         import flash.text.*;
         import flash.text.AntiAliasType;
         import flash.utils.*;
         import bucket_right;
         import bucket_left;
         import firstScreen;
         import secondScreen;
         
         
         public class CustomClass extends MovieClip {
              
              
              [Embed(source="C:/WINDOWS/Fonts/Eurosti.ttf", fontFamily="Euro")]
              public  var EuroEmbedded:Class;
              
              
              //XML responsible variables 
              private var xmlLoader:URLLoader;
              private var xmlContainer:XML;
              private var xmlList:XMLList;
              
              //Array specific variables 
              public var rackUSA:Array;
              public var rackOther:Array;
              public var imagesArray:Array;
              
              //Position Variables 
              public var position:Number;
              
              //Movie Clip Related Data
              public var bucket:MovieClip;
              public var firstScreenShow:MovieClip;
              public var secondScreenShow:MovieClip;
              
              //Text Field Formatting
              private var brandnameTxt:TextFormat;
              private var detailsTxt:TextFormat;
              private var priceTxt:TextFormat;
              public  var euroEmbeddedFont:Font;
              private var fontNeeded:String;
              
              
              //Set up Timer Vars 
              private var applicationStart:Timer;
              private var delay:Number;
              private var repeat:Number;
              
              //Positioning Variable 
              private var positionBuckets:Boolean = true;
              
              //This is the constructor of the application 
              public function CustomClass() {
                   euroEmbeddedFont = new EuroEmbedded();
                   fontNeeded            = euroEmbeddedFont.fontName;
                   position         = 5;
                   rackUSA            = new Array();
                   rackOther            = new Array();
                   imagesArray       = new Array();
                   
                   delay                 = 2000;
                   repeat                = 1;
                   applicationStart = new Timer(delay, repeat);
                   LoadXML();
              }
              
              private function LoadXML() {
                   xmlLoader = new URLLoader();
                   xmlLoader.load(new URLRequest("http://localhost/xml/index.php"));
                   xmlLoader.addEventListener(Event.COMPLETE, populateInfo);
              }
              
              public function populateImages(imgname:String, imgurl:String):* {
                   var imageLoader:Loader = new Loader();
                   //imgname = imgname.split(".gif").join("");
                   //imageLoader.name = imgname;
                   //imagesArray.push(imageLoader);
                  imageLoader.load(new URLRequest(imgurl));
                   return imageLoader;
              }
              
              public function getArray(arrayName:Array) {
                   return arrayName;
              }
              /*public function startApplication() {
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }
              
              public function firstScreen(e:TimerEvent) {
                   removeChild(secondScreenShow);
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
                   firstScreenShow = new firstScreen();
                   addChild(firstScreenShow);
                   //firstScreenShow.iterateArray(rackUSA);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
              }
              
              public function secondScreen(e:TimerEvent) {
                   applicationStart.reset();
                   applicationStart.removeEventListener(TimerEvent.TIMER_COMPLETE, secondScreen);
                   removeChild(firstScreenShow);
                   secondScreenShow = new secondScreen();
                   addChild(secondScreenShow);
                   //secondScreenShow.iterateArray(rackOther);
                   applicationStart.start();
                   applicationStart.addEventListener(TimerEvent.TIMER_COMPLETE, firstScreen);
              }*/
              
              public function setFontFormat() {
                   //Text Formatting for Brand Name Field
                   brandnameTxt = new TextFormat();
                   brandnameTxt.font = fontNeeded;
                   brandnameTxt.color = 0x006699;
                   brandnameTxt.size = 20;
                   brandnameTxt.bold = true;
                   //
                   
                   //Text Formatting for Country/Material
                   detailsTxt = new TextFormat();
                   detailsTxt.font = fontNeeded;
                   detailsTxt.color = 0x006699;
                   detailsTxt.size = 10;
                   detailsTxt.bold = false;
                   
                   //Text Formatting for Country/Material
                   priceTxt = new TextFormat();
                   priceTxt.font = fontNeeded;
                   priceTxt.color = 0x9DE36E;
                   priceTxt.size = 20;
                   priceTxt.bold = true;
              }
              
              public function tweenBucket(bucket:MovieClip) {
                        var bucketImgTrans = new TransitionManager(bucket);
                        bucketImgTrans.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
              }
              
              private function iterateArray(contentInfo:Array) {
                   this.setFontFormat();
                   
                   for (var c:uint = 0; c < contentInfo.length; c++) {
                             var brand:TextField   = new TextField();
                             var country:TextField = new TextField();
                             var made:TextField    = new TextField();
                             var cost:TextField    = new TextField();
                             var img:Loader;     
                             brand.embedFonts        = true;
                             
                             img            = contentInfo[c].picture;
                             brand.text   = contentInfo[c].brand;
                             country.text = contentInfo[c].country;
                             made.text    = contentInfo[c].made;
                             cost.text    = contentInfo[c].cost;
                             
                             if (positionBuckets) {
                             bucket       = new bucket_left();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 70;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = 45;
                             cost.y = -10;
                             img.x = -105;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.LEFT;
                           priceTxt.align         = TextFormatAlign.LEFT;
                             positionBuckets    = false; 
                             } else {
                             bucket       = new bucket_right();     
                             //Align Data
                             bucket.y = position;
                             bucket.x = 240;
                             brand.x = -50;
                             brand.y = -35;
                             country.x  = -45;
                             country.y  = -10; 
                             made.x = -45;
                             made.y = 5;
                             cost.x = -110;
                             cost.y = -10;
                             img.x = 70;
                             img.y = -35;
                             brandnameTxt.align = TextFormatAlign.RIGHT;
                             positionBuckets    = true;      
                             }
                             brand.setTextFormat(brandnameTxt);
                             country.setTextFormat(detailsTxt);
                             made.setTextFormat(detailsTxt);
                             cost.setTextFormat(priceTxt);
                             //this.tweenBucket(bucket);
                             addChildAt(bucket, 0);
                             bucket.addChild(DisplayObject(img));
                             bucket.addChild(brand);
                             bucket.addChild(country);
                             bucket.addChild(made);
                             bucket.addChild(cost);
                             position += 70;
                   }
              }
              
              private function populateInfo(event:Event) {
                   
                   //Incoming XML Data
                   xmlContainer = new XML(event.target.data);
                   xmlList = xmlContainer.product;
                   //
                   
                   //Variables to hold the string
                   var brandTxt:String;
                   var country:String;
                   var material:String;
                   var price:String;
                   var image:String;
                   
                   for (var i:uint = 0; i < xmlList.length(); i++) {     
                   if (xmlList.country.text()[i] == "USA") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   rackUSA.name = brandTxt.toLowerCase();
                   var imgVar:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackUSA.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVar});
                   //addChild(DisplayObject(rackUSA[0].picture));
                   } else if (xmlList.country.text()[i] == "Other") {
                   brandTxt = xmlList.brand.text()[i];
                   country = "product of " + xmlList.country.text()[i];
                   material = "made of " + xmlList.material.text()[i];
                   price = "$" + xmlList.price.text()[i];
                   image = xmlList.image.text()[i];
                   var imgVarOther:* = this.populateImages(image, "http://localhost/rackets/" + image); 
                   rackOther.push({brand: brandTxt, country: country, made: material, cost: price, pic: image, picture: imgVarOther});
                   }
                   }
                   //this.startApplication();
              }
              
              
              
              
              
         }
    }
    

    If I clip named firstScreen how to fill with data from the rackUSA of the table, using the presented functions iterateArray

    I tried in a movieClip

    CustomClass.iterateArray (rackUSA); but it does not work

    Any suggestions

    I want to clarify the use cases.

    1 load data into the document class

    2. display a welcome message

    3 allow users to navigate through the products.

    Q1: Do you mean by 'welcome message' a user interface that allows to start navigation?

    Q2: Products appears the same way. I mean, consider that product display will have a uniform provision?

    If the answer to Q2 is Yes, I would:

    1. create a class that features products. Call ProductDisplay

    2 transfer data (subset of XML related to a particular product - in your case, it may be an object in the position of the table) in an instance of ProductDisplay

    I would like you to consider the following.

    It is a good practice to do OBJECT oriented programming class as little as possible each. This means that a class must have a very focused functionality. For example, ProductClass you perform tasks related to laying on the presentation of the product. With this in mind, it is best to delegate, say, loading image to a separate category. Believe me, when you do – your life will be much easier if you do features as granular as possible even if sometimes it feels like an overdose.

    So here's the sketch of your classes. I wrote it just to illustrate the idea. I did not check the code during execution is definitely buggy.

    Read my comments below also.

    It is a class of product image that load the image:

    
    package
    {
         import flash.display.Loader;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.ProgressEvent;
         import flash.net.URLRequest;
    
         public class ProductImage extends Sprite
         {
              // image url
              private var _url:String;
              // loader
              private var _loader:Loader;
              public function ProductImage()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   _loader = new Loader();
                   _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoad);
                   _loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
                   _loader.load(new URLRequest(url));
              }
    
              private function onProgress(e:ProgressEvent):void
              {
                   // display progress if needed
              }
    
              private function onLoad(e:Event):void
              {
                   _loader.contentLoaderInfo.removeEventListener(Event.COMPLETE);
                   _loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, onProgress);
                   addChild(_loader);
    
              }
    
              public function get url():String { return _url; }
    
              public function set url(value:String):void
              {
                   _url = value;
              }
    
         }
    
    }
    

    ProdustDisplay class. Note how the product class is instantiated

    
    package
    {
         import flash.display.Sprite;
         import flash.events.Event;
    
         public class ProductDisplay extends Sprite
         {
              // hold the metadata
              private var _metaData:Object;
              // an object that holds the image
              private var _imageDisplay:ProductImage;
              public function ProductDisplay()
              {
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              }
    
              private function init(e:Event = null):void
              {
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // only if metadat is set - build interface
                   if (metaData) {
                        build();
                   }
    
              }
              // build interface
              private function build():void {
                   // place prduct image
                   _imageDisplay = new ProductImage();
                   _imageDisplay.url = metaData.image;
                   addChild(_imageDisplay);
                   // do the rest - like description, etc.
              }
              // function that accepts product metadata
              public function set metaData(metaObject:Object):void {
                   _metaData = metaObject;
              }
              // returns metadata
              public function get metaData():Object {
                   return _metaData;
    
              }
    
         }
    
    }
    

    Now in your document class, you can set an unlimited number of instances of ProductDisplay (as slides) and manipulate them. Again, this is just a sketch. Actual implementation of features and code will be somewhat different:

    var productDisplay:ProductDisplay = new ProductDisplay();
    productDisplay.metaData = rackUSA[2];
    
    

    Note: Your code has several inconsistencies - we need to go through them at another time. For now just digest these ideas. I understand that this will involve a refactoring on your part, but once you are done with it - things will fall in place fast.

  • Why read XML taking so long?

    The 'answer' is perhaps that "XML is not intended for this purpose... "but here is the situation:

    I'm parsing of a directory tree and creating a table of clusters, one for each folder in the tree.  To save it to the 'user-friendly' on the disc format, I chose XML, in part because "it's here", because it is a 'standard', and part because he "embarked" in the file enough data LabVIEW structure it is easy, in principle, to recover the data in the same shape as I initially wrote (i.e. in the form of clusters with a specified TypeDef table).

    I did my routine to a directory with about 2700 folders tree.  It took 14 seconds to analyze the tree, about 0.1 second to write to the file (1.7 MB) XML, but over a minute and a half to read it back in and recover the original data.  Incidentally, I made a comparison between the "written data" and "read data", and all the 25 000 elements (the cluster had 9 elements) are the same, so at least to read and write XML "works."

    I'm always surprised at the 800-fold difference between reading and writing.  I suspect that this shift is not linear with the "size of the problem", since in the beginning, I tried to do this with a larger painting of 4900 what took 0.25 seconds to write, but I "gave up" after what seemed to be too long to wait (sorry, it's so no scientist, but I think it was 3-4 minutes at least).  However, now that I see that there is a difference of 800-fold for my previous example, I'll wait at least five minutes (800 * 0.25 sec = 200 s, 5 min = 300 sec)... (time goes away...)

    Patience rewarded - it took 322 seconds, which is about 1200 times slower (not to criticize my calculations - I'm rounding when I report time, but use the millisecond values when I calculate ratios...).  So the more you do it, it gets the slower.

    Hmm - we are going to prove by doing a small folder.  How about one with only 85 files?  Which takes 21 msec to write and 102 msec to read, a factor of 5 only!  Wow, this is certainly not a linear growth.

    What happens here?  Is there a problem with the analysis of large XML files?  [I must point out that I use a simple XML File reading (array) for the table (of which will prove be cluster), and then in a for loop do a "Unflatten from XML' to recover the cluster.]  I'm guessing that the loop is to behave linearly, as all clusters are (with the exception of their content) identical, then the part "polynomial time" should be "reading of XML File (array).

    Not sure why this should be the case.  It would seem, to me, that since LabVIEW tables are always "identical elements", read a file with 1000 'elements' and turn it into an array of 1000 elements should take approximately 10 times longer than that for an array of 100 elements, unless there is something that is extremely inefficient.  Is this something that can withstand being examined and possibly optimized?

    Bob Schor

    PS - was curious enough to do more tests.  I started with a 'Master Data Set' of 4906 records, then dealt with 'nested subsets' (which is a subset of the master, a subset of the subset, etc.) to try to compare of"apples with apples" (on a PC, of course).  My samples were 20, 210, 2736 and 4906 records.  The write speed of files has been between 10 K and 24K Records/sec on this beach, which is about nearly linearly with size.  However, a similar measure for the reading of records varies between 3K (for all 20 items) and 15 (for all), reducing the size has increased.  I traced a field of logarithmic data and got a slope of 0.1 for writing (a slope of 0 means speed is linear with the number of cases), but a slope of-0,95 for playback)


  • is equal to xml references

    Hello

    So here's my problem:

    I want to go of a sequence like the following XML:

    I want to be able to detect if I am currently processing the first or the last node to send a notification to my GUI.

    That's what I read on the equals method, I was hoping that it would issue a (as in Java or .NET) equals method to compare the 2 references to the object are actually the same object.

    No, I know I am using references XML (based on the parser Xerces... so that they are different)

    http://zone.NI.com/reference/en-XX/help/371361J-01/Glang/equal/

    I wanted to compare the references but I can not anyone has any ideas how to help out me? I would you.

    Thank you

    Maciej

    What I ended up doing, is that I use the index + content of the XML node as I loop on my tasks at deremine where I am in my sequence.

  • XP uses the xml language

    XP with sp3 receives and sends it in XML?

    Hello

    Yes, Windows XP supports the XML language, send and receive in XML also depend on the web browser you are using.

    Extensible markup language (XML) is a markup language that defines a set of rules for encoding documents in a readable and machine readable format. The XML design goals emphasize simplicity, generality and usability on the Web.

    Several application programming interfaces (API) have been developed that software developers use to process the XML data, and several schema systems exist to assist in the definition of XML-based languages.

Maybe you are looking for

  • HP Stream x 360 PC Convertible: 0xc0000225 error code

    I decided to do a restore to factory on my HP Stream x 360 Convertible PC and only got halfway through and said that he was able to complete the factory restore.  He wouldn't do anything to get out of this error message, so I restarted the computer.

  • Maintenance before damage estimates

    Currently, the link of service on the website request is defective. I am trying to know the cost of a maintenance of 18 points camera service, but also a maintenance service of lenses by 11 points before the estimates of damage because I fell from a

  • Printer sharing does not work for me

    I reply to a post by Mike in July 2009, about a difficulty to share a printer between a 64 bit vista computer and a xp one.  I followed all of the suggestions until I had to create a new port.  When I typed in the \\computername\sharename window indi

  • Computer upgrades

    I get upgraded my processor and motherboard soon. My question is, if I upgrade my processor and motherboard now, can I buy OEM of Windows 7 (or 8) now and update my graphics cards and get the new RAM later or I have to buy and install all at once?

  • Why color is not be printed?

    Hello I have a PSC 1610 printer all-in-one. Mac iBook G4. Never any problems.  I do not print in color. I have set up with the purchase of a color cartridge because I learned to print black and white, the printer HP must take little ink in the color