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
Hello All, I am trying to install SQL Server Enterprise evaluation edition sp1 on windows 7 os professional edition. Previously I have used to sql server 2012 enterprise evaluation edition on the same os. I did not have any issues at that time. But [More]
What are the dimensions of the Apple wired keyboard?K1 I am constantly amazed at our beloved Apple! Not only lack of info, but SysReqs seem a bit restrictive? How can a plain ol' USB keyboard require OSX10.6 or better, yet NOT support USB3.0 AND requ [More]
I have downloaded all of the drivers from Toshiba, upgraded the BIOS, and still nothing.  I get sound from headphones, but not the speakers. Volume level shows activity, I can see the ReakTek High - Def Audio as installed and Windows says it's workin [More]
Hello All, i have problem in data loading...I have created the UD connect source systen and its working properly,then i have created UD Connect InfoSources and DataSources, But when i am trying to create Infopackages then its giving following error.. [More]
Hello ,     For one of our clients we have configured LDAP (Microsoft Active Directory) for authentication purpose in OBIEE 10g repository. The Authentication process takes around 10-15 mins to Login . Are there any parameters that can help to speed [More]
i have being looking for 5 hours could someone help please i know you got this question lots but how do you creat a jar file i have my classes in c:\jdk1.3.1\jre\classes where do i input jar cf gcat.jar gcatcars2.class at the msdos prompt??????? i di [More]
Hi, I'm using FM 'WS_DELIVERY_UPDATE' in my program to do PGI for a particular delivery. My requirement is 1. It should copy delivered qty. into picking qty. automatically. 2. It should lock the delivery, so that we can't enter in change mode on the [More]
On my previous iPod Nano, when viewing albums, the name of the album would scroll if it was long to be able to see the full name. Now on my new iPod Touch, long album names are always displayed with an elipsis at the end. All of my album names are lo [More]
I get the process of load balancing outbound traffic, and even protocol binding so that servers send out traffic only on a specific WAN port. What I do not get is how to load balance INBOUND traffic also to those servers and ensure that the servers r [More]
I am in the middle of creating a few projects but haven't actually exported anything yet so have 2 questions. 1) If I import an MPEG2 program stream with AC3 5.1 audio, when I create the Blu-ray will it keep the 5.1 audio even if it transcodes the vi [More]