Content deleted Content added
Citation bot (talk | contribs) Alter: url. URLs might have been anonymized. Removed parameters. | Use this bot. Report bugs. | Suggested by Whoop whoop pull up | #UCB_webform 29/48 |
m Fixed typos (via WP:JWB) |
||
Line 2:
An '''XML editor''' is a [[markup language]] editor with added functionality to facilitate the [[editing]] of [[XML]]. This can be done using a [[plain text]] [[text editor|editor]], with all the code visible, but XML editors have added facilities like [[word completion|tag completion]] and menus and buttons for tasks that are common in XML editing, based on data supplied with [[document type definition]] (DTD) or the XML tree.
There are also [[List of XML editors|graphical XML editors]] that hide the code in the background and present the content to the user in a more user-friendly format, approximating the [[Rendering (computer graphics)|rendered]] version or editing forms.
==Functionality beyond syntax highlighting==
Line 31:
==WYSIWYG editors==
WYSIWYG editors let people edit files directly with the tags represented by some form of graphical viewing rather than bare XML code. Often, WYSIWYG editors attempt to emulate the
Naive use of a WYSIWYG editor can lead to the creation of documents that do not have the intrinsic semantics of the particular XML language. This comes about if the user is focused on trying to achieve a certain visual presentation with the editor, rather than using the WYSIWYG to make editing the document easier. For instance, someone creating a [[web page]] could use an H2 element (meaning: second level title) instead of H1 (meaning: first level title) because it looks smaller on their current WYSIWYG editor. Such an author is making a choice based on the apparent visual representation, but a visitor to the author's web page can offer a very different rendering in their [[Web browser|browser]].
Line 37:
However, as long as the underlying meaning of the document is understood by the author, and the author does not make decisions based on the exact look in the WYSIWYG editor, such an editor can be of value to the writer. It is generally much easier to read a document that is being rendered in some fashion than it is to read the raw XML code. Also, editing can be much more intuitive, as the WYSIWYG editor can use tools similar to many word processing applications. Some WYSIWYG editors even allow the user to use a DTD or Schema and define their own user interface for editing.
Usually WYSIWYG editors support CSS but not XSLT, because XSLT transformations can be very complex, and guessing what the user meant when changing the
[[File:Xml editor table.png|editing an XML file in a WYSIWYG editor]]
|