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
Is there anyway to set Safari to download only one file at a time? I click on multiple files when downloading and it downloads them all at the same time which makes thing slower.you might try http://www.igetter.net/iGetter.html ? G5/iBookG4/iBookG3   [More]
Hi, I am trying to generate a 50khz square wave with an AO channel on the NI-USB 6212 (rated at 250ks/s AO). I started with the Voltage - Continuous Output.vi example but when i go up toward 50khz square wave (100khz sample rate) the edges of the squ [More]
iTunes on my Windows Vista has failed to update over several weeks. Audio will not play out. Attempting uninstal/reinstall according to iTunes support page. Will not uninstall 'Apple Mobile Device Support' - goes to 99% then progress bar unwinds comp [More]
In the system, payment term R30 is 30 days. How can I configure it to be defaulted to R30 each time a new customer is created in XD01. Please advice,Hi Colin, If you create a transaction variant (this defines how the fields on the screen appear, incl [More]
I had a computer crash that required me to reinstall all my programs including Acrobat Professional 9.0.  I have done so but the updates will not install and the notice I get is that I am denied access.  My program has been registered with Adobe and [More]
Hi, We have WLS 10.0 with Jrocket on a Windows Server. We have two domains and they have been working fine for well over a year until this morning. I cannot bring up the Admin Console for the 2 domains. The domains are setup to start up automatically [More]
guys, I currently use this query to find the difference between sysdate and the oldest date in the table select (SYSDATE - cur_date) from comp_check the problem is it fives multiple records as output. i want to design a query that will give the diffe [More]
Hi, when i check the Tx DB02 i have an alert with somw missing indexes like that /BI0/E0BPM_C01~P /BI0/E0BPM_c02~P /BI0/E0COPA_C02~P /BI0/E0COPA_C04~P But i don't have option to create this index, so? how can i create this indexes?hi, You should have [More]
Hi all, This is related to the Tcode ME21N (PO). I need to put validations on the fields of Purchasing Document and Item in the above Tcode.These are the fields at the item level in the last two columns.For this I have created 2 Field Exits for the P [More]
I want to use the Lightroom CC version.  I have LR 5 installed as a stand alone program and I have Photoshop CC as a single app.  Now Adobe is offering LR as part of the Photoshop CC package.  What do I need to do to get LR CC and not lose all of my [More]