Add the XML into another XML code

Let's say I have a data XML that looks like this:

< VFPData >

< issuedetails >

26 / < ID > < id >

< > 04000 custno < / custno >

< / issuedetails >

< sku35576 >

< action > audit of existing inventory < / action >

< selected > false < / select >

< / sku35576 >

< / VFPData >

I would like to add to this XML file, the following XML:

< VFPData >

< sku35578 >

< action > audit of existing inventory < / action >

< selected > false < / select >

< / sku35578 >

< / VFPData >

So it will look like this:

< VFPData >

< issuedetails >

26 / < ID > < id >

< > 04000 custno < / custno >

< / issuedetails >

< sku35576 >

< action > audit of existing inventory < / action >

< selected > false < / select >

< / sku35576 >

< sku35578 >

< action > audit of existing inventory < / action >

< selected > false < / select >

< / sku35578 >

< / VFPData >

Thanks for help.

I'm thinking the first xml as "one" and the other as two

one.appendChild (two sku35578);

Tags: Flex

Similar Questions

  • HTTPService read only not update xml, I had manually update the xml code in my browser

    I called a HTTPService (id = data2php) that runs a php script that creates an xml doc and put it on my server. I then called another HTTPService (id = feedRequest) that reads the xml document, then I try to fill a datagrid with the lastResult my HTTPService that reads the xml doc. My question is that the HTTPService that reads the xml doc reads the previous incarnation of the doc xml, not the newly created that created my HTTPService (data2php). I've been manually the xml doc is going in my browser and hit refresh for my HTTPService feedRequest to read the updated xml code.

    Here is the mxml for the httpservice that reads the xml file:
    "" < mx:HTTPService id = "feedRequest" url = " http://cfcdi.org/eric/dashboard/php/sales.xml" result = "feedResult (event)" resultFormat = "xml" useProxy = "false" / > "

    pretty simple.

    (in fact, from time to time it will read the updated)

    N ° dummy Variable like this:

  • How to add the XML attribute to an element using BPEL assign

    I have a xml request to a bpel process that contains no attribute.
    After some process, I need to create this missing attribute and specify a value.

    I tried to use the XML fragment in the business to be divested. But how do I create an attribute?
    This XML node which I am trying to create an attribute is a very large knot with many dynamic typing(xsi:type). I can just re - create the complete xml code with the required nodes.

    Anyone know how I can create an attribute xml using the BPEL entitlement? I don't want to use the Java code in my process.

    Thank you.

    You can use the attribute bpelx:insertMissingToData on the item to copy, for example:




    Query="/client:process/@time"/ >

    If not there is time of the attribute in the process element, it will be added.

  • Save the XML code that is generated in an XML file

    The following code creates an XML object and the function executes a query from Salesforce and fills the XML object with the results.

    How would I go about recording these XML data in a file, say "data / devNotes.xml"?

    [Bindable]
    private var myDevNotes:XML = < notes > < / notes >;

    private function loadDevNotes (): void
    {
    Request deleted for brevity code
    for (var j: int = 0; j < qr.records.length; j ++)
    {
    var newNote:XML =
    < notes sfid = {qr.records [j]. ID} >
    < name > {qr.records [j]. Name} < / name >
    < detail > {qr.records [j]. QA_Detail__c} < / details >
    < createdBy > {qr.records [j]. CreatedById} < / createdBy >
    < lastModified > {qr.records [j]. LastModifiedDate} < / lastModified >
    < / note >;
    myDevNotes = myDevNotes.appendChild (newNote);
    }
    }

    In the AIR, there is quite a bit easier to do what you want. Here is a code example:

    private function save_xmlData (): void {}
    var xmlFile:File = File.applicationStorageDirectory; File.documentsDirectory or File.desktopDirectory
    (xmlFile = xmlFile.resolvePath('data/devNotes.xml"');
    var outputString:String = myDevNotes.toXMLString ();
    outputString = outputString.replace (/ \n/g, File.lineEnding);
    var stream: FileStream = new FileStream();
    Stream.Open (xmlFile, FileMode.WRITE);
    stream.writeUTFBytes (outputString);
    Stream.Close ();
    }

    Vygo

  • Saving to and read the XML code

    Hi, I wanted to just record in XML data and display it in the list. That's what I tried:

    #include "applicationui.hpp"
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    using namespace bb::data;
    
    ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
            QObject(app)
    {
    
        QVariantMap firstEmployee, secondEmployee;
    
        firstEmployee["firstName"] = QVariant("Mike");
        firstEmployee["lastName"] = QVariant("Chepesky");
        firstEmployee["number"] = QVariant("51649875");
        secondEmployee["firstName"] = QVariant("Westlee");
        secondEmployee["lastName"] = QVariant("Barichak");
        secondEmployee["number"] = QVariant("63257801");
    
        QVariantList myEmployeeList = QVariantList() << QVariant(firstEmployee)
                                   << QVariant(secondEmployee)
    
        QVariantMap topLevelEmployeeMap;
        topLevelEmployeeMap[".root"] = QVariant("employees");
        topLevelEmployeeMap["employee"] = QVariant(myEmployeeList);
        QVariant myData = QVariant(topLevelEmployeeMap);
    
        QTemporaryFile file("myXMLFile.xml");
    
        if (file.open()) {
    
            XmlDataAccess xda;
            xda.save(myData, &file);
        }    Page *root = new Page;
        ListView *listView = new ListView;
    
        GroupDataModel *model = new GroupDataModel(QStringList() << "firstName"
                                                   << "lastName");
    
        XmlDataAccess xda;
        QDir temp = QDir::tempPath();
        QVariant list = xda.load(temp.absoluteFilePath("myXMLFile.xml"),
                                 "/employees/employee");
    
        model->insertList(list.value());
    
        listView->setDataModel(model);
    
        root->setContent(listView);
        app->setScene(root);
    }
    

    Reference: https://developer.blackberry.com/native/documentation/cascades/device_platform/data_access/working_w...

    But this does not seem to display the items in the XML file. any thoughts?

    QFile use instead of QTemporaryFile, that the file could be deleted after the close() call:

        QVariantMap firstEmployee, secondEmployee;
    
        firstEmployee["firstName"] = QVariant("Mike");
        firstEmployee["lastName"] = QVariant("Chepesky");
        firstEmployee["number"] = QVariant("51649875");
        secondEmployee["firstName"] = QVariant("Westlee");
        secondEmployee["lastName"] = QVariant("Barichak");
        secondEmployee["number"] = QVariant("63257801");
    
        QVariantList myEmployeeList = QVariantList() << QVariant(firstEmployee)
                                   << QVariant(secondEmployee);
    
        QVariantMap topLevelEmployeeMap;
        topLevelEmployeeMap[".root"] = QVariant("employees");
        topLevelEmployeeMap["employee"] = QVariant(myEmployeeList);
        QVariant myData = QVariant(topLevelEmployeeMap);
    
        QFile file(QDir::temp().absoluteFilePath("myXMLFile.xml"));
    
        if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
    
            XmlDataAccess xda;
            xda.save(myData, &file);
        }
        file.close();
        Page *root = new Page;
        ListView *listView = new ListView;
    
        GroupDataModel *model = new GroupDataModel(QStringList() << "firstName"
                                                   << "lastName");
    
        XmlDataAccess xda;
        QDir temp = QDir::temp();
        QVariant list = xda.load(temp.absoluteFilePath("myXMLFile.xml"),
                                 "/employees/employee");
        model->insertList(list.value());
    
        listView->setDataModel(model);
    
        root->setContent(listView);
    
  • I am trying to add the video into my Web Dreamweaver CS6 page

    I am trying to add video to my Web page. I did it before using Dreamweaver CS4, but I have problems with the CS6. The video was one. MOV, so I used the software to convert the video in. FLV. When I add the media to my Web page, but when I do a preview of the Web page, the video is a white box and the only thing that appears is the 'skin '.

    To add a bit of what Ben, if you have a YouTube channel, you can parse the XML feed into your web pages with PHP code.   There is a nice video tutorial below that describes how do.

    SimpleXML PHP tutorial learn how to analyze a FLOW RSS and XML files

    Nancy O.

  • How to add the mask into effect reference is Options for Composition with after effects CC 2014?

    The main reason why I'm updating my After Effects with cc 2014 is "composition for each effect options, including the ability to limit the area affected by each of the effects with masks". This useful feature really simplify my work. But now I realize that I want to use the script function.

    I get Composition Options the effect name and matchName.It looks like this:

    NameNameNameNamepropertyValueTypeRemove
    Composition optionsundefinedADBE effect built in Params
    MasksundefinedEffect ADBE Mask Parade
    Reference mask 1undefinedADBE effect mask
    Reference mask 1MASK_INDEXFlow path ADBE effect Ref
    Opacity of the effectOneDADBE mask opacity

    I try to use .canAddProperty ("ADBE effect mask") and .canAddProperty ("ADBE Path flow Ref effect"). However, it returns false.

    I found that add or delete this property in the user interface are the buttons '+' and '-', so maybe I can use app.executeCommand (app.findMenuCommandId (theCommand)); However, I can't find that button name because it does not have a helpTips to remind me of the name.

    So how do you add the mask with script reference? Or ESTK has no permissions to access this useful property so far? I have not found anything on the Internet.

    Moreover, I have an another two quick questions:

    1. If there is more than two masks in a layer, remove for each mask is the same ("ADBE Mask Parade") ("ADBE Mask Atom"). How can I use the Remove to get the second mask such as the name property? First I treat like a table, but ("ADBE Mask Parade") ("ADBE Mask Atom') [index] actually did not work, so that ("ADBE Mask Parade") (" ADBE Mask Atom'") (index) is referring to the child property altogether in the first mask. I have no idea about it.

    2. when I use the method property() with script, property ('effect'), and property("effect") are all the two ok. The only difference in the method is the single quotes ' and the Quotation brands "." I just want to know if the "and" have any difference in the method property (), except that "this color is blue" and "this color is purple" in ESTK.

    The advice and the answer would be appreciated.

    Yes you can add masks to the effects by script.

    If "fx" is a fx on a layer:

    var fx.compositingOption = co;                                  or fx.property ("ADBE effect Built In Params')

    var fxMasks = co.mask;                                            or co.property ("ADBE mask Parade"): INDEXED_GROUP j

    fxMasks.canAddproperty ("ADBE effect mask");    true

    var fxMask = fxMasks.addproperty ("" ADBE effect mask");

    fxMask.maskReference.setValue (1);                        or fxMask.property ("ADBE effect way Brook Ref") .setValue (1);

    If you can do short

    fx.compositingOption.mask.addProperty("ADBE Effect Mask").maskReference.setValue(1);
    

    Xavier.

  • Refresh the XML Code on a timer help? ¿

    Let me introduce myself very fast since I am a lurker for a long time and
    a the first time poster. I'm a graphic designer for a transport
    company, which is slowly transformed into a software developer (as it seems).

    That's what I'm doing:

    1. fill a datagrid with xml (got it)
    2. fill a datgrid with it (had it too)
    2 fills again each second(¿refresh?) with the same xml file, I'm
    using HTTPService to bring it but could not get a timer/setInterval to
    work not at all; If that's the best thing. ? ¿

    Here is my code; given its pretty basic I am a beginner...

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" initialize = "titleService.send ()" >

    < mx:Script >
    <! [CDATA]
    Import mx.collections.ArrayCollection;
    Import mx.rpc.events.ResultEvent;

    [Bindable]
    private var myData:ArrayCollection;

    private void resultHandler(event:ResultEvent):void {}
    myData = event.result.items.item;
    }
    []] >
    < / mx:Script >

    < mx:HTTPService id = "titleService".
    URL = "Data / datachart." XML ".
    result = "resultHandler (Event)" / >

    < mx:Panel title = "Graphics Demo.
    height = "325" width = "340" layout = "absolute" roundedBottomCorners = "true" x = "10" y = "203" >

    < mx:LineChart id = 'linechart' height = "100%" width = "100%" paddingLeft = "5" = "5" paddingRight
    showDataTips = "true" dataProvider = "{myData}" '0' = XY = "0" >

    < mx:horizontalAxis >
    < mx:CategoryAxis categoryField = "time" ticksBetweenLabels = "true" displayName = "Time" / >
    < / mx:horizontalAxis >

    < mx:series >
    < mx:LineSeries yField = form "lane_a" = "segment" displayName = "Lane A" / >
    < mx:LineSeries yField = form = 'segment' displayName 'Lane B' = "lane_b" / >
    < / mx:series >

    < / mx:LineChart >

    < mx:Legend dataProvider = "{linechart}" width = "99" x = "221" y = "0" / >

    < / mx:Panel >

    < mx:DataGrid dataProvider = "{myData}" height = "127" width = "222" x = "402" y = "355" / >
    < mx:Button label = "recharge" click = "{titleService.send ()}" = XY = "490" "402" / > "
    < / mx:Application >


    Any help would be great, I read through the livedocs and the help files, but I'm still stuck and can't get this code to work. Thanks again.

    Here is a complete example:
    http://www.CFLEX.NET/showfiledetails.cfm?channelId=1&object=file&ObjectID=560
    Tracy

  • Add the XML attribute

    Right now I work with a very simple .xml file that retrieves data ultimately resulting in the generation of run-time components. Here is a simplified version:

    < data >
    < article type = "Button" x = "50" y = "100" label = "Button 1" / >
    < article type = "Button" x = "50" y = "300" label = "Button 2" / >
    < / data >

    I figured out how to remove an attribute, such as the "label" with this:

    If (. name(). attributes() [i] myXML.item [0] == "label" "")
    {
    delete myXML.build.item [0]. attributes() [i];
    i-- ;
    }

    Now, the question is how can I add another attribute - like the "height"? Any help would be greatly appreciated. Thank you.

    Okay, I just stumbbled on the solution:

    x 1. @["name"] = "test 2"; "

    This seems to do. I don't know if the reverse works just not or if I did it all just bad. Thanks for your help.

  • Add the xml tag to specific words in a block of text

    Hi all

    I'm sure that it is not too complicated, but after hours of experimentation, research and reading, I can't look at it from the right angle. I'm trying to find a way to search for a specific word ('Figure' in my case) in a given text frame and add a corresponding XML tag automatically. I found a lot of information on how to apply it to a page item as a whole, but there no approach seems to work. Because I am fairly new to InDesign scripting, a little nudge in the right direction would be a huge help.

    Regards and thanks in advance.

    Julian

    Hi Julian,.

    Is - it ask you?

    var doc = app.activeDocument;
    app.findTextPreferences.findWhat = "figure";
    var found = doc.findText();
    
    for(var i =0;i
    

    Kind regards

    Cognet

  • Add the string with another string.

    I got the text of the source XML document to appear in the BrowserField

     src="wp-content/uploads/2011/01/Chris_bild.jpg" 
    

    I thought too much about it.  The question is more simple I thought originally.

    How can I programmatically insert the string "fie: / / / store/home /" in the string above, so he says?

    src="fie:///store/home/users/wp-content/uploads/2011/01/Chris_bild.jpg"
    

    find the index you want to manipulate, for example using indexof("src=")

    use substrings and add up the parts you want.

  • Several tax code option and add the tax at import time code

    Is it possible to assistance we can add several codes to a tax products. It is also possible that we apply this tax code to the products at the time of the importation of goods rather manually this update for each product.

    Concerning

    Leena

    Hi Leena,

    According to the design of the system, you can't add several tax codes to a product. You can update the tax code by using the product import feature. For information on the importation of products, please visit the following link http://helpx.adobe.com/business-catalyst/partner/product-inventory.html

    Kind regards

    Aish

  • Place the image into another image

    Howdy,

    I'm sorry if it isn't already there.

    I'm trying to place an image on another image as...

    Untitled-1.png

    Thanks for any help you can give!

    k

    Why not combine them into a graphics editor?  Or why not do over the bottom of a container that contains a smaller margins and padding to shift it in place?

  • Add the reference to another project

    I have a working space with two projects in TI, project1 and project2, I added project2 as a library project.  I would use project2 to project1 and to this end, I have:

    Project1 selected-> properties-> Build and added the file project2.jar here.

    In project1 and I then try and use project2 like this:

    Project2. TC TestClass = new project2. TestClass();

    How I get the error: project2. TestClass is not public in project2; are not accessible from the outer packaging.

    Test class is declared as:

    public class TestClass

    {

    public TestClass() {}

    }

    Any ideas?

    Thank you

    WELL

    Make sure that you set dependencies. Check the context menu Project1

    After that, a popup will appear. Library to find and check for project 1 project.

    If you have added a project of library with pot inside, then you simply have to specify the import statement correct for a class/library module or to specify the fully qualified name of a class of the imported library.

    For example:

    import com.librarypackage.MyClassFromLibrary;

    MyClass MyClassFromLibrary = new MyClassFromLibrary();

  • I would like to cut out an object using the Quick Selection tool and drop the object into another image. Can anyone help

    I use background images and want to cut objects of other JPEG files using the Quick Selection tool and drop them in the background image. So if I have a banana and select the object, I need to copy the banana in the context on the other.

    Hope it makes sense.

    Gary

    Select the banana. Right click > copy layer. Move tool. Click and drag to the other file. Place on the image.

    GOLD: load history and banana in a stack (file > Scripts > load file in the stack). Select banana and layer for copy or create the layer mask.

    Benjamin

Maybe you are looking for

  • Satellite M40x-112 white screen

    Hello I have laptop indicated above with this screen remains white if we it start. Everything runs in this way, the screen has time new problems diagram persist sometimes shown only still a side band.equipment and then in Italy, left repair, those ex

  • Insert steps in sequence of runtime using DefaultSequenceValues

    As part of the sequence call step type custom that I see, I want to add steps to the sequence called, but only when running. I found the runtime class methods to modify the copy of the length of the sequence: News/Set/Get/Clear SequenceDefaultValues,

  • Network crashes at startup

    When I start my computer, the network in the taskbar icon hangs for about 2 minutes with the busy (spinning in arrow icon) or job action.  This causesinternet works to be locked up and do not work for 2 minutes. Convenience store can't probably becau

  • Unable to create assets

    Hi allI'm not able to create assets including the assets of page as well as my flex property.I am getting below error while trying to save the asset."Could not perform this operation"You don't have the required permissions to perform this operation.O

  • Get the error when saving files, afterSave '_afterSave.htm' is not defined

    Recently I updated my Windows Pro 8.1 for Windows 10 operating system, and then I started to work, using Dreamweaver, but all save, example CRL + S I get the error above, anyone else who has this problem and managed?