Sitemap

Amicuk Programming Answers

XML file reverts to original file after save - Why?

2015-10-11   Views:2

Advertisement

Hi guys, I'm working with a little bit of XML and have questions, first here are my steps: 1) Load XML 2) Append to XML 3) Save XML using PHP pretty simple, right? Well, why when I load the same XML file does it read the file without the appendend no

Hi guys,
I'm working with a little bit of XML and have questions, first here are my steps:
1) Load XML
2) Append to XML
3) Save XML using PHP
pretty simple, right?
Well, why when I load the same XML file does it read the file without the appendend nodes I just added?
I can open the XML file in Dreamweaver and see the appended nodes, but once I load the XML back into the .SWF, it clears the appended nodes and only reads the original nodes again..... simplified version like this:
Original file:
<?xml version="1.0" encoding="UTF-8"?>
<people>
     <person>
          <name>Steve</name>
     </person>
</people>
Saved file, readable in Dreamweaver:
<?xml version="1.0" encoding="UTF-8"?><people>     <person>          <name>Steve</name>     </person>     <person>          <name>Mary</name>     </person></people>
When .swf file is closed and reOpened to save another person it opens:
<?xml version="1.0" encoding="UTF-8"?><people>     <person>          <name>Steve</name>     </person></people>
My .swf is local at this point and PHP and XML files are on a server running PHP5.
Apparently the PHP script is correct because it DOES save the file correctly. I can save as many <persons /> as I want. But when I close the Flash .swf the URLLoader reads the original XML data again. Not sure how that's possible?
When I change the location of the XML to load into the URLLoader it changes so I know it's reading the same file I saved to.... I'm so confused.
Hope this is enough detail for someone to help me,
Thanks,
Sky

The replay answer
Advertisement
Wish it was possible to handout additional answer points based on (time spent trying to figure it out) vs. (helpfulness of answer).
To bad we couldn't some how accrue points when learning and give to you guys that help us out.
Then Adobe could have a redeem points system where you guys get free stuff in lieu of helping us all learn their programs.
Thanks again,
Sky

Go to See the other 4 answers

Saving XML files

Category:DefaultRelease time:-0001-11-30Views:130

I have to download an XML file and save it to a file so that I can upload it to another programme.  Although I can view it when I ry to save it I can't seem to get it to save in a form that I can use to upload.  Can anyone help?Appendix - A in Buildi[More]

Smart form downloaded into .xml file ??.

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, When a smart form is downloaded, it gets downloaded as a .xml file. My question is, how does it get converted to .xml file. <i>Is there any</i> <u>function module</u> that is called and <i>if so</i> <u>wha[More]

How to restore an XML file

Category:DefaultRelease time:-0001-11-30Views:130

Hello Techies, I want to restore an xml file and save it to database. The xml file has to be restored in different tables of a database. Here is my xml file   <Application>         <row>             <application>4</application>    [More]

Convert ArrayList into XML file

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Can anyone tell me how to convert ArrayList to XML file and save that file. ManojThere is an easy to understand example here: http://totheriver.com/learn/xml/code/XMLCreatorExample.java. You only have to replace Book objects from example with obj[More]

Store Class-Properties in XML-File

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I want to store the properties of my class instances into a XML-File to save and reload the parameters. My Class to be stored and reloaded: public class MyData{ public String val1,val2; public Result(String val1,String val2){ val1=_val1; val2=[More]

Web.XML files

Category:DefaultRelease time:-0001-11-30Views:130

Hi there, i am new at working with the Java dev tools, but i really like them. my question is regarding the Sun Java Studio Enterprise 8. I am getting a bit annoyed due to the fact, the everytime enter the studio(after closing it), i find that every[More]

XML file reverts to original file after save - Why?

Category:DefaultRelease time:2015-10-11Views:130

Hi guys, I'm working with a little bit of XML and have questions, first here are my steps: 1) Load XML 2) Append to XML 3) Save XML using PHP pretty simple, right? Well, why when I load the same XML file does it read the file without the appendend no[More]

Save XML File Error

Category:DefaultRelease time:-0001-11-30Views:130

I was trying to replace a Node in an XML file (see attached VI - LV 2010), but for some reason the Load or Save XML VI's are changing the format of the XML Header (only by a couple of \n characters, but enough for the application reading the XML file[More]

Create the original prov.xml file for Provisioning Toolkit Enterprise?

Category:DefaultRelease time:2015-10-11Views:130

How do you create the original prov.xml file to be used with Provisioning Toolkit Enterprise? This is for use to resovle the issue with Creative Cloud Enterprise deployments serialization breaking during imaging. Several people indicated to try and r[More]

I publish a 41mb newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, deleted pages separa

Category:DefaultRelease time:2015-10-11Views:130

I publish a 41mb InDesign newsletter monthly into interactive pdf. It always becomes a file size of 4mb, 10% of original, when I save to pdf. This month my newsletter is 41mb and it drops to 11mb, 25% of original. I have re-sized all pictures, delete[More]

How can I save a XML file with JAXP1.1?

Category:DefaultRelease time:2015-10-11Views:130

Dear All. I write a program to create XML file with DOM model, but I can't know how to save it? My environment is JAXP1.1 and JDK1.3.1,I has been required not use other XML parser toolkits,only JAXP1.1. How can I do? thank you. Many person give me a[More]

Hot
(I'm using Flex Builder 3) Hi... I'm building a flex application that has asp.net web service as a backend. I've put this webservice on the https protocol with a self-signed certificate. My problem is that my Flex app can't access this web service ov [More]
Hi All, Can any one let me know the process of how to add new fileds in the shopping cart creation screens by using the "Tag Browser" option in the Object navigator. Best Regards, Mahesh. JHi <b>Please go through the following links for mo [More]
A friend would like to buy my Firebird 803 but I am not sure what I can find that will replace it.   I need something quiet and unobtrusive for the TV room with easy hookups.  The Firebird right now is connected to the media system via 2 cables:  HDM [More]
Hello, I have ran into an issue way beyond my BW skills concerning authorizations used to restrict Queries data for certain characteristics. I am not sure which information are relevants, so here is all I gathered : Screenshot of the rsecprot transac [More]
how make new table as i need in sap b1 and also tell me how to insert update data in that table thanks and regards ParagIf you need to add table using a program, you have to use the UserTableMD object. Once table is created you can add fields using U [More]
broke my disck original. I have Lion but i need return a snow leopar. I have retail snow leopard 10.6.3 but does not work. Reading. I have read que i need snow leopar for macbook pro 13 early 2011 especificOriginal install disks may be obtained from [More]
Hi, I am a newbie to JSP programming. I need to know the list of installed executables in the system to a list box in UI form. How could it be possible. Please suggest me.there would be two vendor codes and for each vendor code there will be separe s [More]
I just got this modem used from eBay to set up a wireless system at my parent's house.  Whenever I plug in the ethernet cable from the cable modem (Brighthouse) directly to the router it whines about not being able to find an internet connection.  I' [More]
Currently when maintaining the relationship of Contact Person to a Customer Account, Web UI automatically copies all communication data (phone, fax, email etc...) to the relationship. I need to know, specifically, how we can restrict data copy/transf [More]
Hello, I would like to search my entire hard drive looking for a specific file type but only if the file does not live in specific folders. For example, find all the files with an extension of .txt but exclude them if they live in Documents or Downlo [More]