Write in XML dynamically

This is first time I'm trying to write in XML, so I'm sorry if this is a simple question. I have a textbox on the field which will be used for entering names, and I created XML tags using
var objs:XML = new XML( <objects /> );
var objname:XML = new XML ( <objectname /> );
objs.appendChild( objname); // add the <name> node to <objects>
I hope to have a XML structure of
<object>
<objectname>james</objectname>
<objectname>jennice</objectname>
<object/>
But I do not know how to write from textbox in flash to the xml file, or dynamicly create a xml from as3. Please help, thanks in advance.

But I do not know how to write from textbox in flash to the xml file, or dynamicly create a xml from as3.
Flash alone can`t write to a users (or your own) filesystem you will need to look into AIR (publish your flash to AIR for Desktop to have access to the Filesystem). If you want the user allow to write a xml file serverside you will want to make use of a technology like php or asp in combination with flash.

Similar Messages

  • Anychart bar graphs - Can we map colors to customer IDs in JSON/XML dynamically?

    Hi,
    We are using the Anychart bar graphs to show our customers data. We need to be able to map colors to customer IDs, so that anytime we use a bar chart a customer will aways be the same color.
    Example: if one view shows 3 customers  (cust ABC is maroon, XYZ is yellow and DXA is blue) and a second view, because of the data, shows 12 customers, that if 2 that are in the first view are also showing they would have the same colors as they did in the first view (cust ABC is still maroon and cust DXA is still blue and if XYZ is not in the second view then Yellow would not be present)
    Is there a way to map the colors to the customers in an XREF table then build the JSON or XML dynamically and use that in the graph each time?
    I have found the Anychart site and it looks like it is possible but was wondering if anyone has done it? Otherwise it looks like it is going to be to time consuming to read everything I would have to read.
    Thank you,
    Bill

    thanks for passing this link Stijin,
    http://oraclebizint.wordpress.com/2007/09/25/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase1/
    http://oraclebizint.wordpress.com/2007/09/26/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase2-phase3/
    i already used this, but we need at least full explanation in how to build OBIE presentations layers and its physical and logical datas , and how to write codes using Java scrips and html codes using OBIE presentation on statistics text.
    if any of you just can link me link regarding to workshop lab's documentations and files regarding to OBIEE integrated to Mapviewer.
    with fully respect and love to you all,
    Yusuf Felemban

  • Writting a XML file from a DOM with the reference to a DTD

    Hi everyone,
    how can I write a XML file, that has a reference to a DTD like:
    <!DOCTYPE testdoc SYSTEM "testdoc.dtd">
    I have a DOM that contains my XML-Data and I want to have this line in the XML File. I'm using a Transformer to write this XML stuff in the file.
    Does anyone has an idea?
    Thanks in advance
    Andi

    http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/OutputKeys.html
    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "testdoc.dtd");

  • How to write processed XML while using XML DOM

    How can I write a Document Node type element in a file i.e. if I have a document and I loaded in memory using DOM then I processed it.Now I need to write it back to file.how can I do that

    Use a Transformer whose input is a DOMSource and whose output is some kind of Result which points at wherever you want to write the XML.

  • How to write a Xml installation file to build  web installer using IzPack.

    Hai everyone,
    I have got a problem in building a web installer using IzPack.I am getting this exception,when I am compiling my install.xml using a compile tool provided by IzPack soft.Eventhough I have not mentioned "packsinfo.xml" in my Xml installation file.
    Fatal error :
    null\packsinfo.xml (The system cannot find the path specified)
    java.io.FileNotFoundException: null\packsinfo.xml (The system cannot find the path specified)
    What went wrong??
    It is very very urgent. Could anyone tell me how to write a Xml installation file for building web installer,please??
    any help will be highly appreciated....
    Thank you very much in advance

    Hi,
    that is not really a java related question. Have you tried to find some IzPack support forum? I've never heard about it, so I can't help.

  • How to write an xml Document to a flat file using JAVA....

    Can any one help me out.....
    How to write a XML Document to the current filesystem using JAVA....
    without using com.sun.xml.tree.*....
    Document xmlDoc;
         Node rows = (Node) xmlDoc.createElement("ROWS");
    xmlDoc.appendChild(rows);
    and i have to write this xmlDoc to a file called(abc.xml) for further use...

    Have you considered using JDOM? ( www.jdom.org )
    The XMLOutputter class can write the Document to a file. ( The Document however will be an org.jdom.Document object ).
    If you are weary of a new API, you could just create a new File object called abc.xml and stream the data from the XML Document you have to this new File object.

  • Write / store xml data in Xe and retrieve stored data using pl/sql

    Hi to all,
    i'm searching a tutorial on:
    A - how to write / store xml data in Xe and retrieve stored data using pl/sql
    I don't want to use other technologies, because i use htmldb and my best practice is with pl/sql.
    I was reading an ebook (quite old maybe) however it's about oracle 9 and it's talking about xmltype:
    1 - I don't understand if this is a user type (clob/varchar) or it's integrated in Oracle 9 however i will read it (it's chapter 3 titled Using Oracle xmldb).
    Please dont'reply here: i would be glad if someone can suggest me a good tutorial / pdf to achieve task A in Oracle XE.
    Thanx

    Thank you very much Carl,
    However my fault is that i've not tried to create the table via sql plus.
    Infact i was wrong thinking that oracle sql developer allows me to create an xmltype column via the create table tool.
    however with a ddl script like the following the table was created successfully.
    create table example1
    keyvalue varchar2(10) primary key,
    xmlcolumn xmltype
    Thank you very much for your link.
    Message was edited by:
    Marcello Nocito

  • Ho to Write Query for dynamic in sql server for IN operation.

    hi ,
    we was write store procedure dynamically for IN operation,when i select 4 values it was update only 3 item last selected values are not update .if select more then 5 it will showing the below error
    ALTER PROCEDURE [dbo].[UpdateEMPdetails]
    @NID varchar(50),
    @EID nvarchar(max),
    @RT bit,
    @Ackd bit,
    @VerifiedBy varchar(80),
    @TableName varchar(100)
    as
    declare @SqlQueary nvarchar(max)
    set @SqlQueary = 'update '+ @TableName +' set RT='+CAST(@Rt AS CHAR(1))+',Ackd='+CAST(@Ackd AS CHAR(1)) +',Verified_By='''+@VerifiedBy+''' where NID='''+@NID+''' and ' +
    ' EID in('''+ @EID+''''+')'
    print @SqlQueary
    exec UpdateEMPdetails 'EMP14-302',"000008922','00000010242','000008923','00000010242','0000008922','00000010242','0000008922','00000010242",1,1,'xyz','EMPTB'
    when i run this one we will getting the below error
    Msg 103, Level 15, State 4, Line 1
    The identifier that starts with '0000008922','00000010242','00000008922','00000010242','0000008922','000000010242','00' is too long. Maximum length is 128.

    Hi PS_L,
    This is the forum for SharePoint .For your question please use the related Forum, following link is SQL
    Server Forum:
    http://social.technet.microsoft.com/Forums/sqlserver/en-us/home?category=sqlserver 
    This question, I think if you change "000008922','00000010242','000008923','00000010242','0000008922','00000010242','0000008922','00000010242"
    to  N'''000008922'',''00000010242'',''000008923'',''00000010242'',''0000008922'',''00000010242'',''0000008922'',''00000010242''' will solve it. 
    Qiao Wei
    TechNet Community Support

  • How to write non-XML data to a file using an OSB FTP Routing?

    Hi --
    Situation ... I need to write non-XML data to a file using FTP. A proxy service retrieves XML and transforms it with XSLT to CSV format, then gives it to a Biz service to file it out, using FTP. Simple.
    Problem ... OSB sends the contents of $body to any service it calls. Because $body is a SOAP document, it has to contain XML. So therefore I have to put my CSV data into an XML element, in order to put it into $body; and this inner element then gets written to the file, which I don’t want. But if I don't enclose my CSV content in a tag, I get "Unexpected CDATA encountered" trying to assign it to a variable.
    There has to be away around this!
    Thanks for your help.
    John Taylor

    Solved. Steps:
    -- Transform the XML to CSV using an XSL transform. Put the CSV data inside enclosing XML elements, and use a Replace action to put the XML element + CSV contents back into *$body*.
    -- Define an MFL transform that only knows about the enclosing XML elements. Use a delimiter of "\n" (hard return).
    -- Route from the proxy service to a Biz service that has Service Type = Messaging Service and Request Message Type = MFL; specify the MFL transform, which will receive the incoming *$body* variable, strip off the enclosing XML element within it, and pass the CSV contents to the FTP service.
    Edited by: DunedainRanger on Nov 29, 2011 9:03 AM

  • How Do I write an XML file using Java?

    Hello there!! to everyone reading my post.
    I have this project I need to do, and I have no clue where to start, I was wondering if you guys could help me out.
    I need to know how to write an XML file using a Java Program, but without using a Third party library.... just using java native APIs.
    I will probably take the values to construct the file from a form.
    I will certainly appreciate if you could post some sample code for me.
    Thank you very much in advance..

    Hello there!,
    I have some doubts about the Tutorial I am currently reading. correct me If I'm wrong, but the section "Write a simple XML file" teaches you how to do so using a text editor. I need to create my XML file from a running Java Program written by myself, that takes the values to build it from some variables.
    If I'm totally wrong about what I'm saying, could you please point me to where I can find the information of how to do what I'm asking for, inside the tutorial.
    Thank you very much,...
    sincerely.

  • Jar package for XML Dynamic News

    Where I will find *.jar package for XML Dynamic News?

    Hi,
    You have downloaded the old sample application. The latest XML Dynamic News application is certified for Oracle 9.2.0.2 database which uses Oracle XML DB and J2EE features. For the latest application sample jar to be uploaded, we are waiting for the patch release of database on OTN.
    We are sorry for the inconvenience caused and will keep you updated about the sample application release.
    Thank you.
    Savitha.

  • How can i write a XML file with oracle data ?

    How can i write a XML file using PL/SQL.
    Can i do as follows.
    1.Open a file using UTL_FILE.FOPEN(LC_DIR_LOC,'abc.xml','W')     ;
    2.write all the required tag and value using UTL.put_line
    that is enough. Is not, please guide me to write.
    gk

    Having Oracle 9i.
    One more doubt. In the speck, some constand values are there, When i write the same into file, How can i write ?.
    1. l_str := ' "E27" '
    or
    2. l_str := ' E27 '
    UTL_FILE.PUT_LINE(L_FILE_POI,l_str,TRUE);          
    1 case : in XML file : "E27"
    In 2 case : E27
    When we write a XML file through editors , we have to define the constant within quote . is it?      
    Which one can i use ? Or any other way is there ..
    Thanks and Regards
    gopi

  • Write to XML File crashes when multiple Timed Loops present

    Hello All,
    It took me forever to track this bug down.
    In this project we can edit operating parameters on the Host and send them down to an RT program in a cRIO-9025. The data is converted to XML and stored on the cRIO's disk.
    Occasionally, the RT program would lock up and had to be rebooted.
    It turns out that if you use Timed Loops , then a Write to XML File (or presumably any file write) will not return.
    Attached is an example. This has 5 loops to make it crash faster, but it will eventually crash with only 2.
    Paul J
    Attachments:
    XML Write test.vi ‏93 KB

    Hello Chris,
    I know that Write to XML File fails because I put in debug code in my actual program, a flat sequence which updated an indicator, and after the crash, the indicator had not updated.
    Yes, I know that it replaces the file. It's a configuration file, not data gathering. This is just an example of the bug.
    FYI,
    I increased the period for the loop with the file save to 500msecs and it still crashed.
    I then decreased it to 50 msecs, and replaced all of the other Timed loops with While loops and it does not crash, even though the file save takes much longer than 50 msecs, average ~150msecs.
    I replaced the loop with the file save with a While loop while leaving the others as Timed loops and it does not crash.
    So the bug is systemic and related to a file save in a Timed Loop when there are other Timed Loops.
    I'm not looking for a solution, I'm only reporting a bug in Labview. The solution is not to use Timed Loops, especially, as you point out, when there is file saving. It cost me several days of dicking around to figure it out. Maybe someone can save some time if they find this.
    Paul J

  • Write & Modify XML Document on Midlet

    please help me, how to write & modify xml document on Midlet????
    I use KXML1.2 but it can't do write & modify. I read this documentation.... KXML just only read XML document....
    so everybody can help me.....
    please send your comment on my email... because my internet bandwith is so low. It's long time when I open this forum.
    thanks very much

    Check out with kXML 2
    Cheers,
    Rohan Chandane

  • Creation of XML dynamically helppppppppppppp

    hello all
    i had developed an application in java .corresponding to that i want
    to create xml that take its value of attributes
    dynamically
    Can anybody help me out how to proceed to this problem
    thanks in advance
    bye

    You can look into JAXB, if you are comfortable with XML Schema and automatic code generation. If not, you can write your own parsing and serialization routines via Xerces and Xalan (available at xml.apache.org). Finally, I am sure there are a number of open source projects that have their own XML serialization and de-serialization schemes. Search www.sourceforge.net.
    - Saish

Maybe you are looking for

  • Macbook pro 13" locked

    Hello! I bought my macbook pro in the last month. Since then, the MBP crashes without warning. The keyboard and the mouse dont respond. There is a way to solve these problems? Thanks!! PD: Sorry for my english, but im spanish

  • Sort key in xkn1

    Hi Greetings For all vendors i am using 100501 as a reconciliation account . In fs00 i gave the sort key o12 for 100501 Here my doubt is what is the significance of giving sort key in xkn1. ? Thanks & Regards Praveen kumar.K

  • Dynamic dashes on path

    I've got a map and I want to show how to get from one country to the other using dashes or some other kind of indicator to show the route you would take. For example, my starting point is California, and my ending point is Italy. I would like to have

  • It says it's installed, but there's no icon

    I've Installed DVD Studio Pro, it tells me the install was successful, but when i go to open the application, there is no icon for DSP in my applications folder, but if i go to the system library folder under Application Support, there is a folder fo

  • Why do I REPEATEDLY get "Activation server is temporarily unavailable"  when trying to complete iPhone 3GS Restore?

    Why do I REPEATEDLY get the message "Activation server is temporarily unavailable"  when trying to complete iPhone 3GS Restore? I live in Italy and am using an unlocked phone originally sold in the US.