Click here to Skip to main content
15,892,697 members
Articles / Programming Languages / XML

Converting an HTML File to an XHTML File

Rate me:
Please Sign up or sign in to vote.
2.47/5 (5 votes)
19 Mar 20073 min read 75.2K   984   22  
Converting a HTML file to an XHTML file
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{3E564F14-4884-49D4-A06A-FEDF02C6915A}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>HTML2XHTML</RootNamespace>
    <AssemblyName>HTML2XHTML</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="App_Code\SysUtil.cs" />
    <Compile Include="App_Code\XHTMLResolver.cs" />
    <Compile Include="App_Code\XMLUtil.cs" />
    <Compile Include="Program.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="App_GlobalResources\Resource.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resource.resx</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="App_GlobalResources\Resource.resx">
      <SubType>Designer</SubType>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resource.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\tidy.exe" />
    <None Include="Resources\xhtml-attribs-1.mod" />
    <None Include="Resources\xhtml-base-1.mod" />
    <None Include="Resources\xhtml-bdo-1.mod" />
    <None Include="Resources\xhtml-blkphras-1.mod" />
    <None Include="Resources\xhtml-blkpres-1.mod" />
    <None Include="Resources\xhtml-blkstruct-1.mod" />
    <None Include="Resources\xhtml-charent-1.mod" />
    <None Include="Resources\xhtml-csismap-1.mod" />
    <None Include="Resources\xhtml-datatypes-1.mod" />
    <None Include="Resources\xhtml-edit-1.mod" />
    <None Include="Resources\xhtml-events-1.mod" />
    <None Include="Resources\xhtml-form-1.mod" />
    <None Include="Resources\xhtml-framework-1.mod" />
    <None Include="Resources\xhtml-hypertext-1.mod" />
    <None Include="Resources\xhtml-image-1.mod" />
    <None Include="Resources\xhtml-inlphras-1.mod" />
    <None Include="Resources\xhtml-inlpres-1.mod" />
    <None Include="Resources\xhtml-inlstruct-1.mod" />
    <None Include="Resources\xhtml-inlstyle-1.mod" />
    <None Include="Resources\xhtml.soc" />
    <None Include="Resources\xhtml1.dcl" />
    <None Include="Resources\xhtml11-model-1.mod" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-lat1.ent" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-lat11.ent" />
    <None Include="Resources\xhtml-link-1.mod" />
    <None Include="Resources\xhtml-list-1.mod" />
    <None Include="Resources\xhtml-meta-1.mod" />
    <None Include="Resources\xhtml-object-1.mod" />
    <None Include="Resources\xhtml-param-1.mod" />
    <None Include="Resources\xhtml-pres-1.mod" />
    <None Include="Resources\xhtml-qname-1.mod" />
    <None Include="Resources\xhtml-ruby-1.mod" />
    <None Include="Resources\xhtml-script-1.mod" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-special11.ent" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-special.ent" />
    <None Include="Resources\xhtml-ssismap-1.mod" />
    <None Include="Resources\xhtml-struct-1.mod" />
    <None Include="Resources\xhtml-style-1.mod" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-symbol11.ent" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Resources\xhtml-symbol.ent" />
    <None Include="Resources\xhtml-table-1.mod" />
    <None Include="Resources\xhtml-text-1.mod" />
    <None Include="Resources\xhtml1-frameset.dtd" />
    <None Include="Resources\xhtml1-strict.dtd" />
    <None Include="Resources\xhtml1-transitional.dtd" />
    <None Include="Resources\xhtml11.dtd" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Web Developer
China China
About the author:
Jinjin Xie is the technical director of ChinaCars Co.LTD, expertise in Application Architect,Performance Tunning and VLDB design.
email:jinjun@jinjun.com.
office phone:8610-64014646 ext. 779

Comments and Discussions