permaculture playing cards
The moose likes XML and Related Technologies and the fly likes Editing XML files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Editing XML files" Watch "Editing XML files" New topic

Editing XML files

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
When I double click on XML file, it opens up , but I can not edit it. Tag names are in red color and variables are in black color. What kind of format is this ?

While same file if I open in word format, I can edit it and all tag names and variables are in black color.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
What application is opening the file? If it's a browser then you won't be able to edit; use a proper text editor instead.
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

If you double click on a XML file, it normally open up in a browser - because this is the default application for a XML file.

If you want to be able to double click and it open up in a text editor, you should change the XML file type's default application to a text editor of choice.

You can also right click on the XML file and choose another application to open the XML in.

I don't know the OS you are working on, so I can't give you the specific guide line to how to do change the file type application link.

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: Editing XML files
It's not a secret anymore!