Reputation: 26936
How do you import an XML schema from a *.xsd file to an XML file? What instructions should you use? When I write something like:
<xs:schema xmlns:xs="http://schemas.microsoft.com/wix/2006/wi">
<xs:include schemaLocation="wix.xsd"/>
</xs:schema>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"></Wix>
then I get "the document can't contain multiple root elements"
Upvotes: 0
Views: 1919
Reputation: 163262
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xsi:schemaLocation="http://schemas.microsoft.com/wix/2006/wi wix.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
Upvotes: 1