Slideshow from xml - loads in wrong order

Hi,
I modified an existing slideshow script so that it would like
to a page when you clicked the image. However, the images do not
always load up in the correct order, but the links and descriptions
do, so if you click an image it takes you to the wrong page.
It changes when you refresh the browser and acts differently
in ie to firefox - in ie it is usualy incorrect the first time,
then goes ok once u refresh. The link to view is:
http://www.fluidstudioswms.com/gftc/
and the actionscript is:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myShowXML = new XML();
myShowXML.ignoreWhite = true;
myShowXML.load("cfpromoexport.xml?cachebuster="
+Math.random()+ new Date().getTime());
myShowXML.onLoad = function() {
_root.myWidth = myShowXML.firstChild.attributes.width;
_root.myHeight = myShowXML.firstChild.attributes.height;
_root.mySpeed = myShowXML.firstChild.attributes.speed;
_root.myImages = myShowXML.firstChild.childNodes;
_root.myImagesNo = myImages.length;
createContainer();
callImages();
function createContainer() {
_root.createEmptyMovieClip("myContainer_mc",1);
myContainer_mc.lineTo(_root.myWidth,0);
myContainer_mc.lineTo(_root.myWidth,_root.myHeight);
myContainer_mc.lineTo(0,_root.myHeight);
myContainer_mc.lineTo(0,0);
myContainer_mc._x = (Stage.width-myContainer_mc._width);
myContainer_mc._y = (Stage.height-myContainer_mc._height);
function callImages() {
_root.myMCL = new MovieClipLoader();
_root.myPreloader = new Object();
_root.myMCL.addListener(_root.myPreloader);
_root.myClips_array = [];
_root.myPreloader.onLoadStart = function(target) {
_root.createTextField("myText_txt",_root.getNextHighestDepth(),0,0,100,20);
_root.myText_txt._x =
(Stage.width-_root.myText_txt._width)/2;
_root.myText_txt._y =
(Stage.height-_root.myText_txt._height)/2;
_root.myText_txt.autoSize = "center";
_root.myText_txt.text = "test";
_root.myPreloader.onLoadProgress = function(target) {
_root.myText_txt.text = "Loading..
"+_root.myClips_array.length+"/"+_root.myImagesNo+" Completed";
_root.myPreloader.onLoadComplete = function(target) {
_root.myClips_array.push(target);
target._alpha = 0;
if (_root.myClips_array.length == _root.myImagesNo) {
_root.myText_txt._y = myContainer_mc._y +
myContainer_mc._height;
_root.target_mc = -1;
moveSlide();
myShowInt = setInterval(moveSlide,
(_root.mySpeed*1000)+1000);
for (i=0; i<_root.myImagesNo; i++) {
temp_url = _root.myImages
.attributes.url;
temp_mc = myContainer_mc.createEmptyMovieClip(i,
myContainer_mc.getNextHighestDepth());
_root.myMCL.loadClip(temp_url,temp_mc);
_root.myContainer_mc.Link =
_root.myImages.attributes.link;
_root.myContainer_mc.onRelease = function() {
getURL(this.Link);
function moveSlide() {
current_mc = _root.myClips_array[_root.target_mc];
new Tween(current_mc, "_alpha", Strong.easeOut, 100, 0, 1,
true);
_root.target_mc++;
if (_root.target_mc>=_root.myImagesNo) {
_root.target_mc = 0;
next_mc = _root.myClips_array[_root.target_mc];
new Tween(next_mc, "_alpha", Strong.easeOut, 0, 100, 1,
true);
The XML can be viewed at
http://www.fluidstudioswms.com/gftc/cfpromoexport.xml
Any ideas would be greatly appreciated.

Sorry about code - new to the forum, I will remember for
future use.
Thanks for identifying the problem area. I have been trying
to fix the issue by sorting the array but my actionscript is not
great and I have not had any success :(

Similar Messages

  • I am running Windows 7.  I have 250 photos from a trip that I want to load to the iPad v 6.1.3.1 and show as slide show (in named order).  I can not see any recent remarks regarding how to keep them from being loaded in date order.

    I am running Windows 7.  I have 250 photos from a trip that I want to load to the iPad v 6.1.3.1 and show as slide show (in named order).  I can not see any recent remarks regarding how to keep them from being loaded in date order

    By default the photos will be sorted by the date modified.
         iOS: Understanding photo sorting
    Edit (touch) them in the order you want them to be shown.

  • Photos loading in wrong order, PASE 3.0 from digital camera

    I have PASE 3.0 and a FinePix A303 digital camera. I took photos on a three day trip to the Outer Banks. When I loaded them to my computer I took advantage of the renaming feature and had each picture named "Nags Head 04-06" and then a sequential number. All the photos were imported perfectly except for one thing. They are completely our of order. I.E. picturees #1 - 12 were from April 16, the next few were from April 14, then some from April 15, then back to April 14, etc, etc. When I do a straight copy from the camera I get all the photos, named "DSCF0002.JPG" "DSCF0003.JPG" etc and they are in the correct date/time sequence. Does anyone have any idea why PASE 3.0 is shuffling the pics into some random order before uploading?
    Thanks. Bob

    I suspect that PSA SE just fetches the files off of the camera in the order the camera provides them. But I'm just guessing ...
    Anyway, does it really matter what the filenames are? PSA SE will display them in date/time order for you. If you want to fix their names now, just select the images and use File/Rename.

  • Slideshow from XML in AS3

    I'm WAY new to AS3 and I'm looking to create a slideshow
    driven by XML. Its a very simple XML file that can have 2 to 5
    images in it.
    I can get the images to load in, but am having problems on
    the Event.COMPLETE function I created. I can't seem to reference
    the target at all.. basically when the load is complete, I want to
    retrict it to a 600 width or 450 height (depending on whether its
    wider or taller).
    I can get that information, but have NO idea how to adjust
    the width and height of the target. I've tried event.target.name,
    and event.currentTarget.name, etc... I have no idea what to do
    next!!!
    I've attached all the code I have (just started it).
    Any help would be GREATLY appreciated!!!!!

    You can't manipulate the width and height of the actual
    content you're loading, you have to manipulate the object
    displaying this content. this can be either the loader's content
    DisplayObject or the loader itself.
    so where you say for example:
    info.width = 600;
    you should say
    loader.width = 600; //or loader.content.width = 600;

  • RAT - SQL Tuning Set from 9i trace in wrong order

    Hi together
    I want to test the impact of some staments on 9.2.0.8 in 11g with Real Application Testing, but the order in the tuning set seems to b wrong (not in the traced order). So i made a small Test Script who is creating a Table, insert Data with a loop and select all.
    Steps :
    * 9i enable trace level 4
    * 9i run the script
    * 9i stop the trace
    * transfer to 11g
    * make an sql tunnig set
    * running in the Performance Analyzer Workflow
    The first run Oracle makes performance datas from the trace files. In the second run I want to execute the statements from the tuning set in the 11g database. The traced Schema from 9i exists.
    In the report after the second run I see the failure that the insert and select statement is not allowed. When i take a look in the SQL Tuning Set i see that the select and insert will be played before the create table ! Also on the view DBA_SQLSET_STATEMENTS.
    Is there a way to get the correct order in the SQL Tuning Set like the statement order (create before insert,select) ? Or can Oracle not handle DDL-Statements in the trace ?
    Regards Martin

    Hi together
    I want to test the impact of some staments on 9.2.0.8 in 11g with Real Application Testing, but the order in the tuning set seems to b wrong (not in the traced order). So i made a small Test Script who is creating a Table, insert Data with a loop and select all.
    Steps :
    * 9i enable trace level 4
    * 9i run the script
    * 9i stop the trace
    * transfer to 11g
    * make an sql tunnig set
    * running in the Performance Analyzer Workflow
    The first run Oracle makes performance datas from the trace files. In the second run I want to execute the statements from the tuning set in the 11g database. The traced Schema from 9i exists.
    In the report after the second run I see the failure that the insert and select statement is not allowed. When i take a look in the SQL Tuning Set i see that the select and insert will be played before the create table ! Also on the view DBA_SQLSET_STATEMENTS.
    Is there a way to get the correct order in the SQL Tuning Set like the statement order (create before insert,select) ? Or can Oracle not handle DDL-Statements in the trace ?
    Regards Martin

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • XML Parsing attributes with encoded ampersand causes wrong order

    Hi all,
    I am writing in the forum first (because it could be that i am doing something wrong.... but i think it is a bug. Nonetheless, i thought i'd write my problem up here first.
    I am using Java 6, and this has been reproduced on both windows and linux.
    java version "1.6.0_03"
    Problem:
    read XML file into org.w3c.dom.Document.
    XML File has some attributes which contain ampersand. These are escaped as (i think) is prescribed by the rule of XML. For example:
    <?xml version="1.0" encoding="UTF-8"?>
         <lang>
              <text dna="8233" ro="chisturi de plex coroid (&gt;=1.5 mm)" it="Cisti del plesso corioideo(&gt;=1.5mm)" tr="Koro&#305;d pleksus kisti (&gt;=1.5 mm)" pt_br="Cisto do plexo cor&oacute;ide (&gt;=1,5 mm)" de="Choroidplexus Zyste (&gt;=1,5 mm)" el="&Kappa;&#973;&sigma;&tau;&epsilon;&iota;&sigmaf; &chi;&omicron;&rho;&omicron;&epsilon;&iota;&delta;&omicron;&#973;&sigmaf; &pi;&lambda;&#941;&gamma;&mu;&alpha;&tau;&omicron;&sigmaf; (&gt;= 1.5 mm)" zh_cn="&#33033;&#32476;&#33180;&#22218;&#32959;&#65288;&gt;= 1.5 mm&#65289;" pt="Quisto do plexo coroideu (&gt;=1,5 mm)" bg="&#1050;&#1080;&#1089;&#1090;&#1072; &#1085;&#1072; &#1093;&#1086;&#1088;&#1080;&#1086;&#1080;&#1076;&#1085;&#1080;&#1103; &#1087;&#1083;&#1077;&#1082;&#1089;&#1091;&#1089; (&gt;= 1.5 mm)" fr="Kystes du plexus choroide (&gt;= 1,5 mm)" en="Choroid plexus cysts (&gt;=1.5 mm)" ru="&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (&gt;=1.5 mm)" es="Quiste del plexo coroideo (&gt;=1.5 mm)" ja="&#33032;&#32097;&#33180;&#22178;&#32990;&#65288;&gt;=1.5mm&#65289;" nl="Plexus choroidus cyste (&gt;= 1,5 mm)" />
    </lang>As you might understand, we need to have the fixed text '>' for later processing. (not the greater than symbol '>' but the escaped version of it).
    Therefore, I escape the ampersand (encode?) and leave the rest of the text as is. And so my > becomes >
    All ok?
    Symptom:
    in fetching attributes, for example by the getAttribute("en") type call, the wrong attribute values are fetched.
    Not only that, if i only read to Document instance, and write back to file, the attributes are shown mixed up.
    eg:
    dna: 8233, ro=chisturi de plex coroid (>=1.5 mm), en=&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (>=1, de=Choroidplexus Zyste (>=1,5 mm)Here you can see that 'en' is shown holding what looks like greek, ... (what is ru as a country-code anyway?) where it should have obviously had the english text that originally was associated with the attribute 'en'
    This seems very strange and unexpected to me. I would have thought that in escaping (encoding) the ampersand, i have fulfilled all requirements of me, and that should be that.
    There is also no error that seems to occur.... we simply get the wrong order when fetching attributes.
    Am I doing something wrong? Or is this a bug that should be submitted?
    Kind Regards, and thanks to all responders/readers.
    Sean
    p.s. previously I had not been escaping the ampersand. This meant that I lost my ampersand in fetching attributes, AND the attribute order was ALSO WRONG!
    In fact, the wrong order was what led me to read about how to correctly encode ampersand at all. I had been hoping that correctly encoding would fix the order problem, but it didn't.
    Edited by: svaens on Mar 31, 2008 6:21 AM

    Hi kdgregory ,
    Firstly, sorry if there has been a misunderstanding on my part. If i did not reply to the question you raised, I appologise.
    In this 'reply' I hope not to risk further misunderstanding, and have simply given the most basic example which will cause the problem I am talking about, as well as short instructions on what XML to remove to make the problem disappear.
    Secondly, as this page seems to be displayed in ISO 8859-1, this is the reason the xml I have posted looks garbled. The xml is UTF-8. I have provided a link to the example xml file for the sample below
    [example xml file UTF-8|http://sean.freeshell.org/java/less2.xml]
    As for your most recent questions:
    Is it specified as an entity? To my knowledge (so far as my understanding of what an entity is) , yes, I am including entities in my xml. In my below example, the entities are the code for the greater than symbol. I am under the understanding that this is allowed in XML ??
    Is it an actual literal character (0xA0)? No, I am specifying 'greater than' entity (code?) in order to include the actual symbol in the end result. I am encoding it in form 'ampersand', 'g character', 't character', 'colon' in order for it to work, according to information I have read on various web pages. A quick google search will show you where I got such information from, example website: https://studio.tellme.com/general/xmlprimer.html
    Here is my sample program. It is longer than the one you kindly provided only because it prints out all attributes of the element it looks for. To use it, only change the name of the file it loads.
    I have given the xml code seperately so it can be easily copied and saved to file.
    Results you can expect from running this small test example?
    1. a mixed up list of attributes where attribute node name no longer matches its assigned attribute values (not for all attributes, but some).
    2. removing the attribute bg from the 'text' element will reduce most of these symptoms, but not all. Removing another attribute from the element will most likely make the end result look normal again.
    3. No exception is thrown by the presence of non xml characters.
    IMPORTANT!!! I have only just (unfortunately) noticed what this page does to my unicode characters... all the the international characters get turned into funny codes when previewed and viewed on this page.
    Whereas the only codes I am explicitly including in this XML is the greater than symbol. The rest were international characters.
    Perhaps that is the problem?
    Perhaps there is an international characters problem?
    I am quite sure that these characters are all UTF-8 because when I open up this xml file in firefox, It displays correctly, and in checking the character encoding, firefox reports UTF-8.
    In order to provide an un-garbled xml file, I will provide it at this link:
    link to xml file: [http://sean.freeshell.org/java/less2.xml]
    Again, sorry for any hassle and/or delay with my reply, or poor reply. I did not mean to waste anyones time.
    It will be appreciated however if an answer can be found for this problem. Chiefly,
    1. Is this a bug?
    2. Is the XML correct? (if not, then all those websites i've been reading are giving false information? )
    Kindest Regards,
    Sean
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class Example
        public static void main(String[] argv)
              try
                   FileInputStream fis = new FileInputStream("/home/sean/Desktop/chris/less2.xml");
                 Document doc = DocumentBuilderFactory.newInstance()
                 .newDocumentBuilder()
                 .parse(new InputSource(fis));
                   Element root = doc.getDocumentElement();
                   NodeList textnodes = root.getElementsByTagName("text");
                   int len = textnodes.getLength();
                   int index = 0;
                   int attindex = 0;
                   int attrlen = 0;
                   NamedNodeMap attrs = null;
                   while (index<len)
                        Element te = (Element)textnodes.item(index);
                        attrs = te.getAttributes();
                        attrlen = attrs.getLength();
                        attindex = 0;
                        Node node = null;
                        while (attindex<attrlen)
                             node = attrs.item(attindex);          
                             System.out.println("attr: "+node.getNodeName()+ " is shown holding value: " + node.getNodeValue());
                             attindex++;                         
                        index++;
                        System.out.println("-------------");
                 fis.close();
              catch(Exception e)
                   System.out.println("we've had an exception, type "+ e);
    }  [example xml file|http://sean.freeshell.org/java/less2.xml]
    FOR THE XML, Please see link above, as it is UTF-8, and this page is not. Edited by: svaens on Apr 7, 2008 7:03 AM
    Edited by: svaens on Apr 7, 2008 7:23 AM
    Edited by: svaens on Apr 7, 2008 7:37 AM
    Edited by: svaens on Apr 7, 2008 7:41 AM

  • Error editing task sequence: Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" From XML into WMI

    I've started getting an intermittent error editing my Windows 7 OSD task sequence.  Sometimes I can open the TS to edit, but when I try to apply changes I get the error.  Other times I get the error when trying to open the TS.  If I try again
    right away, I still get the error, but if I wait a few minutes and try again sometimes it will open the TS. 
    The error reads:
    ConfigMgr Error Object:instance of SMS_Extended Status{Description = "Failed to load dynamic properties for class \"SMS_TaskSequence_ApplyWindowsSettingsAction\" from XML into WMI";Error Code = 2147943746;File = "e:\\qfe\\nts\\sms\\siteserver\\sdk_provider\\smsprov\\ssptspackage.cpp";Line = 3454;Operation = "ExecMethod";ParameterInfo = "SMS_TaskSequencePackage";ProviderName = "WinMgmt";StatusCode = 2147749889;}
    Coinciding with this error, I show the following entries in the TaskSequenceProvider.log file: 
    [PID: 7608] Invoking method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Failed to protect memory buffer, hr=0x80070542
    TaskSequenceProvider
    Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load node Apply Windows Settings from XML into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "PostInstall" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "Execute Task Sequence" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load children steps for node "" from XML 0x80070542 (2147943746)
    TaskSequenceProvider
    Failed to load XML for the task sequence into WMI 0x80070542 (2147943746)
    TaskSequenceProvider
    [PID: 7608] Done with method SMS_TaskSequence.LoadFromXml
    TaskSequenceProvider
    Setting status complete:  status code = 0x80070542; Failed to load dynamic properties for class "SMS_TaskSequence_ApplyWindowsSettingsAction" from XML into WMI
    TaskSequenceProvider
    I exported the task sequence and checked in "object.xml" for the "ApplyWindowsSettingsAction", to see if there was something odd in the xml, but I don't find anything that jumps out as being wrong.  Here's the section of XML for
    that step.  I've removed identifying info, and replaced it with a generic term in bold.
    <step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="" runIn="WinPE" successCodeList="0" runFromNet="false"><action>osdwinsettings.exe /config</action><defaultVarList><variable name="OSDLocalAdminPassword" property="AdminPassword"></variable><variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable><variable name="OSDProductKey" property="ProductKey"></variable><variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable><variable name="OSDRegisteredOrgName" property="RegisteredOrgName">COMPANY NAME</variable><variable name="OSDRegisteredUserName" property="RegisteredUserName">COMPANY NAME</variable><variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable><variable name="OSDTimeZone" property="TimeZone">Central Standard Time</variable></defaultVarList></step><step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="" runIn="WinPEandFullOS" successCodeList="0" runFromNet="false"><action>osdnetsettings.exe configure</action><defaultVarList><variable name="OSDDomainName" property="DomainName">DOMAIN.COM</variable><variable name="OSDJoinPassword" property="DomainPassword"></variable><variable name="OSDJoinAccount" property="DomainUsername">DOMAIN ACCOUNT</variable><variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable><variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable><variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable></defaultVarList></step>
    Is there any other log I should check for a clue on this issue?  What could be causing this error?

    Thanks for sharing that!  I tend to save contacting MS support until after I've exhausted other options.  I'm always afraid that I'll spend the $500 to open a case and then it turns out to be something simple that I would have found if I had just
    kept working on it myself a little longer.
    It looks like that link is for an update released in February as KB3023562.  I downloaded and installed it. I'll try opening/editing/saving the task sequence a few times today to see if the issue is resolved.  
    After I had already installed it, I thought to look up that update in configmgr.  The update is listed as superseded by 2 other updates.  The newest of those is KB3046049, which just installed last night with the other March patches, so it's possible
    that I didn't need to install KB3023562 after all.  

  • Form are different when save an exist form as XML then load from XML

    Hi everyone,
    Who have experience that save an exist form as XML file then load from XML, some controls position, size and color different with the source form.
    I want to use the system wizard form style and I saved system form MRP Wizard as XML file, when I load form from XML, the form shows picture with different position, size, the rectangle control lost color and position also different with source form, because I want to get the line color in the form, the separate line implement using rectangle, please share your opinion how to save the form as XML more Accurate.
    Thanks in advance!
    Kathy

    Hi Kathy
    After loading a form over XML, we made the experince that in matrices link buttons will not appear everwehere they should. It's a tricky part and we made a work around by changing the columns order and then...the Link Buttons came up ok.
    regards
    Kurt

  • AR can't be added-Error "Failed to load from XML resource"

    Hi Everyone,
    I need help with this error. When entering an item and then tabbing in an AR document, this code appears.
    "Failed to load from XML resouce".
    Thanks,\
    Debbie

    Hello experts,
    I am facing this issue in SBO 9.0 PL 08.
    Using SBOdemoUS, clic 'Duplicate' an existing Sales Order, then select a Business Partner, and hit 'yes' to the question in order to refresh rows with new BP info. You will get red bar error 'Failed to load from XML resource - (UI_API 7004) [Message 66000-6]'  and it wipes out all the copied rows info.  Does not happen with BPs that don't have default Ship To info.
    Your advise please.
    Thanks

  • Load from xml inside zip - and place icons after X Y coordinates

    Hi I hope someone can help me.
    I need a flash page to open a Zip folder read an xml file in the folder
    From here it can find
    the backgrounds to be used
    paths to the icons needed
    and coordinates for the icons.
    The zip folder is in the folder "/ project /"
    icons in the folder "/ icons /"
    Background images are in the directory "/ project / (the zip folder / images /)"
    In the above XML, you can read the descriptions.
    <?xml version="1.0" encoding="UTF-8"?>
    <icwproject name="Henrik" version="2">
              <description>My Projekt</description>
              <ihcproject>ihcproject.ihc</ihcproject>
              <created day="27" hour="16" min="57" month="8" sec="34" year="2011"/>
              <lastmodified day="15" hour="19" min="5" month="9" sec="3" year="2011"/>
              // FILE SOURCES WITH ID - FOLLOWING OFFICIALS FILES MUST BE USED //
              <images>
                        <image active="mail_active.png" id="mail" inactive="mail_inactive.png" noresource="mail_noresource.png" preview="mail_preview.png"/>
                        <image active="scenelink_active.png" id="scenelink" inactive="scenelink_inactive.png" noresource="scenelink_noresource.png" preview="scenelink_preview.png"/>
                        <image active="spot2_active.png" id="spot2" inactive="spot2_inactive.png" noresource="spot2_noresource.png" preview="spot2_preview.png"/>
                        <image file="skov_house_800x600.png" id="skov_house_800x600.png"/>
                        <image active="smoke_active.png" id="smoke" inactive="smoke_inactive.png" noresource="smoke_noresource.png" preview="smoke_preview.png"/>
                        <image active="skotlamp_active.png" id="skotlamp" inactive="skotlamp_inactive.png" noresource="skotlamp_noresource.png" preview="skotlamp_preview.png"/>
                        <image active="sos_active.png" id="sos" inactive="sos_inactive.png" noresource="sos_noresource.png" preview="sos_preview.png"/>
                        <image active="spot_active.png" id="spot" inactive="spot_inactive.png" noresource="spot_noresource.png" preview="spot_preview.png"/>
                        <image active="led_green_active.png" id="led_green" inactive="led_green_inactive.png" noresource="led_green_noresource.png" preview="led_green_preview.png"/>
                        <image active="gas_active.png" id="gas" inactive="gas_inactive.png" noresource="gas_noresource.png" preview="gas_preview.png"/>
                        <image file="default_scene.gif" id="default"/>
                        <image active="led_red_active.png" id="led_red" inactive="led_red_inactive.png" noresource="led_red_noresource.png" preview="led_red_preview.png"/>
                        <image active="pendant_active.png" id="pendant" inactive="pendant_inactive.png" noresource="pendant_noresource.png" preview="pendant_preview.png"/>
                        <image active="bulb_active.png" id="bulb" inactive="bulb_inactive.png" noresource="bulb_noresource.png" preview="bulb_preview.png"/>
                        <image active="socket_active.png" id="socket" inactive="socket_inactive.png" noresource="socket_noresource.png" preview="socket_preview.png"/>
                        <image active="thief_active.png" id="thief" inactive="thief_inactive.png" noresource="thief_noresource.png" preview="thief_preview.png"/>
                        <image active="docklamp_active.png" id="docklamp" inactive="docklamp_inactive.png" noresource="docklamp_noresource.png" preview="docklamp_preview.png"/>
                        <image active="button1_active.png" id="button1" inactive="button1_inactive.png" noresource="button1_noresource.png" preview="button1_preview.png"/>
              </images>
              <scenes>
                        // For each "scene" THIS IS A NEW PAGE. attributes.name "PROVIDE SITE NAME //
                        <scene name="MinScene" type="pc">
                                  <description>Af: Henrik Andersen</description>
                                  // "imageref" OPLYSER HVILKEN BAGGRUND DER SKAL BRUGES PÅ SIDEN //
                                  // "Imageref" PROVIDE THE BACKGROUND TO BE USED ON SITE //
                                  <imageref id="skov_house_800x600.png"/>
                                  <sceneelements>
                                            // FOR EACH "resourcebinaryelement" IS THERE A NEW IMAGE. "resourcebinaryelement" 'S attributes the X & Y coordinates OF injected. "imageref" SAY WHAT ONE OF PREVIOUS IMAGES TO BE USED //
                                            <resourcebinaryelement name="SOFABORD" type="lightcontrol" x="330" y="117">
                                                      <description/>
                                                      <imageref id="pendant"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="airlink_dimming" rid="5e55d"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Lys niveau" resource_type="airlink_dimming" rid="5e55d" type="setting"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="SPISEBORD" type="lightcontrol" x="530" y="220">
                                                      <description/>
                                                      <imageref id="pendant"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="airlink_dimming" rid="5d65d"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Lys niveau" resource_type="airlink_dimming" rid="5d65d" type="setting"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="TV" type="lightcontrol" x="412" y="344">
                                                      <description>TV STIK</description>
                                                      <imageref id="socket"/>
                                                      <format fontscaling="50" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="4b5e"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Scenarier" resource_type="scenes" rid="4a54" type="setting"/>
                                                      <menuitem direct="no" name="Indgang for manuel KIP af udgang" resource_type="resource_input" rid="61511" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="HIFI OFF" invertstate="no" textposition="top" true="HIFI ON"/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Gas" type="signal" x="500" y="360">
                                                      <description/>
                                                      <imageref id="gas"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Røg" type="signal" x="550" y="360">
                                                      <description/>
                                                      <imageref id="smoke"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Indbrud" type="signal" x="500" y="410">
                                                      <description/>
                                                      <imageref id="thief"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Personalarm" type="signal" x="550" y="410">
                                                      <description/>
                                                      <imageref id="sos"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Stikkontakt" type="lightcontrol" x="314" y="425">
                                                      <description/>
                                                      <imageref id="socket"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="4e5e"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Indgang" resource_type="resource_input" rid="5ae11" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Væg lampe" type="lightcontrol" x="407" y="575">
                                                      <description/>
                                                      <imageref id="skotlamp"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12d45b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="12d811" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Væg lampe" type="lightcontrol" x="84" y="575">
                                                      <description/>
                                                      <imageref id="skotlamp"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12d45b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="12d811" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="DOCK lampe" type="lightcontrol" x="50" y="363">
                                                      <description/>
                                                      <imageref id="docklamp"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12d45b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="12d811" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="DOCK lampe" type="lightcontrol" x="50" y="440">
                                                      <description/>
                                                      <imageref id="docklamp"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12d45b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="12d811" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spot" type="lightcontrol" x="323" y="506">
                                                      <description/>
                                                      <imageref id="spot2"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="10bf5b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="10c311" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spot" type="lightcontrol" x="226" y="407">
                                                      <description/>
                                                      <imageref id="spot2"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="10b65b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="100d11" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spot" type="lightcontrol" x="153" y="315">
                                                      <description/>
                                                      <imageref id="spot2"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spot" type="lightcontrol" x="342" y="429">
                                                      <description/>
                                                      <imageref id="spot2"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12255b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="122911" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="LED" type="lightcontrol" x="412" y="403">
                                                      <description/>
                                                      <imageref id="spot2"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12255b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="122911" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="SKOT lampe" type="lightcontrol" x="456" y="542">
                                                      <description/>
                                                      <imageref id="skotlamp"/>
                                                      <format fontscaling="70" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="12d45b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="12d811" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="SKOT lampe" type="lightcontrol" x="172" y="525">
                                                      <description/>
                                                      <imageref id="skotlamp"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="116e5b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="117211" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            // "linkelement" ALMOST THE SAME AS "resourcebinaryelement" BUT THEY DO NOT MIX TOGETHER anyway / /
                                            <linkelement name="Kælder etage" type="link" x="99" y="520">
                                                      <description/>
                                                      <imageref id="scenelink"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#00ffff" labelposition="top"/>
                                                      <link scene="Kælder"/>
                                            </linkelement>
                                            <resourcebinaryelement name="Postkasse" type="signal" x="500" y="460">
                                                      <description/>
                                                      <imageref id="mail"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#00ffff" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#00ffff" colortrue="#00ffff" false="" invertstate="no" textposition="center" true="Der er post"/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spot" type="lightcontrol" x="140" y="116">
                                                      <description/>
                                                      <imageref id="spot"/>
                                                      <format fontscaling="100" imagescaling="100" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="14365b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="143d11" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                  </sceneelements>
                        </scene>
                        <scene name="Morten Skov" type="web">
                                  <description>Af: Henrik Andersen</description>
                                  <imageref id="skov_house_800x600.png"/>
                                  <sceneelements>
                                            <resourcebinaryelement name="Sofabord" type="lightcontrol" x="322" y="114">
                                                      <description/>
                                                      <imageref id="pendant"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Scenarier" resource_type="scenes" rid="5054" type="setting"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="TV" type="lightcontrol" x="413" y="345">
                                                      <description>HIFI Kontakt</description>
                                                      <imageref id="socket"/>
                                                      <format fontscaling="50" imagescaling="50" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="4b5e"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="HIFI OFF" invertstate="no" textposition="top" true="HIFI ON"/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Spisebord" type="lightcontrol" x="513" y="218">
                                                      <description/>
                                                      <imageref id="pendant"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Scenarier" resource_type="scenes" rid="5354" type="setting"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Gas" type="signal" x="491" y="360">
                                                      <description/>
                                                      <imageref id="gas"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Røg" type="signal" x="546" y="360">
                                                      <description/>
                                                      <imageref id="smoke"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Indbrud" type="signal" x="499" y="407">
                                                      <description/>
                                                      <imageref id="thief"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="Personalarm" type="signal" x="548" y="409">
                                                      <description/>
                                                      <imageref id="sos"/>
                                                      <format fontscaling="50" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <gui>
                                                      <menuitems/>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="top" true=""/>
                                            </resourcebinaryelement>
                                  </sceneelements>
                        </scene>
                        <scene name="Kælder" type="pc">
                                  <description>Kælder etage</description>
                                  <imageref id="default"/>
                                  <sceneelements>
                                            <resourcebinaryelement name="Elektrisk pære" type="lightcontrol" x="155" y="118">
                                                      <description>Vaskerum</description>
                                                      <imageref id="bulb"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="10005b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="ea611" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="SKOT lampe" type="lightcontrol" x="154" y="319">
                                                      <description>Kontor</description>
                                                      <imageref id="skotlamp"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#000000" labelposition="top"/>
                                                      <master resource_type="resource_output" rid="ffd5b"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Kip" resource_type="resource_input" rid="f5211" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <linkelement name="Stue etage" type="link" x="69" y="407">
                                                      <description/>
                                                      <imageref id="scenelink"/>
                                                      <format fontscaling="70" imagescaling="70" labelcolor="#00ffff" labelposition="top"/>
                                                      <link scene="MinScene"/>
                                            </linkelement>
                                  </sceneelements>
                        </scene>
                        <scene name="Alarm" type="pc">
                                  <description/>
                                  <imageref id="default"/>
                                  <sceneelements>
                                            <resourcebinaryelement name="1" type="genericcontrol" x="79" y="61">
                                                      <description/>
                                                      <imageref id="button1"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#ffffff" labelposition="center"/>
                                                      <master resource_type="resource_input" rid="1bba5a"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Tryk Tast 1" resource_type="resource_input" rid="1bba5a" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="2" type="genericcontrol" x="121" y="61">
                                                      <description/>
                                                      <imageref id="button1"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#ffffff" labelposition="center"/>
                                                      <master resource_type="resource_input" rid="1bbb5a"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Tryk Tast 2" resource_type="resource_input" rid="1bbb5a" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="3" type="genericcontrol" x="80" y="103">
                                                      <description/>
                                                      <imageref id="button1"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#ffffff" labelposition="center"/>
                                                      <master resource_type="resource_input" rid="1bbc5a"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Tryk Tast 3" resource_type="resource_input" rid="1bbc5a" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="4" type="genericcontrol" x="123" y="103">
                                                      <description/>
                                                      <imageref id="button1"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#ffffff" labelposition="center"/>
                                                      <master resource_type="resource_input" rid="1bbd5a"/>
                                                      <gui>
                                                      <menuitems>
                                                                <menuitem direct="yes" name="Tryk Tast 4" resource_type="resource_input" rid="1bbd5a" type="follow"/>
                                                      </menuitems>
                                                      </gui>
                                                      <text colorfalse="#000000" colortrue="#ff0000" false="" invertstate="no" textposition="center" true=""/>
                                            </resourcebinaryelement>
                                            <resourcebinaryelement name="5" type="genericcontrol" x="81" y="144">
                                                      <description/>
                                                      <imageref id="button1"/>
                                                      <format fontscaling="70" imagescaling="100" labelcolor="#ffffff" labelposition="center"/>
                                                      <master resource_type="resource_input"

    I will concentrate on extracting an XML from a ZIP. (Please create a new thread if you want to know how to use your XML.)
    I have this simple  XML called "test.xml":
    <?xml version="1.0" encoding="UTF-8"?>
    <test>This is a text XML</test>
    Then I zipped this up to create a ZIP file "test.xml.zip".
    In order to read a ZIP you need a AS3 ZIP Library by David Chang:
    http://nochump.com/blog/archives/15
    Here's an example script:
    package {
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.net.URLRequest;
        import flash.net.URLStream;
        import flash.utils.ByteArray;
        import nochump.util.zip.ZipEntry;
        import nochump.util.zip.ZipFile;
        public class ZipTest extends Sprite {
            public function ZipTest():void {
                init();
            private function init():void {
                var stream:URLStream = new URLStream();
                stream.addEventListener(Event.COMPLETE, streamCompleted);
                stream.load(new URLRequest("test.xml.zip"));
            private function streamCompleted(e:Event):void {
                var zip:ZipFile = new ZipFile(e.target as URLStream);
                for(var i:uint = 0, zipEntryCount:uint = zip.entries.length; i < zipEntryCount; i++){
                    var entry:ZipEntry = zip.entries[i];
                    if(entry.name == "test.xml"){
                        var bytes:ByteArray = zip.getInput(entry);
                        trace(bytes);
    Trace
    <?xml version="1.0" encoding="UTF-8"?>
    <test>This is a text XML</test>
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Load class from XML (Dynamic Dispatch)

    I'm continuing my voyage into the realms of LVOOP.....
    I have encountered a new problem which I am sure there's a solution to.....
    I have a certain hierarchy and I want to implement a single save and load routine for all objects int he hierarchy (located int he parent class of course).
    Using the "flatten to XML" I'm able to create some nice XML files with all parent and sibling information saved (as long as the values are non-default of course).
    Where I am running into problems is the loading of the data within this XML file.  I want to be able to take an object and basically re-initialise it to the values within the file.  All fine and good I thought, but it doesn't work.
    The problem is that when using the VI with Dynamic dispatch inputs, the output of the "Unflatten from XML" is giving me a conflict with the Dynamic dispatch output saying the obejct types do not  necessarily match.  Is it not possible to match the object type on the input and output of the "Unflatten from XML" primitive?
    If I try removing the "Dynamic Dispatch" input to a static input, then it only loads the data for the parent class regardless of the actual input class.
    Am I doing something silly here or is there no other way to properly load a sibling class from a file using only a method residing within the parent class?  I was hoping I could have a single "Save-Restore" function residing within my parent class to make life easier for me.
    Shane.
    Message Edited by Intaris on 06-17-2009 05:24 AM
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

    Hi Tst,
    Problem is that in order for the cast to yield any useful results, I have to make the inputs and outputs non-Dynamic which results in ONLY the data for the parent class being loaded.
    If the inputs and outputs are Dynamic, then a cast will not solve the problem (It could be a grandchild class being cast as a child, thus breaking the dynamic dispatch tables).
    The only solution I see is for the "UnFlatten from XML" to RETAIN the true object type.
    Either that or use my beautiful solution 
    Shane.
    Ps I just did a bit of a test of the race condition probabilities.  I ran 100000 tests (100k) with a program stressing both cores AND ram of my machine in parallel and all 100k of 100k iterations worked out OK.  I suppose that lets me think I should be in the range of at least 99.99%....... 
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • Custom Connection Manager only works in 32bit- 0xC0011008: Error loading from XML

    I have a very basic / stripped connection manager with only one property (SSIS 2012). It works fine in design time (you can open the connection manager editor and change the value), but in runtime it only works in 32bit mode. The runtime-validate-method
    does work, but if everything validates OK then in 64bit it throws an error when you run the package:
    Exception deserializing the package "The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information
    can be stored.". This occurs when CPackage::LoadFromXML fails.
    The 2 VS projects are .Net 4 class library projects with the Build Platform on "Any CPU"
    I only add references to:
    Microsoft.SqlServer.ManagedDTS - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ManagedDTS.dll
    Microsoft.SqlServer.Dts.Design - C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.Dts.Design\v4.0_11.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Dts.Design.dll
    Compiled DLL's are available in GAC and SQL Server connections folder:
    I made the sourcecode available via codeplex:
    https://ssisconnectionmanager.codeplex.com/SourceControl/latest#myFirstConnectionManager/2012/myFirstConnectionManager/myFirstConnectionManager.cs
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

    AppPrincipal (identity) related? Hint http://serverfault.com/questions/339747/the-package-failed-to-load-due-to-error-0xc0011008-error-loading-from-xml
    Arthur My Blog
    Hi Arthur,
    Looks like something similar (same message, same 64bit issue), will try that tomorrow! But sounds weird that you should tell SSIS which identity to use...
    Found the same thread in MSDN:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/47d185d3-c801-45cf-becd-3c2524d98353/the-package-failed-to-load-due-to-error-0xc0011008-error-loading-from-xml?forum=sqlintegrationservices
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Data Load from XML file to Oracle Table

    Hi,
    I am trying to load data from XML file to Oracle table using DBMS_XMLStore utility.I have performed the prerequisites like creating the directory from APPS user, grant read/write to directory, placing the data file on folder on apps tier, created a procedure ‘insertXML’ to load the data based on metalink note (Note ID: 396573.1 How to Insert XML by passing a file Instead of using Embedded XML). I am running the procedure thru below anonymous block  to insert the data in the table.
    Anonymous block
    declare
      begin
      insertXML('XMLDIR', 'results.xml', 'employee_results');
      end;
    I am getting below error after running the anonymous block.
    Error :     ORA-22288: file or LOB operation FILEOPEN failed”
    Cause :   The operation attempted on the file or LOB failed.
    Action:   See the next error message in the error stack for more detailed
               information.  Also, verify that the file or LOB exists and that
               the necessary privileges are set for the specified operation. If
               the error still persists, report the error to the DBA.
    I searched this error on metalink and found DOC ID 1556652.1 . I Ran the script provided in the document. PFA the script.
    Also, attaching a document that list down the steps that I have followed.
    Please check and let me know if I am missing something in the process. Please help to get this resolve.
    Regards,
    Sankalp

    Thanks Bashar for your prompt response.
    I ran the insert statement but encountered error,below are the error details. statement.
    Error report -
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    No such file or directory
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    22288. 00000 -  "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
               information.  Also, verify that the file or LOB exists and that
               the necessary privileges are set for the specified operation. If
               the error still persists, report the error to the DBA.
    INSERT statement I ran
    INSERT INTO employee_results (USERNAME,FIRSTNAME,LASTNAME,STATUS)
        SELECT *
        FROM XMLTABLE('/Results/Users/User'
               PASSING XMLTYPE(BFILENAME('XMLDIR', 'results.xml'),
               NLS_CHARSET_ID('CHAR_CS'))
               COLUMNS USERNAME  NUMBER(4)    PATH 'USERNAME',
                       FIRSTNAME  VARCHAR2(10) PATH 'FIRSTNAME',
                       LASTNAME    NUMBER(7,2)  PATH 'LASTNAME',
                       STATUS  VARCHAR2(14) PATH 'STATUS'
    Regards,
    Sankalp

Maybe you are looking for

  • Apple Mini-DVI to DVI Adapter

    Ok I have this adaptor and the RCA out one to. My question is do they sell a extension to connect to the Mini-DVI end that will make it longer so I can connect my 20in Cinema Display to my 20in Intel IMAC I can do it now, but this is the way I have i

  • Error while migrating from version 9201 to 9204

    Actully i m migrating the Oracle 9201 to 9204, now after installing only 9201, 1. I created the database and checked, everything was working fine. 2. i shutdown the database. 3. check, still some processes related to oracle like (HTTP server) were ru

  • Send SipMessage on  the same trasport as that of the dialog initiator

    When a SUBSCRIBE request on TCP transport and I want to send NOTIFY requests in the same dialog i am using sipsession.createRequest() When I send the request its always sent on UDP> The client which send the inital SUBSCRIBE is listening on TCP and i

  • Moving Apps across accounts........

    Hi My daughter bought games apps on my account but now has her own ipad with her own apple ID is there a way to transfer those games apps over to her account as i dont need them on mine. Thanks for any advice Andy

  • BOM Structure Uniqueness

    Hello guys i have a question BOM structure. A(top_Item_Id) B(top_item_id) A1 A1 A11 A11 A12 A12 this are my BOM structures and this data gets populated in Bom_small_implosion_temp table after doing implosion. How can i pull only record with B(top_ite