Hi Marco,
The proposed solution is way too slow.
let $xml := 'd:\Temp\CDW\HOME\id4879_BO201801_HomeSubscriberMovementFact.xml'
let $xsd := 'd:\Temp\CDW\HOME\HomeSubscriberMovementFact.xsd'
let $validate := validate:xsd-report($xml, $xsd, '1.1')
return file:write("output.xml",
copy $newvalidate := $validate
modify (delete node $newvalidate//@url)
return $newvalidate
)
I guess delete node… is too heavy.
It runs for 143 seconds.
Without it just 11 seconds.
The input XML file size is about 40MB.
The output.xml file has about the same size.
That’s why I was proposing to change the default output format of the validation.
Regards,
Yitzhak Khabinsky
Technical Services Lead
Millicom International Services LLC
396 Alhambra Circle, Suite 1100
Coral Gables, FL 33134
Skype4B: +1 (305) 445-4172
Tel: (954) 684-8673
yitzhak.khabinsky@millicom.com
From: Yitzhak Khabinsky
Sent: Thursday, April 19, 2018 2:51 PM
To: m.lettere@gmail.com
Subject: Re: [basex-talk] Validation Module: validate:xsd-report( ) improvement
Hi Marco,
Thanks for the proposed solution.
It works.
But I was referring to the
default behavior.
The url attribute is redundant for every message element.
Regards,
Yitzhak Khabinsky
Technical Services Lead
Millicom International Services LLC
396 Alhambra Circle, Suite 1100
Coral Gables, FL 33134
Skype4B: +1 (305) 445-4172
Tel: (954) 684-8673
yitzhak.khabinsky@millicom.com