Editing XML Database then saving

I made a program which takes data from XML and stores it into
columns on a datagrid. However the XML document is a static
document which is premade. I have been trying to look everywhere
for a way to save the document AFTER someone has edited it, this
way it resaves over the XML document with new data.
Any help would be great!
Thanks

HI,
do you already have in place something that creates the
update xml document ie how are you trying to update the data
currently displayed on the datagrid?
I have seen two options, one to use item renderers and two to
use a summary pannel beneath the data grid. I havent been using
flex for long but i do like the summary panel option which makes
the datagrid look more presentable.
The summary pannel, is just a panel with a set of components
such as text input, date field, labels etc, and each of them have
their property set the current selected item in the datagrid. You
can then add a button that on click calls a updateFunction in
script. Here you can your original xmlList which contains the xml
from the static file, set the element in that list which
corresponds to the item you just updated with the updated values,
then rewrite the xml back to the original file.
HTH
regards
abhi

Similar Messages

  • Question about externally editing in Photoshop then saving but the files not showing up in catalog

    When I am in Lightroom and I choose edit in Photoshop then I save the file, I would like the file to automatically show up in my Lightroom catalog.  It shows up if I save as a tiff like I set up in my preferences, but not if I save as a jpeg.  I would like for the jpegs to also show up in the catalog.  Is this possible?
    Thanks,
    Jennifer

    I found that if I do a <save> in Photoshop first (which saves a tiff or psd file, depending on the setting in Preferences), and THEN a <save as> to save as jpg, both files are automatically added to the catalog.
    I do agree that if I just do a <save as>, without doing a <save> first, the <save as> file is not added to the catalog.
    My workflow is good for me, because after developing a photo in LR, I then do further editing in PS, and then save the edited file as a tiff (or psd) at full pixel dimensions, with the edit layers. The next step is, if I need a jpg of that photo (for web or email), I flatten the file, reduce image size, convert to sRGB, etc., then save as a jpg. This way, I have the three files I always make/keep, and all three files end up in the LR catalog.
    I agree that I could use the Export function in LR to generate the jpg instead, but 1) I'm too used to doing it right there in PS while I have the file open and 2) I can use all the tools in PS to do tweaks that the photo may need when converted to jpg.

  • From LR edit it Photoshop then saving back to LR

    I have just updated LR5 to LR5.2 and updated my photoshop CC and now after i chose an image in LR and edit in Photoshop it wont let me justSave and close, it keeps going to Save as which seems to creat a new filename then when I close and go back to LR it cannot locate the file so I have to keep going to 'locate missing file' to find me photoshopped image. Why cant I just save and it will make a copy back in LR like it used to. I have looked over my LR preferences and Photoshop preferences and i cant see what to fix.

    Re-installing Illustrator seemed to work, even though it was fully up to date and now technically it's not, it works better now. I guess I'll be pausing the "updates" from now on.
    Thanks!

  • When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and  sit next to the original? Mine is going to the end of the folder. Thanks Karen

    When editing an image in Photoshop from Lightroom then saving it back to Lightroom, how do i get the image to go back and sit next to the original image? Mine is going back to the end of the folder. Thanks Karen

    Hi Karen
    You may the sort set to Custom. Click the dropdown menu on the toolbar (to the right of the word sort) and change to capture time.
    If you can’t see the toolbar above the filmstrip press the T key. Press T again to hide.

  • Lost 2500 photos last night. Mt wife cut and paste a photo into power point for editing. then saved it as a photo. Now in iphoto there is just this one photo and the other 2500 have gone. Where have they gone???????

    Lost 2500 photos last night. Mt wife cut and paste a photo into power point for editing. then saved it as a photo. Now in iphoto there is just this one photo and the other 2500 have gone. Where have they gone???????

    To answer some basic questions posted to aid people in helping me. These are
    I believe it is version 11 of iphoto as i tried to update but it says it has the latest update and Mac is 2 weeks old from new.
    OS is Lion.
    I have just tried to look everywhere on the Mac to see where the photos might be.
    There are no error messages showing on screen and it was fine before my wife did what she did. Even though we have back -ups of 95% of the pictures. I would like to know what happened so that it won't happen again.

  • When editing a template and making changes then saving and closing I get this error any idea?

    Have a user who is on Sharepoint office 365 online and when trying to center a excel spreadsheet icon link to center on a organizational report template then saving and closing the user receives this error:
    An expected error has occured
    Trouble shoot issues with Microsoft Sharepoint foundation
    Correlation ID 0952719c-af2e-20a4-9ee6-e98b1a457d0a
    Any clue what this error indicates?
    Best regards,<br/> <br/> <strong>Joe C<br/> </strong>Partner Online Technical Community<br/> -----------------------------------------------------------------------------------------<br/> We hope you get value from
    our new forums platform! Tell us what you think:<br/> <a href="http://social.microsoft.com/Forums/en-US/partnerfdbk/threads"><span style="color:#0033cc">http://social.microsoft.com/Forums/en-US/partnerfdbk/threads<br/>
    </span></a>------------------------------------------------------------------------------------------<br/> This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights <hr>

    Any ideas?  And Melbourne is right SP 2013 online would be impossible to view those logs unless I open a ticket with MS
    Best regards,<br/> <br/> <strong>Joe C<br/> </strong>Partner Online Technical Community<br/> -----------------------------------------------------------------------------------------<br/> We hope you get value
    from our new forums platform! Tell us what you think:<br/> <a href="http://social.microsoft.com/Forums/en-US/partnerfdbk/threads"><span style="color:#0033cc">http://social.microsoft.com/Forums/en-US/partnerfdbk/threads<br/>
    </span></a>------------------------------------------------------------------------------------------<br/> This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights <hr>

  • XML Database Development with JDeveloper?

    Hello, folks:
    I am trying to create XML database through JDeveloper.
    Database: Oracle 10g
    IDE: JDeveloper 11.1.2.2.0
    JDBC Driver: Oracle ojdbc6.jar
    I connect successfully to the database through JDeveloper. There I see many folders listed, e.g. Tables, Views, Indexes, XML Schemas, XML DB Repository, and others. My problem is that when I try to save a large schema file (that I already validated on my local machine) that is roughly more than 300 lines, then JDeveloper is unable to save the file. It saves only very small files that are about 100 lines or less. The error message simply is: "Unable to save XML Schema blah.filename@local (Error saving XML Schema).
    I tried to do it in Oracle SQL Developer too, but got the same error. Can someone please help me understand this problem and how to fix it? Do I need to specify some settings in JDeveloper or SQL Developer? Thanks a lot in advance.
    Asif

    Please raise your question to the forum dedicated to JDeveloper 11:
    JDeveloper and OC4J 11g Technology Preview
    Regards,
    Didier.

  • XML database query through Java

    Hi all.
    I am collecting information about a little application i am trying to build:
    I have an XML database with records divided in a lot of subdirectory (with three or four .xml files);
    directories' names are defined by date in format "yyyymmdd",
    the file within are "date_something.xml":
    what is the best way to access it by a web app or a java class to search all the dirs adn print results in a readable way (aka not in cmd) ? I need first to define a period of time to search and then some attribute or node to print referred to some element.
    I was guessing to use xpath, anyway I ve tryed JSP but it is too difficult and the query i have to do are really simple to build a full servlet.
    I am learning xalan through servlet and I think in future this will be my choice but now i need to collect the data by queries without any automation, just to have results for researching and paper writing.
    The main problem I found is to search a full series of directory, with transformations i can find out stuff from a single file, but how to do it for a system of directories?
    Any suggestion or link to resource would be good also.

    lm00 wrote:
    ProjectMoon wrote:
    By XML database do you mean an actual XML native database, or just a bunch of XML files in a directory structure? If it is an actual XML native database, you should probably use the XML:DB API. If they are just flat files you will need to probably make something that is able to navigate through your directory structure to the documents you want. Once you have that, you can then use XQuery or XPath to get information from those documents.The data is a bunch of directories named by date in format "yyyymmdd", inside each of these there are three or four files .xml
    All files have data definitions and schemas but i dont think they are a 'database'. What do u mean "something to navigate through"? A class? Suppose I would like to do it as a webapp what should i have to do?
    Yes, I basically meant a class. Before querying the XML file you need something that will retrieve its location. If it's by date you could probably concoct something that takes a Date object and returns a set of File objects. Internally it would traverse the directory trees and find the proper XML file(s).
    >>
    If you have a LOT of XML documents I honestly recommend something like the eXist XML Native Database, or another XND. I have been playing with them lately and they are very useful.in this case what i have to do? Take the data and put it into a database by this tool? And then I should acces it by a JSP? There is a program using Xpath instead?Well, yes. You would put the files in the XND. Although I don't know if that's useful or not in your situation. It all depends. I also think you're a bit confused as to what JSPs and XPath are...
    JSPs are just Java Server Pages, which get dynamically compiled into servlets. If you are following the MVC pattern for servlets/JSP (which you should), JSPs represent your views while servlets are the controllers. The model would be your XML data in this case. XPath is a way to get at that data. If it was in an XND, you could just throw an XQuery/XPath expression at the database and it would give you back XML documents/fragments representing the results of your query. You don't have to make your own system to find the XML documents. Of course, you do have to learn how to use an XND.
    Perhaps you should separate what you are trying to do. You have two problems: 1) how to get the XML data you need. 2) How to present it. You should separate those two completely and learn how to do both before attempting to put it together.
    Edited by: ProjectMoon on Oct 21, 2009 12:05 PM

  • JDeveloper and Oracle XML Database Development

    Hello, folks:
    I am trying to create XML database through JDeveloper.
    Database: Oracle 10g
    IDE: JDeveloper 11.1.2.2.0
    JDBC Driver: Oracle ojdbc6.jar
    I connect successfully to the database through JDeveloper. There I see many folders listed, e.g. Tables, Views, Indexes, XML Schemas, XML DB Repository, and others. My problem is that when I try to save a large schema file (that I already validated on my local machine) that is roughly more than 300 lines, then JDeveloper is unable to save the file. It saves only very small files that are about 100 lines or less. The error message simply is: "Unable to save XML Schema blah.filename@local (Error saving XML Schema).
    I tried to do it in Oracle SQL Developer, but got the same error. Can someone please help me understand this problem and how to fix it? Do I need to specify some settings in JDeveloper or SQL Developer? Thanks a lot in advance.
    Asif

    The XML database engine used in JDev is in fact from SQL Developer. In other words the SQL Developer code base is used by JDev though typically it is an older version than the latest SQL Developer. As such best post this question to the SQL Developer forum and ensure to state which standalone SQL Developer version you're using.
    CM.

  • How to edit xml using AS3

    I want to edit xml file on run time dynamically using AS3
    Plzzzzzzzz if it possible send the tutorials links or sample script.

    Flash player 10 has support for accessing local system file. This can be done using the FileReference class. You can browse a loca file, rad it and then save it back. But at the time of saving, the user is prompted to choose a location for saving the file.
    Else you can use some server side technology with your app to read and write files.

  • Xml data into non-xml database.. solution anyone?

    Hi,
    My current project requires me to store the client's data on our servers. We're using Oracle9i. Daily, I will download the client's data for that day and load it into our database. My problem is that the data file is not a flat file so I can't use sql*loader to load the data. Instead, the data file is an xml file. What is the best way to load xml data into a non-xml database? Are there any tools similar to sql*Loader that will load xml data into non-xml database? Is it the best solution for the client to give me an XML dump of their data to load into our database, or should I request a flat file? My last resort would be to write some sort of a script to parse the xml data into a flat file, and then run it through sql*loader. Is this the best solution? One thing to note is that these files could be very large.
    Thanks in advance.
    -PV

    I assume that just putting the XML file into an
    extremely large VARCHAR field is not what you want.
    Instead, you want to extract data elements from the
    XML and write them to columns in a table in your
    database. Right?Yes. Your assumption is correct.
    It sounds like you already have a script that loads a
    flat file into your database. In that case I would
    write an XSL transformation that converts the client's
    XML into a correctly-formatted flat file.Thank you. I'll look into that. Other suggestions are welcome.

  • How can I edit XML results ?

    Hi,
    In the documentation I read about how to get the results of a query (in .xsql) as a XML-page using the XSQL Servlet. With forms I can insert data into the Database, but what about retrieving data from it and immediately edit and update it (combination of the two) ?
    What is the easiest way to achieve that ? I just want to update my data using XML as a data interchange format...
    thanks,
    Erik

    One of the difficulties would be locking
    your record.
    Without locking, it's just a matter of
    writing your XSL to enter data as a default
    value into text fields in a form.
    You could also use Transviewer Beans to
    create a Swing app to edit XML files.
    null

  • "Edited versions will be saved in the iPhoto library"

    "When you edit these images in iPhoto, however, the edited versions will be saved in the iPhoto library, not your original files. Your original files remain untouched."
    Is there any way for this not to happen? I love iPhoto for integration with other iLife apps, but managing folders may be a deal breaker for me. I tweak nearly every photo I have and I'm constantly running out of space on my hard drive. With iPhoto's hidden folders, makes managing photos horrendous.
    I really, really wish iPhoto would adopt some of Picasa's user-friendly features.

    iPhoto follows the mandate of good Digital Asset Management, always keeping a digital negative that is untouched and save for later use. All good DAM applications follow that mandate.
    If you're running out of space you can get an external HD to run your full/primary library on and have a second, smaller library on the Macbook. It can contain the more recent or most needed photos. You can also use iPhoto Library Manager to easily switch between the two and copy events and/or albums between the two while keeping keywords, titles and descriptions intact.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Can't see iPhoto pics that are edited in PS and saved back to iPhoto

    Photos that are edited in Photoshop and saved back into iPhoto don't show up in the iPhoto window. Only the originals show up. When I do a search, I see that they are saved in a "modified" folder inside iPhoto. How can I see them in the iPhoto window? I would like to "trash" some of them. Can I just drag them to the trash from the "modified" folder or will that foul up the iPhoto database?
    Rick

    Maybe this will help:
    Using Photoshop (or Photoshop Elements) as Your Editor of Choice in iPhoto.
    1 - select Photoshop as your editor of choice in iPhoto's General Preference Section's under the "Edit photo:" menu.
    Click to view full size
    2 - double click on the thumbnail in iPhoto to open it in Photoshop. When you're finished editing click on the Save button. If you immediately get the JPEG Options window make your selection (Baseline standard seems to be the most compatible jpeg format) and click on the OK button. Your done.
    3 - however, if you get the navigation window
    Click to view full size
    that indicates that PS wants to save it as a PS formatted file. You'll need to either select JPEG from the menu and save (top image) or click on the desktop in the Navigation window (bottom image) and save it to the desktop for importing as a new photo.
    This method will let iPhoto know that the photo has been editied and will update the thumbnail file to reflect the edit..
    NOTE: With Photoshop Elements 9 the Saving File preferences should be configured as shown:
    Click to view full sizes
    I also suggest the Maximize PSD File Compatabilty be set to Always.
    In PSE’s General preference pane set the Color Picker to Apple as shown:
    Click to view full size
    NOTE: If you want to use both iPhoto's editing mode and PS without having to go back and forth to the Preference pane, once you've selected PS as your editor of choice, reset the Preferences back to "Open in main window". That will let you either edit in iPhoto (double click on the thumbnail) or in PS (Control-click on the thumbnail and seledt "Edit in external editor" in the Contextual menu). This way you get the best of both worlds.
    OT

  • I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    I am new in indesign scripting, please tell me how to write a script to get  content of a element in xml and then sort all the content

    Hi,
    May the below code is useful for you, but I dont know how to sort.
    Edit the tag as per your job request.
    alert(app.activeDocument.xmlElements[0].contents)
    //Second alert
    var xe = app.activeDocument.xmlElements[0].evaluateXPathExpression("//marginalnote");
    alert(xe.length)
    for(i=0; i<xe.length; i++)
        alert(xe[i].texts[0].contents)
    Regards
    Siraj

Maybe you are looking for