XML node from another file

I'm trying to access different areas of two different xml files. Well, one is a mxml file. Anyhoo, here's the code in my main file:
< mx:Label text = "{cat.product. () @productId is?). name}"fontWeight ="bold"/ >
I am to reach the cat.xml of XML with name and product of the nodes. I fill a tilelist with the said file component. When the user clicks on the button in the display of the tilelist, I display state change so that they can see the details of the tile on what they clicked. However, I need to know what tile to display the details correctly. So, how can I fill the productId field based on the tile, the user chose?

Thank you

So much worse... added an 'id' to the tilelist and then selectedItem.xmlnode. I spent a lot of time on it and it was too easy. Unfortunately, this is how it usually goes.

Tags: Flex

Similar Questions

  • Can I find and replace an object? And I can copy styles from another file InDesign?

    Hi all

    I hope someone has a solution to these two...:

    First, I have a line object between two text frame, and I want to change the thickness and color, no problem, it's

    the problem is I have 100 of them and now I'm a one, is it all find and replace for an object?

    Secondly, is it possible to copy a style from another file InDesign without synchronization of all styles in a book file?

    I'll be very grateful for an answer!

    Thank you

    Vraja

    In the find and Replace dialog box, there is a tab object. You can find your line by its attributes and change. I suggest the setting up and style object and replace all your lines of this style. In this way, the next time you need to change them, you can change the style.

    Regarding the copy of a style of an InDesign document to another. You can just copy something to the style and paste it into the document you want to move to.  (This will not work if the style of the same name exists in the file you are pasting to. In this case, your stuck item would take on the attributes already defined in the new file).

  • I can automatically fill a PDF form with data from another file of the Government?

    I need to be able to insert automatically the data into a PDF form to print.  I can create the data file with alpha and numeric values to be inserted into the form.  Is there a way to merge/package/combine without action from the user to slide, falling, or gluing?

    It would be on a platform Windows (ideally for XP and Windows 7).

    Hi Mike,.

    Yes you can import data to a PDF file from another data file using option "Import data" in Acrobat. AXI supports the .fdf, the .xfdf, the .xfd, .xml and .txt file formats. I'm not sure the version of Acrobat you have, but here I am you provide the links of the AXI and AX online help documentation. Please post back if you need more information:

    AXI: http://help.adobe.com/en_US/acrobat/using/WSE8580964-0716-4452-BA8D-EA9AAD3F6091.html#WSDD 95883E-EB9B - 409 b-8C7C-33E0DAE68FFE

    AX: http://help.adobe.com/en_US/acrobat/standard/using/WSDD95883E-EB9B-409b-8C7C-33E0DAE68FFE. html

    ~ Sandeep V.

  • 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>
    
  • XML: loading from a file vs using AS

    The code below fails to load the mxl, but if I put the XML in a file and use
    < mx:XML id = "tempXML" source = "cuePoints.xml" / > "
    It loads. What must I do to make the XML to load from the inside of the mxml file?

    NO, DO NOT USE THE TEMPLATE TAG! which converts your beautiful XML in a hideous tree of dynamic objects. Don't, don't.

    Your problem is simply that you forgot to call the init() function. Call it since the event creationComplete on the Application tag and you will be fine.

    Tracy

  • How to stop incorporation of art linked from another file .ai Illustrator?

    I create a file for updating the images to print multiple files (e.g. changing a logo in the main file will update on several print templates when they are open), I did this by recording the main file with one .eps with individual work plans. Then, I'm going to the print template and place the art where it is needed and save. When I update the logo in the main file, it will change and be placed where I need already to save time. EPS files are slower and more files have when they are used as links, but when I try the same thing with an instead of an eps links .ai file automatically integrate into the fence. Is there a way to prevent embedding links when I close the file if the hand is an AI instead of an eps?

    [Left the forum Cloud/Installer generic for program specific forum... MOD]

    Uncheck the box in the second (second image) dialog box that says include linked files. This is what causes the embedded files.

  • How do I get the content from another file and paste it into the active document instead of certain string?

    I am newbie in indesign scripting of animals. So I apologize because I couldn't post my essays.

    Objective:
    I have a .indd document which will be a figure of legend, label etc. I need to copy the content (a figure that is editable) else file indd of this document where the tag figure exists.

    For example:
    Sample.indd

    Some text Fig.1.1 caption some text 

    I need to copy the contents of figure1.indd and paste in the document sample.indd where Fig.1.1 string exist and so forth. Now I do it manually. But am supposed to automate this process.

    So, I need some hint how to do it using extendscript?

    I found something like below, to do so, but I have no idea to develop it further and also do not know if this approach is correct my results. Please help me

    myDocument=app.open(File("file.indd"),false); //opening a file to get the content without showing.

    myDocument.pages.item(0).textFrames.item(0).contents="some text"; //here I could set the content but I don't knw how to get the content

    // ?????? Then I have to paste the content into active document.

    Try this test nicely to your and end, hope this will help you.

    var myDoc = File("/D/Sample.indd");//Figure File
    var myFigDoc = File("/D/Figure.indd");//Destination File
    app.open(File(myFigDoc));
    app.activeDocument.pageItems.everyItem().select();
    myObj = app.selection;
    var myGroup = app.activeWindow.activePage.groups.add(myObj);//Grouping the objects
    myGroup.select();
    app.copy();
    app.open(File(myDoc));
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "Fig 1.1";//Figure caption text
    app.findGrepPreferences.appliedParagraphStyle = "FigureCaption";//Figure Caption Style
    myFinds = app.activeDocument.findGrep();
    for(var i=0;i		   
  • Call a project from another file

    Hello

    I have 2 projects, one as a BB app and the other as a library. The main project of BB Application uses some of the classes in the library project. It works fine if I import the library jar in my BB application project. But now I want to do the vice cersa, I have a folder of Images in the project of BB I want to access the library project. Is there a way I can create a main project within the library reference?

    Appreciate any help...

    Not a library cannot depend on an application

  • XML from a file path

    Hello

    I'm trying to create an XML OBJECT from a stream, but I can't do .

    Someone knows a way to create an XML object from a file path (xml)?

    PS: I'm trying to create a TABLE with the information contained in an XML file.

    Please,

    I really need help!

    Hello

    You need read this disk file from a stream.

    std::string inStr = "C:\yourPath.xml."

    InterfacePtr m_stream (StreamUtil::CreatePointerStreamRead (const_cast(inStr.c_str ()), inStr.size ()));

    Then you PASE this flow

    I use the DOM parser

    InterfacePtr serviceRegistry (gSession, UseDefaultIID());
    InterfacePtr xmlDOMProvider (serviceRegistry-> QueryServiceProviderByClassID (kDOMParserService, kDOMParserServiceBoss));
    InterfacePtr domServices (xmlDOMProvider, UseDefaultIID());
       
    IIDXMLDOMDocument * m_root = domServices-> Parse (m_stream);
    m_Stream-> Close();

    And then, for each node create a table cell.

    Maybe there is an easier way to do it. Perhaps using some import filter.

    Concerning

    Bartek

  • Import data from CSV file

    Dear friends,

    I have already created the directory DIR1.

    I get the following warning message

    1 CREATE OR REPLACE PROCEDURE P2
    2 is
    3 BEGIN
    4. create table (ext_table_csv1)
    5 I have the number,
    Varchar2 (20) n 6,.
    7 m Varchar2 (20)
    4%
    9 organization external)
    type oracle_loader 10
    By default 11 Dir1 directory
    (settings) 12 access
    13 records delimited by newline
    14 fields completed by «,»
    15 field missing values are null
    16)
    17 location ("file.csv")
    18)
    19 reject limit unlimited;
    20 * END P2;
    QL > /.

    CAUTION: Procedure created with compilation errors.

    QL > show err
    rreurs for PROCEDURE P2:

    ERROR OF INE / COL
    ------- -----------------------------------------------------------------
    / 1 PLS-00103: encountered the symbol "CREATE" when expecting one of
    What follows:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while < ID >
    < between double quote delimited identifiers of > < a variable binding > < <
    Close current delete fetch locking insert open rollback
    SAVEPOINT SQLExecute set pipe fusion commit forall

    Please help me.

    NGK246 wrote:
    If at all, I want to recover data from another file CSV (say 'test20101214.txt') to the external table defined so I just need to
    change the location of the CSV pointing to the table, as shown below...
    run immediately "change the location of the table ext_test (" test ' |) " to_char(sysdate-1,'YYYYMMDD') |'. txt ")';
    And then use INSERT... SELECT to inject data into my actual table residing on my database.

    Please correct me if I'm wrong.

    Yes, that's about all.

  • Reading an XML file and write the content in another file xml in java

    Hello

    I'm new to xml parsing. My requirement is that I get a message (xml) using ibm MQ in the ByteArrayInputStream format. I read this xml message and write to another file.

    To do this, I create a CEP.

    First of all, I used simple reading and writing concept, but the output is "java.io.FileInputStream@3e25a5".
    Example of xml file
    -< customer >
    < > 1234 ClientId < / ClientId >
    STechnology < ClientName > < / ClientName >
    < DTU_ID > 567 < / DTU_ID >
    < ClientStatus > ACTIVE < / ClientStatus >
    -< LEAccount >
    < Customer > 678989 < / customer >
    < > 56743 LEId < / LEId >
    -< account >
    < AccountNumber > 9876543678 < / account number >
    < / account >
    < / LEAccount >
    -< Service >
    Y2Y < Cindicator > < / Cindicator >
    < PrefCode > 980 < / PrefCode >
    < BSCode > 876 < / BSCode >
    < MandatoryContent > MSP < / MandatoryContent >
    < / service >
    < / customer >

    Code:


    import java.io.ByteArrayInputStream;
    import java.io.FileInputStream;
    to import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;

    public class ByteArrayInputStreamToXml {}

    Public Shared Sub main (String [] GIS) throws IOException {}

    InputStream inputStream = new FileInputStream("C:\\soft\\test2\\sample1.xml");
    currentXMLBytes Byte = inputStream.toString () .getBytes ();
    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream (currentXMLBytes);

    OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
    int read = 0;
    ubyte bytes [] = new byte [1024];

    While ((read = byteArrayInputStream.read (bytes))! = - 1) {}
    out. Write (bytes, 0, read);
    out. Write ("\n");
    }

    inputStream.close ();
    out. Flush();
    out. Close();

    System.out.println ("new file created!");

    }

    }

    Please suggest me how can I use DOM/SAX parser, I see several code on the net to read the xml file using SAX/DOM parser, but write an xml file after reading using ByteArrayInputStream I don't get. Assistance through some link examples will also be useful for me.

    Thank you
    Sumit

    Published by: user8687839 on April 30, 2012 02:37

    Published by: user8687839 on April 30, 2012 02:43

    user8687839 wrote:
    But the file is coming thanks to a queue and byte format. Must read the byte, and write to a file. So, how I tried to read the byte using the code above. Please suggest me the correct way.

    Simply write the bytes of the contents of the queue directly to a FileOutputStream. Still no need to SAX or DOM!

    Pseudo-code-

    Open a FileOutputStream .
    
    Until all the bytes of the queue have been read
        read some bytes from the queue.
        wite these bytes to the FileOutputStream.
    
    Close the FileOutputStream.
    

    Published by: sabre150 on April 30, 2012 11:30

  • Access to multimedia files from another server problem

    Currently I am working in a project with streaming video on-demand and using FMS 4.5 .


    " Say the FMS is installed on a machine say ' 121.123.35.34 ' and there is another server"100.54.88.222". where all media files belong Now we need point to this third-party server to play videos of FMS. I did the changes below:

    In the fms.ini file: set VOD_DIR2 = \\100.54.88.222\myvideos

    In the application.xml: added stream: streams >/HR; ${VOD_DIR2} < / flow >

    My request for access to the path of the flv as: source = "rtmp: / / 121.123.35.34:1935/vod/hr/test. Not able to access the video.


    Note: If I say "C:hrvideos" in VOD_DIR2, then I'm able to access videos using the same URL.


    I also tried mapping the path shared the machine to the FMS and then saw the drive mapped path in the VOD_DIR2, but it does not work.

    Please let me know:

    1. If we set up any other parameter videos from another server.
    2. VOD_COMMON_DIR: I modified this similar to VOD_DIR in the directory "C:hrvideos", I am able to stream videos with http, rtmp, but not the jet of abl eto.

    Please let me know we can disseminate via http too as we need to run the f4m manifest file.

    http://121.123.35.34:8134/vod/hr/sample.mp4.

    http://121.123.35.34:8134/vod/hr/sample. F4M


    Thank you

    Anjali

    Hello

    For RTMP: Try mapping to another server.

    For HTTP: Yesy you can change the DocumentRoot directive, but then it will search for content in this folder for all types of applications and not just HDS VOD.

    To configure only HDS - VOD, positioned on the HttpStreamingContentPath:

    Change this HttpStreamingContentPath '... / webroot/vod " to HttpStreamingContentPath" C:/hrvideos "

    Note that the location is now absolute and oblique. Likewise, you can put in a network address.

    Thank you

  • Import data from another browser - only a few favorite IE9 are transferred in bookmarks. Solution HTML - HTML file all Favorites OK, but same result

    Win7 / IE9: use for the first time. Example: A folder of Favorites has 4 entries HTML - only 2 transferred. Some have none transferred - empty folder. Others have correct random + some disappeared persons.

    All of Monday
    I can see the full list of favorite IE9 HTML in HTML file on desktop with Firefox-> new tab-> open file-> open
    .
    In the desktop HTML file, there are 37 files IE9 with no more nesting 3 deep in all of a high. They are all correct wrt favorite IE9.

    All records albums + deeper nests are copied in FF ok. Random content. Copied content works ok

    7 unassigned to IE9 HTML web sites best records are also copied <-these 7 copy on FF and work well

    Example: First file in the list of IE9 has no nesting., IE9 has 4 entries - Firefox has only 2. What other method of reproduction is used.

    BTW - please let know us how I can delete entire list of bookmarks in Firefox button to try again with a clean list of bookmarks

    I'll uninstall Firefox and start over with a clean copy and use the HTML only method to try to transfer IE (files. I'll bring result.

    BTW, I'm in the United Kingdom at the time of UK - where delays to answer - need to sleep sometime!

    Tuesday night

    Hello

    I uninstalled Firefox. Re installed and loaded with favorite IE9 to HTML file.

    All seem to be copied correctly

    First time that I started using the "import data from another browser. Partial is copied.
    Then I tried 'Import HTML file' without deleting any favorite had been copied. Always partial copied.

    Everything seems fine.

  • Cannot open a pdf Pages, I made by those who that I sent. Another file is a pdf from Adobe that they handled without problem. What is the problem?

    Cannot open a pdf Pages, I made by those who that I sent. Another file is a pdf from Adobe that they handled without problem.

    What is the problem?

    The pdf of the Pages is limited to Mac users?

    You export a Pages document in PDF format, or you choose File menu: print... and choose the PDF button and then save as PDF... Fix?

    And now, others say that they cannot open this PDF on Mac? On PC? On Linux? Using this PDF reader?

  • How to access a shared file on my RN212 NAS remotely from another program?

    I've looked everywhere trying to find how to access a shared file on my RN212 NAS remotely from another program (kodi) on my iPhone 6 more remotely, away from home. I tried to FTP, UPnP, HTTP, etc. anything and it's driving me crazy! I run the program kodi from my phone for watching videos stored on my SIN, I have a router NightHawkR7000 and believe that I am fairly warned to get this figured out, but apparently not lol I have all the correct ports forwarded, but perhaps I'm missing a step somewhere. Any help on this would be much appreciated!

