Hi swapnil, Thank u very much for ur code. I use this code and let you know if it works for me. thank you once again
On Fri, Oct 16, 2009 at 3:53 PM, Swapnil <[email protected]> wrote: > > Hi Santosh, > > By using php you can achieve this in various ways. I think by using > PHP DOM is the best way to write a xml file. > > Here are the sample code. > PHP code: > // create doctype > $dom = new DOMDocument("1.0"); > > // create root element > $root = $dom->createElement("Root"); > $dom->appendChild($root); > > // create child node //CREATEING fname node > $item = $dom->createElement("fname"); > $root->appendChild($item); > > // create text value //Adding Swapnil to the 'fname' node > $text = $dom->createTextNode("Swapnil"); > $item->appendChild($text); > > // create child node //CREATEING lname node > $item = $dom->createElement("lname"); > $root->appendChild($item); > > // create text value //Adding Swapnil to the 'lname' node > $text = $dom->createTextNode("Patil"); > $item->appendChild($text); > > //Save image with the name of "temp.xml" > $dom->save("temp.xml"); > > For more information about php and php DOM refre http://www.php.net > site > > Please let me know, if you have any problem. > > Thanks, > Swapnil > > On Oct 16, 2:50 pm, santhosh kumar <[email protected]> wrote: > > Hi Ganaraj, Thank you for your reply.... > > could you please send the php code that is needed to save the xml file to > > the server which i have created using as3. > > > > On Fri, Oct 16, 2009 at 2:38 PM, ganaraj p r <[email protected]> > wrote: > > > > > > > > > Hi Santhosh, > > > You wont be able to write to the server using a client side technology > > > directly. > > > > > You will have to use a server side technology like Java, PHP, python > etc. > > > to achieve what you want to do . > > > > > On Fri, Oct 16, 2009 at 11:17 AM, midnightcoder <[email protected] > >wrote: > > > > >> Hi Friends, > > >> Hearty Diwali wishes to all... > > > > >> I have assigned a project to work with XML. In that I have > > >> created a XML File using Flex AS3. Now I want to store the XML file to > > >> the server and I have to read and write the XML file Whenever I > > >> need.Is it possible to store the XML file using as3 or I need to write > > >> server side script?... If it is possible in as3 itself means please > > >> give me one sample. Else I need to write server side script means give > > >> me your full guidance. Because I don't know any server side script. I > > >> hope you people help me soon... Thanks in Advance... > > > > >> Regards > > >> Santhosh > > >> Flex Developer > > > > > -- > > > Regards, > > > Ganaraj P R > > > > -- > > Think Different... Be Different... > > **********Santo************* > > +91-9994995363 > > > > -- Think Different... Be Different... **********Santo************* +91-9994995363 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

