File tree Expand file tree Collapse file tree 4 files changed +35
-1
lines changed
src/Magento/AcceptanceTestFramework Expand file tree Collapse file tree 4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,10 @@ protected function convertXml($elements)
79
79
80
80
foreach ($ elements as $ element ) {
81
81
if ($ element instanceof \DOMElement) {
82
+ if ($ element ->getAttribute ('remove ' ) == 'true ' ) {
83
+ // Remove element
84
+ continue ;
85
+ }
82
86
if ($ element ->hasAttribute ('xsi:type ' )) {
83
87
if ($ element ->hasAttribute ('path ' )) {
84
88
$ elementData = $ this ->getAttributes ($ element );
Original file line number Diff line number Diff line change 94
94
</xs : extension >
95
95
</xs : simpleContent >
96
96
</xs : complexType >
97
- </xs : schema >
97
+
98
+ <xs : attributeGroup name =" removeAttribute" >
99
+ <xs : attribute type =" xs:boolean" name =" remove" use =" optional" default =" false" >
100
+ <xs : annotation >
101
+ <xs : documentation >
102
+ Set to true to remove this element during parsing.
103
+ </xs : documentation >
104
+ </xs : annotation >
105
+ </xs : attribute >
106
+ </xs : attributeGroup >
107
+ </xs : schema >
Original file line number Diff line number Diff line change 125
125
<xs : minLength value =" 1" />
126
126
</xs : restriction >
127
127
</xs : simpleType >
128
+
129
+ <xs : attributeGroup name =" removeAttribute" >
130
+ <xs : attribute type =" xs:boolean" name =" remove" use =" optional" default =" false" >
131
+ <xs : annotation >
132
+ <xs : documentation >
133
+ Set to true to remove this element during parsing.
134
+ </xs : documentation >
135
+ </xs : annotation >
136
+ </xs : attribute >
137
+ </xs : attributeGroup >
128
138
</xs : schema >
Original file line number Diff line number Diff line change 90
90
<xs : minLength value =" 1" />
91
91
</xs : restriction >
92
92
</xs : simpleType >
93
+
94
+ <xs : attributeGroup name =" removeAttribute" >
95
+ <xs : attribute type =" xs:boolean" name =" remove" use =" optional" default =" false" >
96
+ <xs : annotation >
97
+ <xs : documentation >
98
+ Set to true to remove this element during parsing.
99
+ </xs : documentation >
100
+ </xs : annotation >
101
+ </xs : attribute >
102
+ </xs : attributeGroup >
93
103
</xs : schema >
You can’t perform that action at this time.
0 commit comments