Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Parser Schemas– Easy and Powerful parsing of XML-based languages

, 18 Oct 2005
An article on parsing XML files according to the specified schema.
<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.50215</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{98733376-DAC3-488B-B960-152718D8ABAB}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Comnicate.CodeDom.Xml.ParserSchemas</RootNamespace>
    <AssemblyName>Comnicate.CodeDom.Xml.ParserSchemas</AssemblyName>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>Comnicate.CodeDom.snk</AssemblyOriginatorKeyFile>
  </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>
    <DocumentationFile>
    </DocumentationFile>
  </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>
    <DocumentationFile>bin\Release\Comnicate.CodeDom.Xml.ParserSchemas.XML</DocumentationFile>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="CodenameAttribute.cs" />
    <Compile Include="EvaluatedParserSchema.cs" />
    <Compile Include="Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Rules\Evaluated\EvaluatedElementTransformationRule.cs" />
    <Compile Include="Rules\Evaluated\EvaluatedProcessingInstructionRule.cs" />
    <Compile Include="Rules\Evaluation\EvaluationEventArgs.cs" />
    <Compile Include="Rules\Evaluation\IValidatingRule.cs" />
    <Compile Include="Rules\Evaluation\PrimitiveValueTransformers\EnumValueValidator.cs" />
    <Compile Include="Rules\Evaluation\PrimitiveValueValidators\BooleanValidator.cs" />
    <Compile Include="Rules\Evaluation\PrimitiveValueValidators\EnumValueValidator.cs" />
    <Compile Include="Rules\Evaluation\PrimitiveValueValidators\IntegerValidator.cs" />
    <Compile Include="Rules\Evaluation\PrimitiveValueValidators\RegexValidator.cs" />
    <Compile Include="Rules\ILinkRegistry.cs" />
    <Compile Include="Rules\ILinkResolver.cs" />
    <Compile Include="Rules\IEvaluableRule.cs" />
    <Compile Include="Rules\IOptionalEntriesSupporter.cs" />
    <Compile Include="Rules\NonParentalRule.cs" />
    <Compile Include="Rules\Evaluated\EvaluatedNonParentalRule.cs" />
    <Compile Include="Rules\Evaluated\EvaluatedRule.cs" />
    <Compile Include="Rules\Evaluated\EvaluatedParentalRule.cs" />
    <Compile Include="Rules\ElementTransformationRule.cs" />
    <Compile Include="Rules\Evaluation\INodeTransformer.cs" />
    <Compile Include="Rules\Evaluation\ITransformableRule.cs" />
    <Compile Include="Rules\Evaluation\ITransformedRule.cs" />
    <Compile Include="Rules\Evaluation\IValueValidator.cs" />
    <Compile Include="Rules\EvaluableRule.cs" />
    <Compile Include="Rules\Evaluation\MissingNodeValueException.cs" />
    <Compile Include="ParserSchema.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Rules\AttributeRule.cs" />
    <Compile Include="Rules\ElementRule.cs" />
    <Compile Include="Rules\Evaluation\AtLeastOneOptionalChildExpectedException.cs" />
    <Compile Include="Rules\ParentalRule.cs" />
    <Compile Include="Rules\Evaluation\RequiredChildNotFoundException.cs" />
    <Compile Include="Rules\ProcessingInstructionRule.cs" />
    <Compile Include="Rules\Rule.cs" />
    <Compile Include="Rules\TextElementRule.cs" />
    <Compile Include="Rules\TextRule.cs" />
    <Compile Include="Rules\ValidatingNonParentalRule.cs" />
    <Compile Include="Rules\Evaluation\ValidationException.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Comnicate.CodeDom.snk" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="History.txt" />
    <Content Include="Licence.txt" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Tomas Deml

Czech Republic Czech Republic
I'm a student of the Low-voltage Electrical Engineering specialized on Computing from the Czech republic.
 
I'm a C# kind of guy, fan of .NET.
 
I've formed a programming group called 'Comnicate!'. Currently the only member of the group is myself. Wink | ;-)

| Advertise | Privacy | Mobile
Web04 | 2.8.140922.1 | Last Updated 18 Oct 2005
Article Copyright 2005 by Tomas Deml
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid