first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Visual Studio 2003 PROBLEM: New Windows Script Host Item Produces Active Schema Errors; The active schema does not support the element 'package' or 'job'

By default, a new WSF file added as WinScript1.wsf looks like this:

<?xml version="1.0" encoding="utf-8" ?> <package xmlns="Windows Script Host"> <job> <script language="VBscript">

    &lt;/script&gt;
&lt;/job&gt;

</package>

This file will generate schema errors against wshmeta.xsd in the Common7\\Packages\\schemas\\xml directory of your Visual Studio installation. To deal with this problem immediately, change the file to this:

<?xml version="1.0" encoding="utf-8" ?> <package xmlns="http://schemas.microsoft.com/WindowsScriptHost"> <job> <script language="VBscript">

    &lt;/script&gt;
&lt;/job&gt;

</package>

mod date: 2004-10-29T22:07:08.000Z