Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
student:xml:basics [2018/08/16 11:07] – created bernstdhstudent:xml:basics [2018/08/16 11:07] (current) bernstdh
Line 19: Line 19:
 XML elements that can't contain other elements have the following syntax   (sometimes called the abbreviated syntax for empty elements): XML elements that can't contain other elements have the following syntax   (sometimes called the abbreviated syntax for empty elements):
  
-<code>**<**//tag// [ //attribute//**="**//value//**"** ] ... **/>**</code>+''**<**//tag// [ //attribute//**="**//value//**"** ] ... **/>**''
  
 For example, the following might be such an element in a railroad For example, the following might be such an element in a railroad
Line 30: Line 30:
 Elements that can contain other elements have the following syntax: Elements that can contain other elements have the following syntax:
  
-<code>**<**//tag// [ //attribute//**="**//value//**"** ] ... **>** [ //component// ... ]  +''**<**//tag// [ //attribute//**="**//value//**"** ] ... **>** [ //component// ... ]  
-  **</**//tag//**>**</code>+  **</**//tag//**>**''
  
 For example, the following might be such an element in a railroad system: For example, the following might be such an element in a railroad system: