xml spy
Previous  Top  Next
Adding elements with drag and drop

To add elements using drag and drop:
There is a quicker method of adding new elements to a schema, which avoids multiple menu commands:

1.Click the Name element, hold down the CTRL key, and drag "slightly" with the mouse.  
A marquee with a small "plus" icon appears, showing that you are about to copy the element.  

tut_11a  

2.Release the mouse button to create the new element. If the new element appears somewhere else, just drag it near to the Name element and drop it there.  
This method creates an element of the same type, with the same settings as the one copied.  

tut_11b  

3.Type "Street" to change the element name.  
4.Use the same method to create a third element, "City".  
The content model should now look like this:  

tut_11c  

Previous  Top  Next

© 2002 Altova