Maybe you are looking for

  • The Adaptive brightness sensor issue

    Hello I have an Aspire 571 V5 Windows 8 My screen never turns off automatically brightness adjust so it keeps dimming in light to dark every minute very annoying, I think that is because of the Adaptive brightness of sesnor on the laptop. I went to t

  • User name and politics of GOSA OSB 11 g

    HelloI hope someone can help I have a Proxy Service from OSB (11.1.1.7) which is attached with GOSA oracle/wss_username_token_service policy and what I want to do is in addition to authentication, I would like to have access and use the user name of

  • Name/Description of the accessibility not read by JAWS

    I have a course, built in 9 Captivate, which works very well in all areas except for one thing.  JAWS will read the names/descriptions of accessibility on the images.  I published it so a SWF in HTML5, but the result is always the same: the launch of

  • Adobe &amp; Google really use this tactic TERRORIST of conspiring to force me to use Google Chrome?

    Adobe Flash Player one day mysteriously just STOPPED working while I was on Facebook, I used through Internet Explorer, my browser of choice since the dawn of time. Although Flash Player has been activated, and I re-downloaded just to be sure, he has

  • How to add an additional note between &lt; ROWSET &gt; and &lt; ROW &gt;

    Hi allIs there a way to add an additional NŒUD between < ROWSET > and < ROW > which appears ONCE per each XML document?<? XML version = "1.0"? >rowset < ROW >< > 7369 EMPNO < / EMPNO >SMITH < ENAME > < / ENAME >CLERK of < JOB > < / JOB >< MGR > 7902