Skip to content

Commit

Permalink
Initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu authored and dcazzulino committed Mar 26, 2002
1 parent d9e182c commit 30b0df1
Show file tree
Hide file tree
Showing 114 changed files with 2,230 additions and 0 deletions.
Binary file added DOM3/ConsoleTest/App.ico
Binary file not shown.
58 changes: 58 additions & 0 deletions DOM3/ConsoleTest/AssemblyInfo.cs
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
72 changes: 72 additions & 0 deletions DOM3/ConsoleTest/Class1.cs
@@ -0,0 +1,72 @@
using System;
using System.IO;
using System.Xml;
using NMatrix.Dom.Core;

namespace ConsoleTest
{
class Class1
{
[STAThread]
public static void Main()
{
Sample();
Console.Read();
}

public static void Sample()
{
try
{
XmlDocument doc = new DOMImplementation().CreateDocument();
doc.LoadXml("<?xml version=\"1.0\"?>" +
"<!-- Sample XML document -->" +
"<bookstore xmlns:bk=\"urn:samples\">" +
" <book genre=\"novel\" publicationdate=\"1997\" " +
" bk:ISBN=\"1-861001-57-5\">" +
" <title>Pride And Prejudice</title>" +
" <author>" +
" <first-name>Jane</first-name>" +
" <last-name>Austen</last-name>" +
" </author>" +
" <price>24.95</price>" +
" </book>" +
" <book genre=\"novel\" publicationdate=\"1992\" " +
" bk:ISBN=\"1-861002-30-1\">" +
" <title>The Handmaid's Tale</title>" +
" <author>" +
" <first-name>Margaret</first-name>" +
" <last-name>Atwood</last-name>" +
" </author>" +
" <price>29.95</price>" +
" </book>" +
"</bookstore>");

XmlNode currNode = doc.DocumentElement;

//create and add a new element
string prefix=currNode.GetPrefixOfNamespace("urn:samples");
XmlElement newElem=doc.CreateElement(prefix, "style", "urn:samples");
newElem.InnerText="hardcover";

currNode.FirstChild.AppendChild(newElem);

/*
Console.WriteLine("Display the modified XML...");
XmlTextWriter writer = new XmlTextWriter(Console.Out);
writer.Formatting = Formatting.Indented;
doc.WriteTo( writer );
writer.Flush();
writer.Close();
*/

Console.WriteLine(doc.Implementation);
}
catch (Exception e)
{
Console.WriteLine ("Exception: {0}", e.ToString());
}

}
}
}
102 changes: 102 additions & 0 deletions DOM3/ConsoleTest/ConsoleTest.csproj
@@ -0,0 +1,102 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.0.9466"
SchemaVersion = "1.0"
ProjectGuid = "{10888F6F-7A04-4080-A45A-BB274EABC4F3}"
>
<Build>
<Settings
ApplicationIcon = "App.ico"
AssemblyKeyContainerName = ""
AssemblyName = "NMatrix.ConsoleTest"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Exe"
RootNamespace = "NMatrix.ConsoleTest"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "true"
Optimize = "false"
OutputPath = "..\bin\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
Optimize = "true"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll"
/>
<Reference
Name = "Dom"
Project = "{4FABF44F-D2EA-44E8-8C52-A3E9705BD6E5}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "App.ico"
BuildAction = "Content"
/>
<File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "Class1.cs"
SubType = "Code"
BuildAction = "Compile"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>

48 changes: 48 additions & 0 deletions DOM3/ConsoleTest/ConsoleTest.csproj.user
@@ -0,0 +1,48 @@
<VisualStudioProject>
<CSHARP>
<Build>
<Settings ReferencePath = "" >
<Config
Name = "Debug"
EnableASPDebugging = "false"
EnableASPXDebugging = "false"
EnableUnmanagedDebugging = "false"
EnableSQLServerDebugging = "false"
RemoteDebugEnabled = "false"
RemoteDebugMachine = ""
StartAction = "Project"
StartArguments = ""
StartPage = ""
StartProgram = ""
StartURL = ""
StartWorkingDirectory = ""
StartWithIE = "false"
/>
<Config
Name = "Release"
EnableASPDebugging = "false"
EnableASPXDebugging = "false"
EnableUnmanagedDebugging = "false"
EnableSQLServerDebugging = "false"
RemoteDebugEnabled = "false"
RemoteDebugMachine = ""
StartAction = "Project"
StartArguments = ""
StartPage = ""
StartProgram = ""
StartURL = ""
StartWorkingDirectory = ""
StartWithIE = "false"
/>
</Settings>
</Build>
<OtherProjectSettings
CopyProjectDestinationFolder = ""
CopyProjectUncPath = ""
CopyProjectOption = "0"
ProjectView = "ProjectFiles"
ProjectTrust = "0"
/>
</CSHARP>
</VisualStudioProject>

Binary file added DOM3/ConsoleTest/bin/Debug/ConsoleTest.exe
Binary file not shown.
1 change: 1 addition & 0 deletions DOM3/ConsoleTest/bin/Debug/ConsoleTest.pdb
@@ -0,0 +1 @@
Microsoft C/C++ MSF 7.00
Binary file added DOM3/ConsoleTest/bin/Debug/Dom3.dll
Binary file not shown.
1 change: 1 addition & 0 deletions DOM3/ConsoleTest/bin/Debug/Dom3.pdb
@@ -0,0 +1 @@
Microsoft C/C++ MSF 7.00
Binary file added DOM3/ConsoleTest/obj/Debug/ConsoleTest.exe
Binary file not shown.
Binary file added DOM3/ConsoleTest/obj/Debug/ConsoleTest.exe.incr
Binary file not shown.
1 change: 1 addition & 0 deletions DOM3/ConsoleTest/obj/Debug/ConsoleTest.pdb
@@ -0,0 +1 @@
Microsoft C/C++ MSF 7.00
Binary file added DOM3/ConsoleTest/obj/Debug/ConsoleTest.projdata
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions DOM3/ConsoleTest/obj/Debug/NMatrix.ConsoleTest.pdb
@@ -0,0 +1 @@
Microsoft C/C++ MSF 7.00
58 changes: 58 additions & 0 deletions DOM3/Dom/AssemblyInfo.cs
@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;

//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.0.*")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
17 changes: 17 additions & 0 deletions DOM3/Dom/Core/DOMAttribute.cs
@@ -0,0 +1,17 @@
using System;
using System.Xml;

namespace NMatrix.Dom.Core
{
public class DOMAttribute : XmlAttribute
{
public DOMAttribute(string name) : base (null, null)
{
}

public override XmlElement OwnerElement
{
get { return base.OwnerElement; }
}
}
}
17 changes: 17 additions & 0 deletions DOM3/Dom/Core/DOMDocument.cs
@@ -0,0 +1,17 @@
using System;
using System.Xml;
using NMatrix.W3C.DOM.Core;

namespace NMatrix.Dom.Core
{
public class DOMDocument : XmlDocument//, IDocument
{
public DOMDocument() : base()
{
}

public DOMDocument(XmlNameTable nt) : base(nt)
{
}
}
}

0 comments on commit 30b0df1

Please sign in to comment.