1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
|
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kxmleditor "<application>KXML Editor</application>" >
<!ENTITY kappname "&kxmleditor;">
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"> <!-- change language only here -->
]>
<book lang="&language;">
<bookinfo>
<title>The KXML Editor Handbook</title>
<authorgroup>
<author>
<firstname>Lumir</firstname>
<othername></othername>
<surname>Vanek</surname>
</author>
<author>&tde-authors;</author>
</authorgroup>
<copyright>
<year>2004</year>
<holder>Lumir Vanek</holder>
</copyright>
<copyright>
<year>&tde-copyright-date;</year>
<holder>&tde-team;</holder>
</copyright>
<legalnotice>&FDLNotice;</legalnotice>
<date>&tde-release-date;</date>
<releaseinfo>&tde-release-version;</releaseinfo>
<abstract>
<para>
KXML Editor is an application for browsing and editing XML files.
</para>
</abstract>
<keywordset>
<keyword>TDE</keyword>
<keyword>KXML Editor</keyword>
<keyword>XML Editor</keyword>
</keywordset>
</bookinfo>
<chapter id="some-fundamentals">
<title>Some Fundamentals</title>
<para>
Extensible Markup Language (XML) is wide standard for exchanging and
transferring data in application development. XML stores character data
in a structured way, using tags placed within the data representing its structure.
An XML document has a tree structure, where "XML element" tags comprise the nodes.
The "root element", begets all the other elements in the tree. All elements except the root
have a single parent. Elements may contain character data - "XML contents".
An element node may also own a list of "attributes".
</para>
<para>
<screenshot>
<screeninfo>XML structure</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="xml.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
You may obtain <ulink url="http://www.zvon.org">more informations</ulink>
about XML on Web.
</para>
</chapter>
<chapter id="introduction">
<title>Introduction</title>
<para>
KXML Editor is a program that lets you browse and edit XML files. Main window is divided
to two windows.
</para>
<para>
Left side contain tree widget with XML structure. XML document has tree structure, one (and only one)
element is root. Every element may own one or more child elements or contents items.
</para>
<para>
Right side contain detail for selected item. If XML element is selected in left side,
attributes list and raw XML are displayed. If XML contents is selected in left side, edit
widget with full context is displayed.
</para>
<para>
<screenshot>
<screeninfo>Here's a screenshot of &kxmleditor;</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="screenshot.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
KXML Editor contain two toolbars with buttons - one with standard commands and second with
commands for edit XML document. Third toolbar contain Konqueror-like path bar, that display
path of selected XML item.
</para>
<para><interface>The Pathbar</interface> shows the path to the selected XML item,
You can type a path here and press <keycap>Enter</keycap> to go to it.
You may use combobox in path bar for select bookmarked item.
The black icon at the left hand end of the Pathbar clears the text entry box.
</para>
</chapter>
<chapter id="edit-xml">
<title>Edit XML document</title>
<para>
User may edit XML document using menu commands, or using drag and drop.
</para>
<note><para>
Moving elements using clipboard or drag and drop has one side effect to
bookmarks system. Moving elements and their subtrees leave its paths in
<interface>Pathbar</interface> combobox nonvalid. </para>
<para>
When you cut/copy and paste items with bookmarks, or drag and drop it, bookmarks are not
transfered.
</para>
</note>
<sect1 id="clipboard">
<title>Using clipboard</title>
<para>To copy a XML element or contents item you can:</para>
<para>
<itemizedlist>
<listitem><para>If the item is selected you can use the
<guiicon>Copy</guiicon> button on the Toolbar or the Menubar
<menuchoice><guimenu>Edit</guimenu> <guimenuitem>Copy</guimenuitem></menuchoice>
item, or the <keycombo action="simul"><keycap>Ctrl</keycap><keycap>C</keycap></keycombo>
hotkey.</para></listitem>
<listitem><para>Then select item, where you can copy XML element.</para></listitem>
<listitem><para><guiicon>Finally, use Paste</guiicon> button or the Menubar
<menuchoice><guimenu>Edit</guimenu>
<guimenuitem>Paste</guimenuitem></menuchoice> option or the <keycombo
action="simul"><keycap>Ctrl</keycap><keycap>V</keycap></keycombo> hotkey.
</para></listitem>
</itemizedlist></para>
<para>Moving a XML element or contents item can be done in the same
way as copying, except that you choose the <guimenuitem>Cut</guimenuitem> option
or <keycombo action="simul"><keycap>Ctrl</keycap><keycap>X</keycap></keycombo>
instead of <guimenuitem>Copy</guimenuitem>.</para>
<note><para>
You can also exchange XML between &kxmleditor; and text editor using clipboard. Of course,
when you paste XML element, clipboard must contain well formed XML.
</para></note>
</sect1>
<sect1 id="drag-drop">
<title>Using Drag 'n Drop</title>
<para>&kxmleditor; supports Drag and Drop copying and moving of elements and
contents items.</para>
<procedure>
<step><para>Set the tree view to show the item you wish to move. If you can copy,
press <keycap>Ctrl</keycap> button and hold it.
</para></step>
<step><para>Position the mouse pointer over source item name or icon then, holding the &LMB;
pressed, <quote>drag</quote> it over to the tree view and position the
mouse pointer over the target item. Release the mouse button and <keycap>Ctrl</keycap> if you
made copy.
</para></step>
</procedure>
<note><para>
You can also drag and drop between different instances of &kxmleditor;. Also is possible drag from
&kxmleditor; and drop into text editor.
</para></note>
</sect1>
<sect1 id="Encoding">
<title>Encoding</title>
<para>&kxmleditor; supports XML document encoding.</para>
<para>
When file is loaded, parser get information about encoding from processing instruction
<?xml encoding="xxxx" ?> and convert XML to Unicode.
</para>
<para>
&kxmleditor; works internally with Unicode strings.
</para>
<para>
While saving, &kxmleditor; convert XML from Unicode to encoding that depends on processing
instruction <?xml encoding="xxxx" ?>, where xxxx may be ISO-8859-1, ISO-8859-2, UTF-8 etc.
If you change encoding, you change codec, that is used while saving.
</para>
</sect1>
<sect1 id="KParts">
<title>KParts</title>
<para>&kxmleditor; supports KParts technology.</para>
<para>
If you browse directory using Konqueror, you may select XML file and click on it by right
mouse button. Then you may choose menu item <menuchoice><guimenu>Preview in</guimenu></menuchoice>
and <menuchoice><guimenu>KXML Editor</guimenu></menuchoice> that starts KXML editor inside Konqueror
main window.
<screenshot>
<screeninfo>Special processing instruction dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="tdeparts.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
</sect1>
</chapter>
<chapter id="the-menu-entries">
<title>The Menu Entries</title>
<sect1 id="file-menu">
<title>The <guimenu>File</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>N</keycap></keycombo></shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>N</accel>ew</guimenuitem>
</menuchoice></term>
<listitem><para><action>Creates a new XML document. If there is a current document
with unsaved changes the user is given a chance to save it. Program show dialog for
special processing instruction, you may choose XML version and encoding.
</action>
<screenshot>
<screeninfo>Special processing instruction dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="specprocinstrdlg.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>O</keycap></keycombo></shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>O</accel>pen</guimenuitem>
</menuchoice></term>
<listitem>
<para>
This command opens a file. It does this by means of a dialog box
which allows the user to navigate the file system. The dialog operates
like a small file manager. Clicking on directories displayed in the
central window directs the dialog to enter that directory - displaying its
contents. There is an entry/dropdown box which can be used to type in
directly the location and name of the file or by clicking the arrow at the
side choose from a dropdown list of recently used locations. Below this is
a filter which similarly may have data entered directly or chosen from a
dropdown list of recent filter types. The filter facility lets only files
that meet its specifications be displayed in the central window. If the
filter contained text such as <literal role="extension">*.xml</literal> then only files
with the txt extension would be visible in the selection window. Below the filter
is a status bar giving information about the number of files and subdirectories
within the current directory.
</para>
<para>The toolbar, which is located at the top of the dialog, has left and right
arrow buttons that let the user move back and forth through previously selected
directories as well as an up arrow button for moving up the directory tree. The
button with the little house takes the user to his or her home directory and the one
with the two arrows curved in on each other updates the view of the current
directory. The flag button lets the user set a new bookmark at the current directory
or go to one that was previously set. <!-- The button with the wrench (spanner) -->
<!-- icon even permits the user to change a few basic settings for the dialog -->
<!-- box. --> The last button on the toolbar allows you to create a new
directory, and finally there is dropdown box with a list of some commonly
frequented directories.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem>Open<accel>R</accel>ecent</guimenuitem>
</menuchoice></term>
<listitem><para>
This is a shortcut to open recently saved documents. Clicking on
this item opens a list to the side of the menu with several of the most recently
saved files. Clicking on a specific file will open it in &kxmleditor; - if the file
still resides at the same location.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>S</keycap></keycombo></shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>S</accel>ave</guimenuitem>
</menuchoice></term>
<listitem><para><action>
This saves the current document. If there has already been a save of the document then this
will overwrite the previously saved file without asking for the user's consent. If it is the
first save of a new document the save as dialog (described below) will be invoked.
</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Save <accel>A</accel>s</guimenuitem>
</menuchoice></term>
<listitem><para>
This allows a document to be saved with a new file name. This is
done by means of the file dialog box described above in the Open
section of this help file.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem><accel>M</accel>ail</guimenuitem>
</menuchoice></term>
<listitem><para>
This allows mail document using your mail client.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem><accel>V</accel>ersion & Encoding</guimenuitem>
</menuchoice></term>
<listitem><para>
Program show dialog for special processing instruction, you may choose XML version and encoding.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Attach Schema</guimenuitem>
</menuchoice></term>
<listitem><para>
This allow to attach DTD schema file.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Detach Schema</guimenuitem>
</menuchoice></term>
<listitem><para>
This allow to remove DTD schema file.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Attach Stylesheet</guimenuitem>
</menuchoice></term>
<listitem><para>
This allow to insert processing instruction for attaching schema (obviously .xsl or .xslt) file.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Detach Stylesheet</guimenuitem>
</menuchoice></term>
<listitem><para>
This allow to remove processing instruction for attaching schema.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem><accel>P</accel>rint</guimenuitem>
</menuchoice></term>
<listitem><para>
This allow print document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Q</keycap></keycombo></shortcut>
<guimenu><accel>F</accel>ile</guimenu>
<guimenuitem><accel>Q</accel>uit</guimenuitem>
</menuchoice></term>
<listitem><para><action>Quits</action> &kxmleditor;</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="edit-menu">
<title>The <guimenu>Edit</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Z</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>U</accel>ndo</guimenuitem>
</menuchoice></term>
<listitem>
<para>This is used to eliminate or reverse the most recent user action or operation.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>Z</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>R</accel>edo</guimenuitem>
</menuchoice></term>
<listitem>
<para>This will reverse the most recent change (if any) made using Undo
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Edit->Undo/Redo History</guimenu>
</menuchoice></term>
<listitem>
<para>
This will call a display box showing a list of the most recent actions on the left and another
list of actions which have been 'undone' on the right. There are also three buttons at the
right of the box labeled Undo, Redo, and Close. Clicking on the Undo button will cause the action
at the top of the Undo list to be reversed which will place that particular action at the top of
the Redo list. Likewise, clicking on the Redo button will reinstate the reversed action and move
it back to the top of the Undo list. Clicking on an item below the top item in either list will
select all the items from the top down to that point. A subsequent click on the corresponding
button will cause all the selected actions to be undone or redone accordingly. This would be
particularly useful when the user knows precisely the point to which she or he would like to
proceed, making it unnecessary to go through a series of single undo or redo actions.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>X</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>C<accel>u</accel>t</guimenuitem>
</menuchoice></term>
<listitem>
<para>This command deletes the current selection and places it on the clipboard. The
clipboard is a feature of &tde; that works invisibly to provide a way to transfer data between
applications.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>C</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>C</accel>opy</guimenuitem></menuchoice></term>
<listitem>
<para>This copies the currently selected text to the clipboard so that it may be
pasted elsewhere. The clipboard is a feature of &tde; that works invisibly to
provide a way to transfer data between applications.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>V</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>P</accel>aste</guimenuitem>
</menuchoice></term>
<listitem>
<para>This will insert the contents of the clipboard at the cursor position. The
clipboard is feature of &tde; that works invisibly to provide a way to transfer
data between applications.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Del</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>D</accel>elete</guimenuitem>
</menuchoice></term>
<listitem>
<para>This will delete selected XML node, including their child subtree, if any</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Delete all attributes</guimenuitem>
</menuchoice></term>
<listitem>
<para>This will delete all attributes that contain selected XML element</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Move <accel>U</accel>p</guimenuitem>
</menuchoice></term>
<listitem>
<para>Move selected node Up, in their parent list</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Move <accel>D</accel>own</guimenuitem>
</menuchoice></term>
<listitem>
<para>Move selected node Down, in their parent list</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>E</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>D<accel>e</accel>select node</guimenuitem>
</menuchoice></term>
<listitem>
<para>This unselect node</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>F</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>F</accel>ind</guimenuitem></menuchoice></term>
<listitem>
<para>This opens the find dialog which is used to specify the <guilabel>Text to
Find</guilabel> in the document. There is small text box for entering the search
pattern. Other parameters are included to make the search more efficient. Selecting
<guilabel>Case Sensitive</guilabel> will limit finds to entries that match the
case (upper or lower) of each of the characters in the search
pattern.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>F3</keycap></keycombo></shortcut>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Find <accel>N</accel>ext</guimenuitem></menuchoice></term>
<listitem>
<para>This repeats the last find operation, if any, without calling the find
dialog box.
</para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem><accel>P</accel>roperties</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Display dialog which allows the user to change selected node properties. Dialog type
depends on selected item type.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>E</accel>dit</guimenu>
<guimenuitem>Edit <accel>r</accel>aw XML</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Display dialog which allows the user to edit selected element as raw XML.
</para>
<screenshot>
<screeninfo>Special processing instruction dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="textview.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
<para>
You may press Validate button for checking, if XML is well formed.
</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="view-menu">
<title>The <guimenu>View</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Alt</keycap><keysym>Up Arrow</keysym></keycombo></shortcut>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem>To <accel>P</accel>arent node</guimenuitem></menuchoice></term>
<listitem>
<para>Go up a level in the tree hierarchy. Select parent node.</para> </listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keysym>Plus</keysym></keycombo></shortcut>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem>E<accel>x</accel>pand node</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Expand selected XML element and show entire child subtree.
</para>
<para>
Tip: You may expand node to chosen level. Press button for this function on toolbar,
hold mouse pressed for small amount of time. Program show menu, which allows the user to
expand node to selected level.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keysym>Minus</keysym></keycombo></shortcut>
<guimenu><accel>V</accel>iew</guimenu>
<guimenuitem><accel>C</accel>ollapse node</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Collapse selected XML element and hide entire child subtree.
</para>
<para>
Tip: You may collapse node from chosen level. Press button for this function on toolbar,
hold mouse pressed for small amount of time. Program show menu, which allows the user to
collapse node from selected level.
</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="insert-menu">
<title>The <guimenu>Insert</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>E</keycap></keycombo></shortcut>
<guimenu><accel>I</accel>nsert</guimenu>
<guimenuitem><accel>E</accel>lement</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML element into tree. Display dialog which allows the user to enter element name.
If you have void document, new element becomes root. If you have selected any existing element,
new element becomes child of this element. You may decide, if new element will be placed to
begin or end of child items list.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>A</keycap></keycombo></shortcut>
<guimenu><accel>I</accel>nsert</guimenu>
<guimenuitem><accel>A</accel>ttribute</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML attribute for selected XML element. Display dialog which allows the user to enter
attribute name and value. Attribute name is checked for duplicity before inserting into
attribute list.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>T</keycap></keycombo></shortcut>
<guimenu><accel>I</accel>nsert</guimenu>
<guimenuitem><accel>T</accel>ext</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML text item into tree. Display dialog which allows the user to enter contents text.
New item becomes child of selected XML element. You may decide, if new item will be
placed to begin or end of child items list.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>D</keycap></keycombo></shortcut>
<guimenu><accel>I</accel>nsert</guimenu>
<guimenuitem>C<accel>D</accel>ATA</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML CDATA item into tree. Display dialog which allows the user to enter contents text.
New item becomes child of selected XML element. You may decide, if new item will be
placed to begin or end of child's items list.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>C</keycap></keycombo></shortcut>
<guimenu><accel>I</accel>nsert</guimenu>
<guimenuitem><accel>C</accel>omment</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML comment item into tree. Display dialog which allows the user to enter contents text.
New item becomes child of selected XML element. You may decide, if new item will be
placed to begin or end of child's items list.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>Shift</keycap><keycap>P</keycap></keycombo></shortcut>
<guimenu><accel>X</accel>ML</guimenu>
<guimenuitem>Insert <accel>p</accel>roc. instruction</guimenuitem>
</menuchoice></term>
<listitem>
<para>
Insert new XML processing instruction into tree. Display dialog which allows
the user to enter target and data.
</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="bookmarks-menu">
<title>The <guimenu>Bookmarks</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Ctrl</keycap><keycap>B</keycap></keycombo></shortcut>
<guimenu><accel>B</accel>ookmark</guimenu>
<guimenuitem><accel>T</accel>oggle bookmark</guimenuitem>
</menuchoice></term>
<listitem>
<para>This creates a marker in the document at the selected item. Bookmarked item path as added
into Pathbar combo. User may traverse bookmarks using
Previous or Next Bookmark command,
or directly select bookmarked item in Pathbar combobox.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Shift</keycap><keycap>F5</keycap></keycombo></shortcut>
<guimenu><accel>B</accel>ookmark</guimenu>
<guimenuitem><accel>P</accel>revious bookmark</guimenuitem>
</menuchoice></term>
<listitem>
<para>Move selection to previous bookmark in document, relative to selected item. Bookmarked items,
that are closed is skipped.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>F5</keycap></keycombo></shortcut>
<guimenu><accel>B</accel>ookmark</guimenu>
<guimenuitem><accel>N</accel>ext bookmark</guimenuitem>
</menuchoice></term>
<listitem>
<para>Move selection to next bookmark in document, relative to selected item. Bookmarked items,
that are closed is skipped.
</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="window-menu">
<title>The <guimenu>Window</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<guimenu><accel>C</accel>lose</guimenu>
</menuchoice></term>
<listitem>
<para>
Close the current document.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Close <accel>a</accel>ll</guimenu>
</menuchoice></term>
<listitem>
<para>
Close all documents.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>Close all <accel>o</accel>thers</guimenu>
</menuchoice></term>
<listitem>
<para>
Close all documents except the current document.</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="settings-menu">
<title>The <guimenu>Settings</guimenu> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show <accel>T</accel>oolbar</guimenuitem>
</menuchoice></term>
<listitem>
<para>
When checked, this displays a movable toolbar containing buttons used to
initiate frequently used commands. When unchecked the toolbar is hidden.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Show <accel>S</accel>tatusbar</guimenuitem>
</menuchoice></term>
<listitem>
<para>When checked, this displays a small bar at the bottom of the main window
containing information about the status of the current document. When unchecked
the statusbar is hidden.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>S</accel>ettings</guimenu><guimenuitem>Configure
S<accel>h</accel>ortcuts</guimenuitem></menuchoice></term>
<listitem>
<para>This command opens a dialog box whereby the key bindings may be changed.
A display window at
the top of the dialog box shows the list of commands (actions) that can have
keyboard shortcuts. Below the display are three radio buttons. The user may choose
between No Key, Default Key, and Custom Key. (Note that a set of radio buttons only
allows the selection of one of the offered items - in the way that buttons on a car
radio only offer the selection of one preset station. Also, the Default Key
selection is only available for those commands that actually have a 'default'
shortcut.) Selecting the Custom Key option activates the three check boxes and key
button at the bottom of the dialog. The user may then select a key
combination for the command in question by means of the check boxes and key
button. For example, with the About &tde; command selected in the display window,
the user could select <keycap>Ctrl</keycap> and <keycap>Alt</keycap>, click on
the key button, and then press the <keycap>K</keycap> key on the keyboard. This
would mean that anytime he or she held down the <keycap>Ctrl</keycap> and
<keycap>Alt</keycap> buttons and pressed <keycap>K</keycap> (while using
&kxmleditor;) the About &tde; display box would be called. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem>Configure Tool<accel>b</accel>ars</guimenuitem>
</menuchoice></term>
<listitem><para>This will open the dialog whereby the toolbars configuration may
be changed. The user can choose which shortcut buttons should appear on the
toolbar. A display window on the left lists the commands available to placed
on the toolbar. A display on the right lists those commands already on the
toolbar. A set of four arrow buttons between the two displays manipulates the
selections. The right pointing arrow places any command selected in the left
pane onto the right pane, <abbrev>i.e.</abbrev>, it is added to the toolbar.
The left arrow does just the opposite, removing any action selected in the right
window from the toolbar. The up and down pointing arrows change the position of
an action selected in the right window which changes the position of its button
in the toolbar.</para> </listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>S</accel>ettings</guimenu>
<guimenuitem><accel>C</accel>onfigure &kxmleditor;</guimenuitem>
</menuchoice></term>
<listitem>
<para>This menu item opens a dialog whereby several different <link
linkend="pref-dialog">settings</link> may be adjusted.</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="help-menu">
<title>The <guimenuitem>Help</guimenuitem> Menu</title>
<para><variablelist>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>F1</keycap></keycombo></shortcut>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>C</accel>ontents</guimenuitem>
</menuchoice></term>
<listitem>
<para>This invokes the &tde; help system starting at the &kxmleditor; help pages (this document).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut><keycombo><keycap>Shift</keycap><keycap>F1</keycap></keycombo></shortcut>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem>What's <accel>T</accel>his?</guimenuitem>
</menuchoice></term>
<listitem>
<para>
This changes the mouse cursor to a combination arrow and question mark.
Clicking on items within &kxmleditor; with this arrow will open a help window (if
one exists for the particular item) explaining the item's function.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>R</accel>eport Bug</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>
This calls a dialog box to help
the user help the &tde; team to track down and solve any
problems(bugs) in the program. The dialog attempts to do this by
means of email using the information given by the user.
</action></para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>H</accel>elp</guimenu>
<guimenuitem><accel>A</accel>bout KXML Editor</guimenuitem>
</menuchoice></term>
<listitem>
<para>This will display version and author information.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu><accel>H</accel>elp</guimenu><guimenuitem>About <accel>K</accel>DE</guimenuitem></menuchoice></term>
<listitem>
<para>This displays the &tde; version and other basic information.</para>
</listitem>
</varlistentry>
</variablelist></para>
</sect1>
</chapter>
<chapter id="pref-dialog">
<title>Configure &kxmleditor;</title>
<para>Selecting
<menuchoice><guimenu>Settings</guimenu><guimenuitem>Configure
KXML Editor</guimenuitem></menuchoice> from the menu brings up the Configure-KXML Editor
dialog box. This dialog can be used to alter application settings. By means of four buttons
along the bottom of the box the user can control the process. She or he may invoke
the <guilabel>Help</guilabel> system, accept the current settings pressing <guibutton>Apply</guibutton>
button, accept the current settings and close the dialog by means of the <guibutton>OK</guibutton>
button, or <guibutton>Cancel</guibutton> the process.
</para>
<sect1 id="preftreeview">
<title>Tree View</title>
<para>This category deals with following properties detailed below.</para>
<para>
<screenshot>
<screeninfo>Tree View</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="setuptreeview.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para><variablelist>
<varlistentry>
<term><guilabel>Set root element decorated</guilabel></term>
<listitem>
<para>
Set the root element in tree view decorated.
Sets this view to show open/close sign on root item.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Default expand level</guilabel></term>
<listitem>
<para>
Set the default expand level for tree view.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Enable drag & drop</guilabel></term>
<listitem>
<para>
Enables or disables drag & drop. Disabling it may be useful, when X-Window client
and server is not on the same machine and respond time is slow, that may cause unnecessary
drag & drop operation caused while selecting in tree view.
</para></listitem>
</varlistentry>
<varlistentry>
<term>Show...</term>
<listitem><para>
This option allow display XML attributes for each element in left side tree window.
You may choose one of this options: Show only element name or Element, attribute name
or Element, attributes names and its value.
</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="preftextview">
<title>Text View</title>
<para>This category allows setting the text editor syntax highlighting.</para>
<para>
<screenshot>
<screeninfo>Text View</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="setuptextview.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
<variablelist>
<varlistentry>
<term><guilabel>Syntax highlighting</guilabel></term>
<listitem>
<para>
You may choose various colors for different XML syntax.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Element indentation</guilabel></term>
<listitem>
<para>
Choose element indentation for raw XML editing. This indentation is used also for saving document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Wrap, instead of Horizontal. Scroll bar</guilabel></term>
<listitem>
<para>
Disable horizontal scrollbar and set word wrap ON for raw XML view and editing.
</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="prefnewfiles">
<title>New Files</title>
<para>This category allow set default XML version, encoding and program behavior
while creating new document</para>
<para>
<screenshot>
<screeninfo>New Files</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="setupnewfiles.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
<variablelist>
<varlistentry>
<term><guilabel>XML version</guilabel></term>
<listitem>
<para>
Default XML version for new documents.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Encoding</guilabel></term>
<listitem>
<para>
Default XML encoding for new documents.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Creating new files</guilabel></term>
<listitem>
<para>
Behavior when creating new XML documents.
</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="prefprinting">
<title>Printing</title>
<para>This category allow set parameters for printing XML document</para>
<para>
<screenshot>
<screeninfo>Printing</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="setupprinting.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
<variablelist>
<varlistentry>
<term><guilabel>Font family</guilabel></term>
<listitem>
<para>
Choose font family for printing document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Font size</guilabel></term>
<listitem>
<para>
Choose font size for printing document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Element indentation</guilabel></term>
<listitem>
<para>
Choose element indentation for printing document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Print header</guilabel></term>
<listitem>
<para>
Choose if you can print header when printing document.
</para></listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Print footer</guilabel></term>
<listitem>
<para>
Choose if you can print footer when printing document.
</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
<sect1 id="prefarchive">
<title>Archive Extensions</title>
<para>This category allow set list of XML files, that is TarGz archives.
This allow open and save those files transparently. This may be useful
for browsing KOffice files.</para>
<para>
<screenshot>
<screeninfo>Archive Extensions</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="setuparchive.png" format="PNG" />
</imageobject>
</mediaobject>
</screenshot>
</para>
<para>
<variablelist>
<varlistentry>
<term><guilabel>Archive files extensions</guilabel></term>
<listitem>
<para>
You may edit list of files extension using <guibutton>New</guibutton> and <guibutton>Delete</guibutton>
buttons. Actually selected item may be changed using edit line.
</para></listitem>
</varlistentry>
</variablelist></para>
</sect1>
</chapter>
<chapter id="credits">
<title>Credits and License</title>
<para>
&kxmleditor; Program copyright 2001-2003 the &kxmleditor; developers:
</para>
<para><variablelist>
<varlistentry>
<term>Lumir Vanek <email>[email protected]</email></term>
<listitem><para>Developer and maintainer</para></listitem>
</varlistentry>
<varlistentry>
<term>Olaf Hartig <email>[email protected]</email></term>
<listitem><para>Developer</para></listitem>
</varlistentry>
<varlistentry>
<term>Adam Charytoniuk <email>[email protected]</email></term>
<listitem><para>Developer</para></listitem>
</varlistentry>
</variablelist></para>
<para>
Documentation copyright 2003 Lumir Vanek <email>[email protected]</email>
</para>
&underFDL;
&underGPL;
</chapter>
</book>
|