Download Article
Download Article
XML, which stands for Extensible Markup Language, is a markup language designed to carry data and text. While XML is similar to HTML, XML carries data instead of displaying it. HTML displays data. For this reason XML is sometimes considered hard to understand. However, XML is an important component of many websites, so understanding how to edit XML files can be to your advantage.
Steps
-
Install your chosen XML editor on your computer.Advertisement
-
Restart your computer, if necessary.
-
Familiarize yourself with your XML editor's workspace.
-
Familiarize yourself with user resources associated with your XML editor, such as websites and online user forums.
-
Locate the XML file you wish to edit.
-
Open the file you wish to edit by double clicking the file name. The file will open and display the existing code.
-
Edit your XML file.
-
Review your editing.
- Be sure all XML elements have an opening and closing tag. Keep in mind that XML tags are case sensitive.
- Be sure your XML file contains one root element.
- Be sure the attribute values within your XML file are surrounded by quotation marks. Attributes are items within the XML code that provide further information about an element that is not available elsewhere in the data.
- Be sure all XML elements are properly nested.
-
Correct any errors you discover when reviewing your XML file.
-
Use your XML editor's validating tool to validate your XML file. Your XML document will not run if it contains errors.
-
Correct any errors identified during file validation.
-
Save your newly edited XML file.
-
View your XML file in a web browser. If your XML file is invalid, it will not display.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- XML is the basis for many new Internet languages such as RSS, which is used in news feeds, and WAP and WML, which are used by mobile devices. Using XML to format information also makes it compatible across multiple platforms, languages and applications and can make data more easily accessible by web users with disabilities.Thanks
- XML was developed for structuring, storing and transporting data. It has no other function. Therefore, XML's focus is on the data itself, rather than how the data looks. You can use HTML or some other WYSIWYG (what you see is what you get) web editor to format the design of your web page.Thanks
- XML files can also be edited using your computer's notepad program and even with certain word processing and spreadsheet programs. However, XML editors are considered advantageous because they are able to validate your code and ensure you remain within a valid XML structure.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Things You'll Need
- Computer
- XML file or files
- Internet access
- Basic understanding of HTML and JavaScript.
References
About This Article
Thanks to all authors for creating a page that has been read 179,025 times.
Advertisement