blob: 7abf2183b3ef2e3149b14225419c9795697ba773 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Editing XML processing instructions</title>
<body id="tedtproc"><a name="tedtproc"><!-- --></a>
<h1 class="topictitle1">Editing XML processing instructions</h1>
<div><p>If you have instructions you want to pass along to an application
using an XML document, you can use a processing instruction. </p>
<div class="section"><p>The following instructions were written for the Resource perspective,
but they will also work in many other perspectives.</p>
<p>To edit a processing
instruction, follow these steps:</p>
<ol><li><span>In the Design view of the XML editor, right-click your processing
instruction, and click <b> <span class="uicontrol">Edit Processing Instruction</span></b>.</span></li>
<li><span>The <b> <span class="uicontrol">Target</span></b> field is used to identify the
application the instructions belongs to.</span></li>
<li><span>The <b> <span class="uicontrol">Data</span></b> field contains the instructions.</span></li>
<li><span>Click <b> <span class="uicontrol">OK</span></b>.</span></li>
<div class="section">To create a new processing instruction, right-click in the Design
view, and click <b> <span class="uicontrol">Add Child</span></b>, <b> <span class="uicontrol">Add Before</span></b> or
<b> <span class="uicontrol">Add
After</span></b>, then click <b> <span class="uicontrol">Add Processing Instruction</span></b>.<p>
<p></b><strong>Related tasks</strong><br/>
<a href="../topics/txedtdes.html" title="The XML editor has a Design view, which represents the XML file simultaneously as a table and a tree. This helps make navigation and editing easier. Content and attribute values can be edited directly in the table cells, while pop-up menus on the tree elements give alternatives that are valid for that particular element.">Editing in the Design view</a></div></div>