Bonjour ma question est toute bête. Je cherche à valider un fichier xml suivant un schéma xsd. Mon ami Google m'a montré le chemin et je suis tombé sur ce code :
Tout est beau, tout compile mais, bizarrement j'ai beau mettre n'importe quoi dans mon fichier XML, aucune erreur n'est relevée. Je sais bien que l'on est en Juillet et que c'est les vacances, mais je doute que ce soit un problème de fainéantise de la part de mon code c#.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 public class XMLValidator { // Validation Error Count static int ErrorsCount = 0; // Validation Error Message static string ErrorMessage = ""; private static void ValidationHandler(object sender, ValidationEventArgs args) { ErrorMessage = ErrorMessage + args.Message + "\r\n"; ErrorsCount++; } public void Validate(string strXMLDoc, string schemaUri, string targetNameSpace) { // Set the validation settings. XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationType = ValidationType.Schema; settings.Schemas.Add(targetNameSpace, schemaUri); settings.ValidationEventHandler += new ValidationEventHandler(ValidationHandler); // Create the XmlReader object. XmlReader reader = XmlReader.Create(strXMLDoc, settings); // Parse the file. while (reader.Read()) ; reader.Close(); if (ErrorsCount > 0) { throw new Exception(ErrorMessage); } } }
voici le schéma xsd en question et le fichier xml à valider. Désolé ça prend de la place
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns="http://tempuri.org/ScanProcessingConfiguration" elementFormDefault="qualified" targetNamespace="http://tempuri.org/ScanProcessingConfiguration" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ScanProcessingConfiguration"> <xs:complexType> <xs:sequence> <xs:element ref="GlobalSettings" /> <xs:element ref="ScannersConfiguration" /> <xs:element minOccurs="0" maxOccurs="1" ref="PluginsConfiguration" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GlobalSettings"> <xs:complexType> <xs:sequence> <xs:element ref="Application" /> <xs:element minOccurs="0" maxOccurs="1" ref="Channel" /> <xs:element minOccurs="0" maxOccurs="1" ref="Other" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Application"> <xs:complexType> <xs:sequence> <xs:element ref="serverScanFolderPath" /> <xs:element ref="storageFolderPath" /> <xs:element ref="tempFolderPath" /> <xs:element ref="toolsFolderPath" /> <xs:element ref="cleanUpSrcs" /> <xs:element ref="cleanUpTemp" /> <xs:element ref="imagePattern" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="serverScanFolderPath" type="xs:string" /> <xs:element name="storageFolderPath" type="xs:string" /> <xs:element name="tempFolderPath" type="xs:string" /> <xs:element name="toolsFolderPath" type="xs:string" /> <xs:element name="operatingMode" type="xs:string" /> <xs:element name="cleanUpSrcs" type="xs:string" /> <xs:element name="cleanUpTemp" type="xs:string" /> <xs:element name="imagePattern" type="xs:string" /> <xs:element name="Channel"> <xs:complexType> <xs:sequence> <xs:element ref="Settings" /> </xs:sequence> <xs:attribute name="path" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element name="Settings"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Setting" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Setting"> <xs:complexType> <xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="value" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element name="Other"> <xs:complexType> <xs:sequence> <xs:element ref="Settings" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ScannersConfiguration"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" ref="RulesModels" /> <xs:element ref="Scanners" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="RulesModels"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="RuleModel" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="RuleModel"> <xs:complexType> <xs:sequence> <xs:element ref="ProcessingChannelDescription" /> <xs:element ref="SpecificOutputProcessing" /> </xs:sequence> <xs:attribute name="name" type="xs:ID" use="required" /> <xs:attribute default="false" name="unique"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="true" /> <xs:enumeration value="false" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="ProcessingChannelDescription"> <xs:complexType> <xs:sequence> <xs:element ref="ParametersDescriptions" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ParametersDescriptions"> <xs:complexType> <xs:sequence> <xs:element ref="Input" /> <xs:element minOccurs="0" maxOccurs="1" ref="Output" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Input"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="ParameterDescription" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Output"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="ParameterDescription" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ParameterDescription"> <xs:complexType> <xs:attribute name="name" type="xs:ID" use="required" /> <xs:attribute default="System.Int32" name="type"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="System.Double" /> <xs:enumeration value="System.Int32" /> <xs:enumeration value="System.Boolean" /> <xs:enumeration value="System.String" /> </xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="SpecificOutputProcessing"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" ref="Parameters" /> </xs:sequence> <xs:attribute name="assemblyPath" type="xs:IDREF" use="required" /> <xs:attribute name="typeName" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element name="Scanners"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Scanner" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Scanner"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" ref="Rules" /> </xs:sequence> <xs:attribute name="id" type="xs:ID" use="required" /> <xs:attribute name="manufacturer" type="xs:string" use="required" /> <xs:attribute name="type" type="xs:string" use="required" /> <xs:attribute name="serialNb" type="xs:string" use="required" /> <xs:attribute name="software" type="xs:string" use="required" /> <xs:attribute name="softwareVersion" type="xs:string" use="required" /> <xs:attribute name="scanFolderPath" type="xs:string" use="required" /> <xs:attribute name="inputIccPath" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="Rules"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Rule" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Rule"> <xs:complexType> <xs:sequence> <xs:element ref="ProcessingChannel" /> <xs:element minOccurs="0" maxOccurs="1" ref="SpecificOutputProcessing" /> </xs:sequence> <xs:attribute name="model" type="xs:IDREF" use="required" /> <xs:attribute default="false" name="ignoreImageCondition"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="true" /> <xs:enumeration value="false" /> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute default="one" name="requirements"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="none" /> <xs:enumeration value="one" /> <xs:enumeration value="all" /> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="imageRegexCondition" type="xs:string" use="required" /> <xs:attribute name="selectionNumberField" type="xs:string" /> </xs:complexType> </xs:element> <xs:element name="ProcessingChannel"> <xs:complexType> <xs:sequence> <xs:element ref="Parameters" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Parameters"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Parameter" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Parameter"> <xs:complexType> <xs:attribute name="name" type="xs:IDREF" use="required" /> <xs:attribute name="value" type="xs:string" use="required" /> </xs:complexType> </xs:element> <xs:element name="PluginsConfiguration"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" ref="BeforeIP" /> <xs:element minOccurs="0" maxOccurs="1" ref="AfterIP" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="BeforeIP"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Plugin" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="AfterIP"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="Plugin" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Plugin"> <xs:complexType> <xs:sequence> <xs:element ref="Parameters" /> </xs:sequence> <xs:attribute name="assemblyPath" type="xs:IDREF" use="required" /> <xs:attribute name="typeName" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:schema>
J'ai volontairement fait une erreur dans ce fichier xml, en rajoutant une balise test qui n'existe nulle part dans le schéma...
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?xml version="1.0"?> <ScanProcessingConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:ScanProcessingConfiguration.xsd"> <GlobalSettings> <Application> <serverScanFolderPath>C:\Users\anor\Documents\Projets\ScanSoftTest\SCAN</serverScanFolderPath> <storageFolderPath>C:\Users\anor\Documents\Projets\ScanSoftTest\ZZZDatas\FTP</storageFolderPath> <tempFolderPath>C:\Users\anor\Documents\Projets\ScanSoftTest\ZZZDatas\TEMP</tempFolderPath> <toolsFolderPath>C:\Users\anor\Documents\Projets\ScanSoftTest\ZZZDatas\bin</toolsFolderPath> <cleanUpSrcs>false</cleanUpSrcs> <cleanUpTemp>true</cleanUpTemp> <imagePattern>^.+[.](([Jj][Pp][Ee]?[Gg])|([Tt][Ii][Ff]?[Ff])|(([Jj]([Pp]([2]|[Ff]|[Xx]|[Mm])|([2][Kk])))|([Mm][Jj][2]))|([Cc][Rr]([2]|[Ww])))$</imagePattern> <outputImageExtension>jp2</outputImageExtension> </Application> <Other/> <Channel path="C:\Users\anor\Documents\Projets\ProQuest\OnSitePackagingProgram\ScanPackagingSoftware3\ScanPackagingSoftware3\Channels\channelForScan.xml.bba" name="OnSiteScanChannel"> <Settings> <Setting name="channelDebugMode" value="false" type="System.Boolean"/> <Setting name="outputProfilePath" value="C:\Users\anor\Documents\Projets\ScanSoftTest\ZZZDatas\ICC\OUTPUT\ProPhotoRGB.icm" type="System.String"/> <Setting name="kduCompressParameters" value="Creversible=no -rate 4 "Cblk={64,64}" Corder=RPCL "Stiles={1024,1024}" "Cprecincts={256,256},{256,256},{128,128}" ORGtparts=R -precise Clayers=10 Clevels=5 -keep_icc_profile" type="System.String"/> </Settings> </Channel> <test> EN VOILA UNE BELLE ERREUR. SAURAS TU ME RETROUVER ???? </test> </GlobalSettings> <ScannersConfiguration> <RulesModels> <RuleModel name="ConversionToTIFF" unique="true"> <ProcessingChannelInputDescription> <ParametersDescriptions> <Input> <ParameterDescription name="commandParameters" type="System.String"/> </Input> </ParametersDescriptions> </ProcessingChannelInputDescription> </RuleModel> <RuleModel name="Rotation" unique="false"> <ProcessingChannelInputDescription> <ParametersDescriptions> <Input> <ParameterDescription name="angle" type="System.Double"/> </Input> </ParametersDescriptions> </ProcessingChannelInputDescription> </RuleModel> <RuleModel name="UnsharpMasking" unique="true"> <ProcessingChannelInputDescription> <ParametersDescriptions> <Input> <ParameterDescription name="halfWidth" type="System.Int32"/> <ParameterDescription name="fraction" type="System.Double"/> </Input> </ParametersDescriptions> </ProcessingChannelInputDescription> </RuleModel> <RuleModel name="DPIMeasure" unique="false"> <ProcessingChannelInputDescription> <ParametersDescriptions> <Input> <ParameterDescription name= "minDPI" type="System.Int32"/> <ParameterDescription name= "maxDPI" type="System.Int32"/> <ParameterDescription name="referenceRatio" type="System.Double"/> <ParameterDescription name="boxOriginXRatio" type="System.Double"/> <ParameterDescription name="boxOriginYRatio" type="System.Double"/> <ParameterDescription name="boxWidthRatio" type="System.Double"/> <ParameterDescription name="boxHeightRatio" type="System.Double"/> <ParameterDescription name="kFactor" type="System.Double"/> <ParameterDescription name="windowRatio" type="System.Double"/> <ParameterDescription name="minWidthRatio" type="System.Double"/> <ParameterDescription name="maxWidthRatio" type="System.Double"/> <ParameterDescription name="minHeightRatio" type="System.Double"/> <ParameterDescription name="maxHeightRatio" type="System.Double"/> <ParameterDescription name="minWHRatio" type="System.Double"/> <ParameterDescription name="maxWHRatio" type="System.Double"/> </Input> <Output> <ParameterDescription name= "measureOk" type="System.Boolean"/> <ParameterDescription name= "resolutionX" type="System.Int32"/> <ParameterDescription name= "resolutionY" type="System.Int32"/> </Output> </ParametersDescriptions> </ProcessingChannelInputDescription> </RuleModel> <RuleModel name="AssignInputICCProfile" unique="true"> <ProcessingChannelInputDescription> <ParametersDescriptions> <Input> <ParameterDescription name="inputProfilePath" type="System.String"/> </Input> </ParametersDescriptions> </ProcessingChannelInputDescription> </RuleModel> </RulesModels> <Scanners> <Scanner id="ATIZ_01" manufacturer="ATIZ" type="BookDrive Mini" serialNb="12204" software="BookDrive Capture4" softwareVersion="4.1.2.0" scanFolderPath="C:\Users\anor\Documents\Projets\ScanSoftTest\DISTANT_FOLDERS\ATIZ_01" inputIccPath="C:\Users\anor\Documents\Projets\ScanSoftTest\ZZZDatas\ICC\INPUT\testLP29_6_10_o4bis.icm"> <Rules> <Rule model="ConversionToTIFF" ignoreImageCondition="false" requirements="all" imageRegexCondition=".+[.][Cc][Rr]2$"> <ProcessingChannelInput> <Parameters> <Parameter name="commandParameters" value="-n 100 -w -o 4 -W -b 6 -g 2.9 10 -q 3" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="Rotation" ignoreImageCondition="false" requirements="one" imageRegexCondition="^.+_[Ll][.][Cc][Rr]2$"> <ProcessingChannelInput> <Parameters> <Parameter name="angle" value="-90" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="Rotation" ignoreImageCondition="false" requirements="one" imageRegexCondition="^.+_[Rr][.][Cc][Rr]2$"> <ProcessingChannelInput> <Parameters> <Parameter name="angle" value="90" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="UnsharpMasking" ignoreImageCondition="true" requirements="all" imageRegexCondition=""> <ProcessingChannelInput> <Parameters> <Parameter name="halfWidth" value="1" /> <Parameter name="fraction" value="0.5" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="DPIMeasure" ignoreImageCondition="false" requirements="one" imageRegexCondition="^.+_[Ll][.][Cc][Rr]2$" selectionNumber="2"> <ProcessingChannelInput> <Parameters> <Parameter name="minDPI" value="380" /> <Parameter name="maxDPI" value="460" /> <Parameter name="referenceRatio" value="0.25" /> <Parameter name="boxOriginXRatio" value="0" /> <Parameter name="boxOriginYRatio" value="0" /> <Parameter name="boxWidthRatio" value="0.71" /> <Parameter name="boxHeightRatio" value="0.175" /> <Parameter name="kFactor" value="0.05" /> <Parameter name="windowRatio" value="1" /> <Parameter name="minWidthRatio" value="0.06" /> <Parameter name="maxWidthRatio" value="0.14" /> <Parameter name="minHeightRatio" value="0.16" /> <Parameter name="maxHeightRatio" value="0.27" /> <Parameter name="minWHRatio" value="0.95" /> <Parameter name="maxWHRatio" value="1.05" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="DPIMeasure" ignoreImageCondition="false" requirements="one" imageRegexCondition="^.+_[Rr][.][Cc][Rr]2$" selectionNumber="2"> <ProcessingChannelInput> <Parameters> <Parameter name="minDPI" value="380" /> <Parameter name="maxDPI" value="460" /> <Parameter name="referenceRatio" value="0.25" /> <Parameter name="boxOriginXRatio" value="0.27" /> <Parameter name="boxOriginYRatio" value="0" /> <Parameter name="boxWidthRatio" value="0.73" /> <Parameter name="boxHeightRatio" value="0.175" /> <Parameter name="kFactor" value="0.05" /> <Parameter name="windowRatio" value="1" /> <Parameter name="minWidthRatio" value="0.06" /> <Parameter name="maxWidthRatio" value="0.14" /> <Parameter name="minHeightRatio" value="0.16" /> <Parameter name="maxHeightRatio" value="0.27" /> <Parameter name="minWHRatio" value="0.95" /> <Parameter name="maxWHRatio" value="1.05" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="Rotation" ignoreImageCondition="false" requirements="one" imageRegexCondition="^.+_[Ll][.][Cc][Rr]2$"> <ProcessingChannelInput> <Parameters> <Parameter name="angle" value="-90" /> </Parameters> </ProcessingChannelInput> </Rule> </Rules> </Scanner> <Scanner id="OS12_01" manufacturer="Zeutschel" type="Zeutschel OS12000HD" serialNb="12217" software="Omniscan" softwareVersion="12.2 sr2 (1566)" scanFolderPath="C:\Users\anor\Documents\Projets\ScanSoftTest\SCAN\OS12_01"> <Rules> <Rule model="Rotation" ignoreImageCondition="false" requirements="none" imageRegexCondition="^.+[13579][.][Tt][Ii][Ff]?[Ff]$"> <ProcessingChannelInput> <Parameters> <Parameter name="angle" value="180" /> </Parameters> </ProcessingChannelInput> </Rule> </Rules> </Scanner> <Scanner id="SPINE" manufacturer="Canon" type="Canon EOS 5D Mark II" serialNb="2331317396" software="EOS Utility" softwareVersion="2.8.0.2" scanFolderPath="C:\Users\anor\Documents\Projets\ScanSoftTest\DISTANT_FOLDERS\SPINE"> <Rules> <Rule model="ConversionToTIFF" ignoreImageCondition="false" requirements="all" imageRegexCondition=".+[.][Cc][Rr]2$"> <ProcessingChannelInput> <Parameters> <Parameter name="commandParameters" value="-n 170 -w -o 4 -W -b 2.8 -g 2.7 1.6 -q 3" /> </Parameters> </ProcessingChannelInput> </Rule> <Rule model="DPIMeasure" ignoreImageCondition="true" requirements="one" imageRegexCondition=""> <ProcessingChannelInput> <Parameters> <Parameter name="minDPI" value="300" /> <Parameter name="maxDPI" value="420" /> <Parameter name="referenceRatio" value="0.25" /> <Parameter name="boxOriginXRatio" value="0.12" /> <Parameter name="boxOriginYRatio" value="0.67" /> <Parameter name="boxWidthRatio" value="0.7" /> <Parameter name="boxHeightRatio" value="0.33" /> <Parameter name="kFactor" value="0.05" /> <Parameter name="windowRatio" value="1" /> <Parameter name="minWidthRatio" value="0.02" /> <Parameter name="maxWidthRatio" value="0.16" /> <Parameter name="minHeightRatio" value="0.09" /> <Parameter name="maxHeightRatio" value="0.3" /> <Parameter name="minWHRatio" value="0.95" /> <Parameter name="maxWHRatio" value="1.05" /> </Parameters> </ProcessingChannelInput> <ChannelOutputSpecificProcessing assemblyPath="test youhou" typeName="ALLO"/> </Rule> <Rule model="UnsharpMasking" ignoreImageCondition="true" requirements="all" imageRegexCondition=""> <ProcessingChannelInput> <Parameters> <Parameter name="halfWidth" value="1" /> <Parameter name="fraction" value="0.5" /> </Parameters> </ProcessingChannelInput> </Rule> </Rules> </Scanner> </Scanners> </ScannersConfiguration> <PluginsConfiguration> <BeforeIP> <Plugin assemblyPath="coucou" typeName="c'est moi"/> </BeforeIP> <AfterIP> <Plugin assemblyPath="coucou2" typeName="c'est moi 2"/> </AfterIP> </PluginsConfiguration> </ScanProcessingConfiguration>
Partager