How to create a blank xml file?

Discussion in 'General Programming Chat' started by netmoney1, Oct 3, 2012.

  1. netmoney1

    netmoney1 Executive VIP Jr. VIP

    Joined:
    Feb 21, 2012
    Messages:
    3,620
    Likes Received:
    11,034
    How do I create a blank xml file on a mac? text editor?- what program on a mac would I use to do that? Sorry - I am a tech noob - my webguy went home for the day. Trying to teach myself a bit - I am supposed to save as "all files" but I don't see hwo to do that...any help would be appreciated! [​IMG]
     
  2. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    540
    Likes Received:
    314
    Gender:
    Male
    On the command line using the below should work:
    Code:
    touch file.xml
    or

    Code:
    echo "" > file.xml
    If you want to make it using an edtior, save as, all files and manually type the extension on the file name should work too, you can also set TextEdit for plain text on the preferences.
     
    Last edited: Oct 4, 2012