@@ -61,44 +61,47 @@ pub mod tree_builder;
61
61
#[ cfg_attr( feature = "heap_size" , derive( HeapSizeOf ) ) ]
62
62
/// Fully qualified name. Used to depict names of tags and attributes.
63
63
///
64
- /// Used to differentiate between similar XML fragments. For example
64
+ /// Used to differentiate between similar XML fragments. For example:
65
+ ///
65
66
/// ```ignore
66
- /// // HTML
67
- /// <table>
68
- /// <tr>
69
- /// <td>Apples</td>
70
- /// <td>Bananas</td>
71
- /// </tr>
72
- /// </table>
67
+ /// // HTML
68
+ /// <table>
69
+ /// <tr>
70
+ /// <td>Apples</td>
71
+ /// <td>Bananas</td>
72
+ /// </tr>
73
+ /// </table>
73
74
///
74
- /// // Furniture XML
75
- /// <table>
76
- /// <name>African Coffee Table</name>
77
- /// <width>80</width>
78
- /// <length>120</length>
79
- /// </table>
75
+ /// // Furniture XML
76
+ /// <table>
77
+ /// <name>African Coffee Table</name>
78
+ /// <width>80</width>
79
+ /// <length>120</length>
80
+ /// </table>
80
81
/// ```
81
- /// Without XML namespaces we can't use those two fragments in occur
82
- /// XML at same time. however if we declare a namespace we could instead say:
82
+ ///
83
+ /// Without XML namespaces, we can't use those two fragments in the same document
84
+ /// at the same time. However if we declare a namespace we could instead say:
83
85
///
84
86
/// ```ignore
85
- /// // Furniture XML
86
- /// <furn:table>
87
- /// <furn:name>African Coffee Table</furn:name>
88
- /// <furn:width>80</furn:width>
89
- /// <furn:length>120</furn:length>
90
- /// </furn:table>
87
+ /// // Furniture XML
88
+ /// <furn:table>
89
+ /// <furn:name>African Coffee Table</furn:name>
90
+ /// <furn:width>80</furn:width>
91
+ /// <furn:length>120</furn:length>
92
+ /// </furn:table>
91
93
/// ```
94
+ ///
92
95
/// and bind it to a different name.
93
96
///
94
- /// For this reason we parse names that contain a colon in the following way
97
+ /// For this reason we parse names that contain a colon in the following way:
95
98
///
96
99
/// ```ignore
97
- /// < furn:table>
98
- /// | |
99
- /// | +- local name
100
- /// |
101
- /// prefix (when resolved gives namespace_url)
100
+ /// < furn:table>
101
+ /// | |
102
+ /// | +- local name
103
+ /// |
104
+ /// prefix (when resolved gives namespace_url)
102
105
/// ```
103
106
pub struct QualName {
104
107
pub prefix : Option < Prefix > ,
0 commit comments