Writing xml config with AIR

Greetings!

I know that this is possible. I can't think of a way to do that is very smooth, however. For the application, the user will enter data that will be stored in a config file to another Java application that is waiting for the file to be created (both on the same machine with air). Can someone tell me a simple example?

The config itself is big enough and I'll probably use several viewstats to get all the information. Any help or advice are appricated!

Build your user interface XML object and then write with the AIR API file wrigin.

Tags: Flex

Similar Questions

  • generated writing XML to a file after comparing with other XML

    Hello

    I made the comparison of the two XML now, I have an obligation to concat these two xml but also necessary to add the XML code with a status node that is after comparing the two displayed XML is Y or N, so if it is there then a node with

    < status > Y < / status >

    < of table > t1 < / table >

    then by completing the tasks that I have to write to a file

    declare

    p_emp_info CLOB.

    l_emp_tab xmlsequencetype: = xmlsequencetype();

    BEGIN

    I'm IN (SELECT id from emp WHERE emp_name = 'ABC') LOOP

    l_emp_tab.extend;

    SELECT XMLELEMENT ("ABCD",

    XmlElement ("ID", i.ID))

    IN l_emp_tab (i)

    FROM dual;

    END LOOP;

    SELECT XMLELEMENT ("EMP"

    XMLAGG (t.column_value))

    IN p_emp_info

    TABLE (l_emp_tab) t;

    -Dbms_Output.put_line (getclobval (1,2));

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_Output.put_line(SQLCODE||) SQLERRM);

    END;

    I'm using this query, but it gives me an error that the expression is of the wrong type on this line {IN l_emp_tab (I)}

    I am unable to find the error what I'm missing here!

    You have changed the data type of I the example that Odie that gave you in

    repeating nodes using loop but when XML string concating then concating only last iteration of the loop FOr?

    In his case, I was a number.  In your code above, I have now is the set of rows in a cursor.

    You can rewrite your version to look like

    declare
      p_emp_info     XMLTYPE;
      l_emp_tab      xmlsequencetype := xmlsequencetype();
      l_pos          PLS_INTEGER;
    
      CURSOR c_info IS
        SELECT id
          from emp
         WHERE emp_name='ABC';
    
    BEGIN
    
      FOR r_info IN c_info LOOP
        l_emp_tab.extend;
        l_pos := c_info%ROWCOUNT;
        SELECT XMLELEMENT("ABCD",
               XMLELEMENT("id",r_info.id))
          INTO l_emp_tab(l_pos)
          FROM dual;
      END LOOP;
      SELECT XMLELEMENT("EMP"
                           ,XMLAGG(t.column_value))
        INTO p_emp_info
        FROM TABLE(l_emp_tab) t;
    
      --Dbms_Output.put_line(p_emp_info.getclobval());
    END ;
    

    You can use the % c_info number of LINES in the INTO clause, hence the l_pos.

    Or you can rewrite to be

    declare
      p_emp_info   XMLTYPE;
      l_clob       CLOB;
    BEGIN
    
      SELECT XMLElement("EMP",
               XMLAgg(XMLElement("ABCD",
                        XMLElement("id",e.id))))
        INTO p_emp_info
        FROM emp e
       WHERE emp_name = 'ABC';
    
      SELECT XMLSERIALIZE(DOCUMENT p_emp_info AS CLOB)
        INTO l_clob
        FROM DUAL;
    
      Dbms_Output.put_line(l_clob);
    END;
    

    Both produce the same XML file.

  • DONKEY with AIR 22 update no longer works

    Hello

    I have a DONKEY simple that file sharing.

    It was built with AIR 19.0 and Xcode 6.1.

    I want to update AIR 22, but you have successfully updated the iOS SDK, I have installed XCode 7.3, base SDK is 9.3 iOS and iOS deployment target is iOS 9.0.

    I have a platform.xml like that.

    <sdkVersion>9.0.0</sdkVersion>
        <linkerOptions>
            <option>-framework AudioToolbox</option>
            <option>-framework AVFoundation</option>
            <option>-framework CFNetwork</option>
            <option>-framework CoreFoundation</option>
            <option>-framework CoreGraphics</option>
            <option>-framework CoreLocation</option>
            <option>-framework CoreMedia</option>
            <option>-framework CoreVideo</option>
            <option>-framework Foundation</option>
            <option>-framework MobileCoreServices</option>
            <option>-framework OpenGLES</option>
            <option>-framework QuartzCore</option>
            <option>-framework Security</option>
            <option>-framework SystemConfiguration</option>
            <option>-framework UIKit</option>
            <option>-framework ImageIO</option>
            <option>-framework CoreTelephony</option>
        </linkerOptions>
    

    My code to share a file is, in objective-C, where the variable URL is a URL, the path to a local file

    @try {
       
                UIViewController * controler = [[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController];
               
                UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:nil];
                //activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll]; //or whichever you don't need
               
               
                UIPopoverController *popup = [[UIPopoverController alloc] initWithContentViewController:activityVC];
                [popup presentPopoverFromRect:CGRectMake(0,0,0,0) inView:controler.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
            }
            @catch (NSException *exception) {
                DISPATCH_STATUS_EVENT(context,"DEBUG_TRACE", (const uint8_t*) [exception.reason UTF8String]);
            }
    

    I have this error in execution: *-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil objects [0] object

    UIPopoverController is obsolete now, I triied to update my code, as a result of this http://www.goxuni.com/672368-adding-a-share-button-to-an-objective-c-ios-app/

    And the result is:

    @try {
                UIViewController * controler = [[[[UIApplication sharedApplication] windows] objectAtIndex:0] rootViewController];
                
                
                NSArray *activityItems = @[URL];
                UIActivityViewController *activityViewControntroller = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil];
                activityViewControntroller.excludedActivityTypes = @[];
                
                activityViewControntroller.modalPresentationStyle = UIModalPresentationFullScreen;
                if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
                {
                    activityViewControntroller.popoverPresentationController.sourceView = controler.view;
                    activityViewControntroller.popoverPresentationController.sourceRect = CGRectMake(controler.view.bounds.size.width/2, controler.view.bounds.size.height/4, 0, 0);
                }
                [controler.self presentViewController:activityViewControntroller animated:true completion:nil];
                
            }
            @catch (NSException *exception) {
                DISPATCH_STATUS_EVENT(context,"DEBUG_TRACE", (const uint8_t*) [exception.reason UTF8String]);
            }
    

    The error is the same: *-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil objects [0] object

    I really don't understand why it worked before, and now with new AIR SDK, Xcode new and new iOS SDK, it does not work.

    That's Ok with the last AIR 22 SDK

    Bug #4146925 - ANE compiled with AIR 22 no longer works

  • In v31.0, I can view is more 'raw' XML files with line breaks and ' &lt; ' and ' / &gt; ' characters. Is there a setting that will give me this option?

    Until a few days ago when I opened a file XML with Firefox, I see the content of the file appears with line breaks and ' < ' and ' / > ' and elements. Like this:

    fixed image in < typeOfResource > < / typeOfResource >

     <genre authority="marcgt">picture</genre>
     <genre authority="nmc">Print, Photographic</genre>
     <originInfo>
       <dateIssued encoding="marc">1884</dateIssued>
       <dateIssued encoding="marc">1884</dateIssued>
       <issuance>monographic</issuance>
     </originInfo>
     <language>
    

    Now, it will display like this:

     still image picture Print, Photographic 1884 1884 monographic eng electronic
    

    No tags or line breaks. I need to see the entire XML file. How can I configure FireFox to display this for me? One of my colleagues uses v31.0 and XML views with tags and the line breaks for him.

    For example, I was looking at files sitemap.xml (search Google for inurl:sitemap.xml). For those who have not declared a style sheet, you should always see the classic "source highlight: presentation

    Example: http://www.website.com/sitemap.xml

    Are the files that don't appear as similar planned by not declaring a style sheet?

    As a temporary workaround, you can view the source to see the original. Either:

    • CTRL + u
    • Right click > view Page Source
  • apple mouse is bluetoothed with air of the ipad 2

    apple mouse is bluetoothed with air of the ipad 2

    N ° the iPad is not programmed to have a cursor.

  • Cisco WLC 2504 with AIR-AP1131AG-A-K9

    Hello

    Can you help me for some info about AIR-AP1131AG-A-K9.

    I have a wlc 2504, but I don't know if the AIR-AP1131AG-A-K9-supported 2504 wlc.

    Can work this WLC 2504 with AIR-AP1131AG-A-K9 solution?

    If so, guide.

    Thank you very much

    Gezimv

    Check out this link. As long as you have software version 8.0.x 2504 version you can use 1131 AP with it. Nothing beyond software fate is more a series of support 1131.

    http://www.Cisco.com/c/en/us/TD/docs/wireless/compatibility/matrix/compatibility-matrix.html#56735

    HTH

    Rasika

    Pls note all useful responses *.

  • Replace the current XML node with another node in XML fragments

    Hello

    Please help, trying to replace an XML node with other fragments XML using XML DB, updateXML/deleteXML functions don't receive the desired result, on the front of the image below, this is what I have, and the transom is the replacement with new values XML fragment, I expect to see, there is a list of records from the XML that I need to open and do the replacement of the < broker-retail > according to the number of records to be inserted.

    Before the photo:

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 1000947836 < / broker-entity-not >

    < broker-pct > 100 < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >


    After photo (expected result):

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 65656524 < / broker-entity-not >

    < broker-pct > 25 < / broker-pct >

    N < principal > < / main >

    < / broker-retail >

    <broker-retail >

    < broker-entity-not > 122224444 < / broker-entity-not >

    < > 75 broker-pct < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >

    Kind regards

    Qwestion

    You can use DELETEXML and INSERTCHILDXML

    SQL> set long 10000
    SQL> column xmldata_new format a100
    SQL> set linesize 150
    SQL>
    SQL> with t
      2  as
      3  (
      4  select
      5  xmltype('
      6    0
      7    LISP
      8    
      9    
     10      1000947836
     11      100
     12      Y
     13    
     14  ') xmldata from dual
     15  )
     16  select xmlserialize
     17         (
     18             document
     19             insertchildxml
     20             (
     21                deletexml
     22                (
     23                    xmldata
     24                  , '/broker-benefit-link/broker-detail'
     25                )
     26              , '/broker-benefit-link'
     27              , 'broker-detail'
     28              , xmltype
     29                (
     30                '
     31                    
     32                        65656524
     33                        25
     34                        N
     35                    
     36                    
     37                        122224444
     38                        75
     39                        Y
     40                    
     41                 ').extract('/broker-master/broker-detail')
     42             )
     43             as clob indent size = 2
     44         ) xmldata_new
     45    from t;
    
    XMLDATA_NEW
    ----------------------------------------------------------------------------------------
    
      0
      LISP
      
      
        65656524
        25
        N
      
      
        122224444
        75
        Y
      
    
    
    SQL>
    
  • Android: Maintain 2 builds with Air 19 and 22 air

    Hi all

    I want to update our games with a 22 Air version so that all users will be able to play with N installed Android. At the same time, we would continue to support Android 2.x with Air 19.

    I've done that I have created a version of our application with the code with Air 22 x.x.20 version and a version with Air 19 x.x.10. My expectation was that Google would send all users with Android 4 or more recent version Air 22 and all users with the version of Android 2.x 19 Air. However, when I download the version x.x.10 of Google game I get the error message: all configurations that could receive x.x.10 receive x.x.20 instead. Which means that play Google does not identify the accumulation of Air 22 as incompatible on Android 2.x, is that correct?

    What needs to be done to support both versions?

    Thank you in advance.

    rewb0rn wrote:

    I should the minSdkVersion 14 for Android 4 value and more, correct?

    Yes, this should make the build, only available for devices running Android 4 +.

    rewb0rn wrote:

    But more important still, how do I find what targetSdkVersion is supported by the current Air SDK?

    I don't know if this is documented somewhere, however, I remember having seen devs problems AIR when you explicitly set the value of targetSdkVersion at 23. They ended by assigning the value 19. See this link for more information. I don't know if this problem is fixed in AIR SDK 22. You should not need to 23 but in order to make it work on Android 6 +.

  • portrait iPad with AIR problems

    Hello

    I need to develop an app for ipad, with portrait orientation. I set the resolution 768 x 1024 BUT publishing for AIR, I can't resize the stage, I can't see the bottom of the screen on my Mac book pro 13 "RETINA!

    Schermata 2015-10-12 alle 07.59.44.png

    usually, when I develop for SWF, I can stretch and resize the window, but I can't do it with AIR.

    ANY HELP?

    Massimo

    Select "full screen" in the air from the ios settings panel.

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • How to replace a part of the structure XML text with an image.

    I need to replace specific items within my XML structure with a picture and I have problems using the existing XML structure for that.

    I was expecting something as simple as myDoc.xmlElements [0] .xmlElements [0] .xmlElements [0] .silence = new File ("MyImgPath.ext");

    I can use GREP to search the text of each item in my XML structure I want to replace the text, place the image and the result is what I want.  However, in the rare case where the same text as the header, is in one of the paragraphs he too would be replaced by the image and we can have.

    My XML structure is slightly more complicated, but this example contains the necessary elements:

    > Root

    > Group

    > Header

    > Article

    Well, I managed to find a solution to my problem.  I don't know if it's the best way to go about this, but it works for me.

    myDoc var = app.open ('/ / the/path/to/my/doc ', OpenOptions.OPEN_COPY);

    var myDoc.xmlElements = myXML [0] .xmlElements [x] .xmlElements [0];

    var myImg = new FIle ('//path/to/my/image');

    myXML.contents = "; To clear all the text

    myDoc.select (myXML); Selects the xmlElement

    myDoc.selection [0] .insertionPoints [0] .place (myImg); Place the image in the selection

  • Very strange bug with AIR and native process (Windows 7, EXE)

    Hi all!

    The situation is:

    I did an Application AIR, inside which a native process - running EXE file.

    I use Flash CC as IDE and tried to use the compilation as EXE with AIR 2.6 and 3.6 - results are the same.

    So I insert inside a control if the nativeprocess is supported or not and the native process is supported all the time.

    When I come to install the application and run it - the first attempt is good - everything works as a must: internal EXE is called by my Application with the necessary parameters so long I need.

    However if I close the application, then if it run not new - internal EXE is not starting at all, depends on number of attempts to restart the application.

    Then only is to uninstall, install back and then you'll be a session more successful EXE-internal requests, until the forthcoming resumption of the application.

    That's all.

    I tried to "google it" but without success. The bug is probably very rare.

    Help me please?

    Update: compiling with the Flash IDE of CC, he works all the time with no problems.

    Update-2: when I run EXE installator, there will be a notification "same version is installed, etc.', then choose 'Run Now' - he also works without any problem.

    Well, I found the solution and the answer by myself and it is here please:

    In the case with the same situation above, you will need to add a single line in your AS3 code

    nativeProcessStartupInfo.workingDirectory = File.applicationDirectory;

    And you will be so happy

  • With Air 3.4 for IOS, how iPhone 5 are they treated?

    I've developed an application with Air 3.4 for IOS and it seems that the iPhone 5 automatically centers the application using the settings of the iPhone 4 960 x 640, rather than 1136 x 640. Is this correct? I have full-screen enabled in the settings of my 3.4 Air.

    If you include the splash [email protected] image, which would be a 640 x 1136 (your boot of landscape image rotates 90 degrees), it is enough for the iPhone 5 knowledge to fill the entire screen.

    However, if you have downloaded the app to iTunesConnect then, it would probably fail. This is because the standard AIR 3.4 ADT.jar file does not use iOS SDK 6.0. You can move using AIR 3.5 (http://www.adobe.com/devnet/air/air-sdk-download.html), or by getting the patched the ADT.jar file version (see this thread: http://forums.adobe.com/thread/1073656, in particular the "correct" answer upward).

    Once you have built with either 3.5 air, or used the ADT.jar of AIR 3.4 patched version, and you have the picture of [email protected] included, everything should be good.

  • Compatible devices with air?

    Hello

    I saw a table of supported devices in the center of development, with air, but it does not any iOS device, just Android, apple is not on the list. ALL iOS devices are compatible? or just some versions?

    Thank you!

    The requirements for AIR on iOS are

    iPod Touch 4th generation, iPhone 3GS or 4, iPad

    OS 4 or later version

  • Large (or really good... or even just good) games developed with air?

    Someone at - it links, articles or video clips, games, or applications developed in the AIR? Apps only I was able to find coverage of

    are those created by Bowler Hat games. They are perfectly respectable, but I'm curious to see what others have managed to do with air.

    This thread has some http://forums.adobe.com/thread/894327?tstart=30 examples

    Maybe the guys at Adobe should put a gallery or something together?

Maybe you are looking for