IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

split xsd Options · View
michel777
Posted: Saturday, February 13, 2016 10:54:00 AM
Rank: Advanced Member

Joined: 1/23/2016
Posts: 54
Hi,

how to split an xsd into several xsd files, where

a) 1 element = 1 xsd file
b) name of file = element name . xsd

Thanks in advance,

Michel
vlad
Posted: Saturday, February 13, 2016 7:32:40 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
I would do this in XPath/XQuery window in XMLSpy with XQU 3.0 (XQuery Update Facility 3.0) selected

Code:

declare namespace xs="http://www.w3.org/2001/XMLSchema";
for $s in /xs:schema, $e in $s/xs:element
return fn:put( element xs:schema { $s/@*, $e }, 'C:\OutputFolder\' || $e/@name || '.xsd' )
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.