How to save as XML with some predefined extensions

hi All,
In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
awaiting for your mail
Thank you
Regards
MKumar

In an other post I found my solution thanks to "Peggy" :
Save As… has returned with Mountain Lion. Hold down the Option/alt key while clicking on the File menu & there it is! It also has a default keyboard shortcut.
Thank you Peggy

Similar Messages

  • How to save a graph with some parameters on it?

    hi
    my application involves analysis of data and plot a graph of analysed data, how to save graph along with analysed data in a file otherthan labview?

    Well, it sounds like you are wanting a picture of the graph, yes? If so there are two ways of getting it. First there is a VI method (Get Panel Image) that lets you get an image of the entire screen, and then there is a control method (Get Image) that lets you get an image of just the front panel object that you are interested in.
    The help file entries for either method provides added detail on how to uses these methods to save a picture of your data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to save a png with a straight or fat alpha?

    Long story short, work in broadcast and a new piece of gear prefers png files.  I know how to save png's with a transparency, that's not the problem.  What I don't know how to do or if it's possible is to save them with a straight or fat alpha.  Right now we feather or extend the edges out past the alpha of say a logo and save it as a tif, psd or .tga.  That way once it's keyed over video or whatever, the edges look good, no black bad edging.... this makes sense, probably not explaining it very well.   But switching to png files I have no idea how to make a straight or fat alpha since it sees transparency.  I mean if I feathered out the edges, a png will see that correct, since there's no alpha??
    I hope this makes sense ?

    Chris, this is probably the answer I seek "PNG always saves with straight color - that's how the PNG spec defines it." 
    I admit my explanation was a bit weak and I understand PNG only supports transparency, which is not an alpha,  and the apps aren't treating them wrong....I just couldn't formulate an intelligent question and explain it, my bad.
    After thinking about it I don't think using a PNG will work. RIght now for broadcast gear/applications if we don't fill the transparent and semi-transparent areas of an image with the colored part of the image, we usually end up getting a dirty key/matte or a lot of fringing.  So when using a .tif or .tga that reads an actuall alpha, we can fix the issue by doing what I described.  In fact we use a quick little plugin from flaming Pear called "Solidifty" to speed up the process http://www.flamingpear.com/download.html .  With that said, I know we can't do the same steps with a png because it only sees transparency, but I guess I was wondering if there was a work-around or a trick to fix that issue.  I could be wong, but doesn't a png save with white ?
    But again, as I thought about it, I think i'm asking for something it's not meant to do, but I thought I'd ask anyway.
    Thanks Chris, does this make more sense or more confusing?  The bottom-line is I don't think it will work.

  • How to save a flash with .SWF

    Hi, I have the 'Adobe Flash CS3 Professional', and I want to
    know if you could tell me how to save a flash with .SWF.
    When I want to create a new project, I can chose between nine
    types of documents, and I want to make a flash for a website. What
    type of document would you chose if you were me ?
    I can't write the name of the diferent types of documents,
    because I have this programme in Spanish.
    Can you help me ?
    Thank you

    FLA is the native source format - make your movie and then
    publish to SWF -
    you can not create an SWF initially - SWF is the
    exported/published format
    of your FLA>
    "Marti_17" <[email protected]> wrote in
    message
    news:gioa0k$otm$[email protected]..
    > Hi, I have the 'Adobe Flash CS3 Professional', and I
    want to know if you
    > could
    > tell me how to save a flash with .SWF.
    > When I want to create a new project, I can chose between
    nine types of
    > documents, and I want to make a flash for a website.
    What type of document
    > would you chose if you were me ?
    >
    > I can't write the name of the diferent types of
    documents, because I have
    > this
    > programme in Spanish.
    >
    > Can you help me ?
    > Thank you
    >
    >

  • How to save a photo with a password on a mac

    how to save a photo with a password on a mac

    http://osxdaily.com/2012/08/12/encrypt-folders-mac-os-x/
    Note: I have never tried this.
    Best.

  • Any tool that generates a sample XML with some data given an xsd

    hello friends, is there any free tool availaible that generates a sample XML with some data given an xsd . please do let me know

    got it guys, xmlspy and stylus studio , neways thanks

  • I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    I started to learn HTML, and I'm using text edit and everything is going fine, when I save the file with a .html extension and open it with safari I only view the code and not the webpage that was supposed to be created.

    That is because you don't have a web server configured and running to serve the html page. In order to see the page in a browser you need to access it using a url similar to http://localhost/~yourUserName if you are serving the page from your user account.
    Prior to Mountain Lion you could go into web sharing and turn on the web server. With Mountain Lion there is no option, other than using terminal, to turn on the web server. The web sharing menu item has been removed in Mountain Lion. Apache is still on your computer but it will take a little searching these forums or the Internet to find how to turn it on.
    If you want a graphic user interface to turn on/off the Apache server you could download and install a server application like xampp, http://www.apachefriends.org/en/xampp.html. I use this and it works well.

  • How to save PDF file with predefined name?

    Hi,
    I am new in LiveCycle Designer. I have a requirement to save a PDF file with predefined file name. When user clicks a "Save as PDF" button, the fillable form is saved with the name from the form fields (e.g. FormID_UserID_Timesstamp...)
    I added a button (btnSavePDF) to the form (Control Type=Regular). Then I added an action with the Condition:"When button is clicked" and the Result: "Save the form". I got the JavaScripts it genreated:
      CoverPageForm.FormPage.btnSavePDF::click - (JavaScript, client)
    app.execMenuItem("SaveAs");
    When I tested it in Adobe Acorbat XI, I have option to save it as .pdf or other file formats. My questions is how can I save it with the predefined file name as a .pdf file, instead user has option to change the file name or change the file format? Can app.execMemuItem() method take other parameters?
    Thanks
    Sam

    You can't do it with app.execMenuItem. You can use the doc.saveAs method, but it has to be executed in a privileged context. For your application this means a folder-level JavaScript file that would have to be installed on each user's machine or with code in a certified PDF that the users chooses to trust to allow for privileged JavaScript execution.
    More information on the saveAs JavaScript method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.524.html
    and some sample code relevant to the folder-level JavaScript option: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.168.html
    All of the sample code shown is for a regular PDF, so you'll have to adjust slightly for using with an XFA.

  • I am in hurry,how to save  the xml file without attributes

    i have the following xml file with attributes,
    <?xml version="1.0"?>
    <Ve2.Configuration>
         <Ve2.Displaymanager>
              <type type="combobox">eVeDisplayStandardType</type>
              <setCounter type="bool">false</setCounter>
              <frames type="textfield">20</frames>
         </Ve2.Displaymanager>
    </Ve2.Configuration>
    but i want to save it without attributes, that means, my saved xml file look like this.:
    <?xml version="1.0"?>
    <Ve2.Configuration>
         <Ve2.Displaymanager>
              <type >eVeDisplayStandardType</type>
              <setCounter >false</setCounter>
              <frames20</frames>
         </Ve2.Displaymanager>
    </Ve2.Configuration>
    how can i do it with java.

    If you know the format of the XML file, then you can write a straight forward XSL file to transform it.
    Paul
    www.codetelligence.com

  • How to save a variant with dynamic selections parameters

    Anybody knows how to save a variant for an ABAP that uses a Logical database with Dynamic Selections?
    Have a look for example to the following:
    SE38 - DEMO_PROGRAM_GET - Execute - Shift F4 - Connection Number.
    How to save 0820 as Connection Number?
    Function Group SVAR seems good but FREE SELECTIONs are not easy to manage...

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • How to save an entity with description and a file?

    Hi everybody!
    I have an entity Video:
    @Entity
    public class Video {
    @PrimaryKey
    private String title;
    @SecondaryKey(relate = MANY_TO_ONE, relatedEntity=Journalist.class)
    private String jorName;
    @SecondaryKey(relate = MANY_TO_ONE, relatedEntity=Operator.class)
    private String oName;
    @SecondaryKey(relate = MANY_TO_ONE)
    private Date date;
    @SecondaryKey(relate = MANY_TO_ONE)
    private String place;
    private File file;
    the video accesor for PK is:
    PrimaryIndex<String,Video> pIdx=store.getPrimaryIndex(String.class, Video.class);
    A user opens a form(it is written in swing) and fills in the title, name of the author, date, place of the video and browsers a file from some source. Now the user presses button "upload" and the whole object must be put to database. I dont understand how the whole object(file with filled description) can be put to db?
    Below is actionPerformed function:
    public void actionPerformed(ActionEvent e) {
    Object source = e.getSource();
    if (e.getSource() == btnBrowse) {
    int returnVal = fc.showOpenDialog(VideoPanel.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    textField.setText(file.toString());
    if(source == btnUpload){
    if(text1.getText().equals("")&&text2.getText().equals("")&&text3.getText().equals("")){
    //how to put the whole object?
    Thanks in advance!

    Hello,
    I dont understand how the whole object(file with filled description) can be put to db?Have you read the documentation and examples about how to use the com.sleepycat.persist API to write and read persistent objects? If so, what specifically is confusing? Be sure to look at the example programs.
    We can help with questions about our APIs, once you've read the doc, but please understand that we won't be able to supply you with the code to integrate with your Swing app -- that's your job.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to save a BufferredImage with RGB color encoded JPEG file.

    Hi, I am new to Java Imaging API programming.
    When I try to write a BufferredImage using following code -
    BufferedImage output = new BufferedImage (width, height, BufferedImage.TYPE_INT_ARGB);
    // Save
    File outputFile = new File("image.jpeg");
    ImageIO.write(output, "jpeg", outputFile);
    It seems that myfile.jpg have CMYK color encoding, Can someone tell me how can I save the BufferredImage with RGB color encoding.
    Thanks,
    Sanjay Ujjainkar

    how to format the text ?
    i have format ted the text but it seems not work!
    Message was edited by:
    Enjoyfans

  • How to save a clip with a transparent background?

    How do i save a clip with a transparent background to export to quicktime and then be able to import it back into my timeline and have it be able to overlay ontop of another clip? Transparent clip is for lower third

    For transparency to work, you need to save it in a format that has an alpha channel. Not sure if FCE supports the Animation codec but if it does you'll want your material as "millions of colors +". The "+" means Alpha.
    x

  • How to save files received with iChat?

    I was in a text chat with a friend. He sent me an mp3 file, and it showed up in the chat window with the familiar play controls of Quicktime.. I was able to listen to it and everything. However, I couldn't figure out how to save the files??? All I could do was play, rewind etc...no way that I could see to save it.
    Any help you can provide?
    Thanks,
    John
    PowerMac G5 Dual 2.3   Mac OS X (10.4.2)  

    Hi John,
    You should be able to drag it from the window to the Desktop and subsequently, any folder.
    Alternatively you can set iChat to save all Chats and replay it from there.
    Or use Save As when the App that uses the files is open with the file in question.
    Ralph

  • HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING  ?

    i am creating the xml file
    i need to validate the xml with DTD to confirm is it valid or not ?
    with out parsing...
    could you tell me how ?
    Durga

    without parsing u cant do it..

Maybe you are looking for

  • Can't make Windows work and can't remove it

    I've given up trying to fix Windows and so figure to remove it altogether. But Bootcamp Assist is of no use. All I get when I try to continue (after choosing whether or not to check for updates) is: The Startup disk cannot be partitoned or restored t

  • Session in JSF JSP page

    Hi All, I am using JSF JSP pages. One such page is login.jsp I have backing object backing_login On successful login, listUser.jsp page is displayed. In this page, I have a HTML --- Commons Hyperlink component as follows.   <tr>               <td hei

  • Sharing apps between iPad and macbook

    Hi: I have an Ipad, and I had pages and numbers app installed. Just bougth a Macbook pro how do I share the apps from Ipad to Macbook? thanks.

  • Can I used the Adobe Master Collection CS4 Student Edition for Commercial use?

    I live in the UK as well. I want to know whether I can do some freelance work with this software or whether I need to upgrade to commercial. Thanks!

  • F7 & F8 shortcut keys not working with Apple's new keyboard

    Using a Mac with Macs newish low profile keyboard. Nothing happens when I use these keys. The F5 & F6 keys work just fine. Is there something I'm doing wrong? Or is the new Apple keyboard not compatible with these shortcuts? What to do? plmk, thanks.