Click here to Skip to main content
15,883,901 members
Articles / Programming Languages / XML

Towards a Declarative SAX Framework : Part 1 - A Simple SAX-to-C#-Mapping

Rate me:
Please Sign up or sign in to vote.
4.51/5 (15 votes)
20 May 200422 min read 62.7K   894   33  
This article demonstrates a simple but flexible way to read XML content without DOM
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SaxParserSupport", "SaxParserSupport\SaxParserSupport.csproj", "{E5B2A83E-A9C9-4F5C-BA37-BBD803A6573D}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Attributes", "Attributes\Attributes.csproj", "{D47437E8-739E-405E-B4F0-35A0377CA733}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChildElements", "ChildElements\ChildElements.csproj", "{39386AF4-E375-4964-8F7D-713E7850122A}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Namespaces", "Namespaces\Namespaces.csproj", "{D951EB15-F957-4519-9C5D-06E679AF8613}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParserSetup", "ParserSetup\ParserSetup.csproj", "{3A0C4EE8-C1E3-4455-B315-F33EA6A78E97}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text1", "Text1\Text1.csproj", "{5BC2AF54-C1B9-4589-8227-158760B000CB}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Text2", "Text2\Text2.csproj", "{7DC622A2-E9A6-48D1-B9DA-7CDBA21A5227}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{E5B2A83E-A9C9-4F5C-BA37-BBD803A6573D}.Debug.ActiveCfg = Debug|.NET
		{E5B2A83E-A9C9-4F5C-BA37-BBD803A6573D}.Debug.Build.0 = Debug|.NET
		{E5B2A83E-A9C9-4F5C-BA37-BBD803A6573D}.Release.ActiveCfg = Release|.NET
		{E5B2A83E-A9C9-4F5C-BA37-BBD803A6573D}.Release.Build.0 = Release|.NET
		{D47437E8-739E-405E-B4F0-35A0377CA733}.Debug.ActiveCfg = Debug|.NET
		{D47437E8-739E-405E-B4F0-35A0377CA733}.Debug.Build.0 = Debug|.NET
		{D47437E8-739E-405E-B4F0-35A0377CA733}.Release.ActiveCfg = Release|.NET
		{D47437E8-739E-405E-B4F0-35A0377CA733}.Release.Build.0 = Release|.NET
		{39386AF4-E375-4964-8F7D-713E7850122A}.Debug.ActiveCfg = Debug|.NET
		{39386AF4-E375-4964-8F7D-713E7850122A}.Debug.Build.0 = Debug|.NET
		{39386AF4-E375-4964-8F7D-713E7850122A}.Release.ActiveCfg = Release|.NET
		{39386AF4-E375-4964-8F7D-713E7850122A}.Release.Build.0 = Release|.NET
		{D951EB15-F957-4519-9C5D-06E679AF8613}.Debug.ActiveCfg = Debug|.NET
		{D951EB15-F957-4519-9C5D-06E679AF8613}.Debug.Build.0 = Debug|.NET
		{D951EB15-F957-4519-9C5D-06E679AF8613}.Release.ActiveCfg = Release|.NET
		{D951EB15-F957-4519-9C5D-06E679AF8613}.Release.Build.0 = Release|.NET
		{3A0C4EE8-C1E3-4455-B315-F33EA6A78E97}.Debug.ActiveCfg = Debug|.NET
		{3A0C4EE8-C1E3-4455-B315-F33EA6A78E97}.Debug.Build.0 = Debug|.NET
		{3A0C4EE8-C1E3-4455-B315-F33EA6A78E97}.Release.ActiveCfg = Release|.NET
		{3A0C4EE8-C1E3-4455-B315-F33EA6A78E97}.Release.Build.0 = Release|.NET
		{5BC2AF54-C1B9-4589-8227-158760B000CB}.Debug.ActiveCfg = Debug|.NET
		{5BC2AF54-C1B9-4589-8227-158760B000CB}.Debug.Build.0 = Debug|.NET
		{5BC2AF54-C1B9-4589-8227-158760B000CB}.Release.ActiveCfg = Release|.NET
		{5BC2AF54-C1B9-4589-8227-158760B000CB}.Release.Build.0 = Release|.NET
		{7DC622A2-E9A6-48D1-B9DA-7CDBA21A5227}.Debug.ActiveCfg = Debug|.NET
		{7DC622A2-E9A6-48D1-B9DA-7CDBA21A5227}.Debug.Build.0 = Debug|.NET
		{7DC622A2-E9A6-48D1-B9DA-7CDBA21A5227}.Release.ActiveCfg = Release|.NET
		{7DC622A2-E9A6-48D1-B9DA-7CDBA21A5227}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

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


Written By
Web Developer
Germany Germany

Still lacking an university degree in computer science, I have 20 years of experience in software development and implementation. Having expert knowledge in object-oriented programming languages like C++, Java and C# on Windows, LINUX and UNIX platforms, I participated in multiple research projects at the University of Oldenburg. During these assignments, I was trusted with implementation of a graphical editor for specification languages like CSP or Z and a prototypical tool for workflow data distribution and analysis. I gained experiences in a widespread spectrum of CS and software development topics, ranging from compiler construction across data base programming to MDA. My research interests include questions of graphical user interface design and component-based systems.


I consider myself an old-school CS geek. While I admit that simple tasks do not pose much of a problem and can be done in quick and efficient manner, it's the challenging ones that appeal to me. If you are looking for a skillful employee - be it on a permanent, contract or freelance basis - and if you can live with a lacking university degree, why not contacting me?


Comments and Discussions