Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
//
// System.Xml.XPath.IXPathNavigable
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2001 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public interface IXPathNavigable
{
XPathNavigator CreateNavigator ();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,108 @@
//
// System.Xml.XPath.XPathComparer
//
// Author:
// Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
//
// (C) 2003 Atsushi Enomoto
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
namespace System.Xml.XPath
{
internal class XPathIteratorComparer : IComparer
{
public static XPathIteratorComparer Instance = new XPathIteratorComparer ();
private XPathIteratorComparer ()
{
}
public int Compare (object o1, object o2)
{
XPathNodeIterator nav1 = o1 as XPathNodeIterator;
XPathNodeIterator nav2 = o2 as XPathNodeIterator;
if (nav1 == null)
return -1;
if (nav2 == null)
return 1;
switch (nav1.Current.ComparePosition (nav2.Current)) {
case XmlNodeOrder.Same:
return 0;
case XmlNodeOrder.After:
return -1;
default:
return 1;
}
}
}
#if NET_2_0
internal class XPathNavigatorComparer : IComparer, IEqualityComparer
#else
internal class XPathNavigatorComparer : IComparer
#endif
{
public static XPathNavigatorComparer Instance = new XPathNavigatorComparer ();
private XPathNavigatorComparer ()
{
}
public int Compare (object o1, object o2)
{
XPathNavigator nav1 = o1 as XPathNavigator;
XPathNavigator nav2 = o2 as XPathNavigator;
if (nav1 == null)
return -1;
if (nav2 == null)
return 1;
switch (nav1.ComparePosition (nav2)) {
case XmlNodeOrder.Same:
return 0;
case XmlNodeOrder.After:
return 1;
default:
return -1;
}
}
#if NET_2_0
bool IEqualityComparer.Equals (object o1, object o2)
{
XPathNavigator nav1 = o1 as XPathNavigator;
XPathNavigator nav2 = o2 as XPathNavigator;
return nav1 != null && nav2 != null && nav1.IsSamePosition (nav2);
}
int IEqualityComparer.GetHashCode (object obj)
{
return obj.GetHashCode ();
}
#endif
}
}

View File

@ -0,0 +1,107 @@
//
// System.Xml.XPath.XPathDocument
//
// Authors:
// Tim Coleman (tim@timcoleman.com)
// Atsushi Enomoto (ginga@kit.hi-ho.ne.jp)
//
// (C) Copyright 2002 Tim Coleman
// (C) 2003 Atsushi Enomoto
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
using Mono.Xml.XPath;
//using InternalBuilder = Mono.Xml.XPath.DTMXPathDocumentBuilder;
//using InternalDocument = Mono.Xml.XPath.DTMXPathDocument;
using InternalBuilder = Mono.Xml.XPath.DTMXPathDocumentBuilder2;
using InternalDocument = Mono.Xml.XPath.DTMXPathDocument2;
namespace System.Xml.XPath
{
public class XPathDocument : IXPathNavigable
{
IXPathNavigable document;
public XPathDocument (Stream stream)
{
XmlValidatingReader vr = new XmlValidatingReader (new XmlTextReader (stream));
vr.ValidationType = ValidationType.None;
Initialize (vr, XmlSpace.None);
}
public XPathDocument (string uri)
: this (uri, XmlSpace.None)
{
}
public XPathDocument (TextReader textReader)
{
XmlValidatingReader vr = new XmlValidatingReader (new XmlTextReader (textReader));
vr.ValidationType = ValidationType.None;
Initialize (vr, XmlSpace.None);
}
public XPathDocument (XmlReader reader)
: this (reader, XmlSpace.None)
{
}
public XPathDocument (string uri, XmlSpace space)
{
XmlValidatingReader vr = null;
try {
vr = new XmlValidatingReader (new XmlTextReader (uri));
vr.ValidationType = ValidationType.None;
Initialize (vr, space);
} finally {
if (vr != null)
vr.Close ();
}
}
public XPathDocument (XmlReader reader, XmlSpace space)
{
Initialize (reader, space);
}
private void Initialize (XmlReader reader, XmlSpace space)
{
document = new InternalBuilder (reader, space).CreateDocument ();
}
public XPathNavigator CreateNavigator ()
{
return document.CreateNavigator ();
}
}
}

View File

@ -0,0 +1,80 @@
//
// System.Xml.XPath.XPathException
//
// Author:
// Tim Coleman (tim@timcoleman.com)
//
// (C) Copyright 2002 Tim Coleman
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace System.Xml.XPath
{
[Serializable]
public class XPathException : SystemException
{
#region Constructors
#if NET_2_0
public XPathException ()
: base ("")
{
}
#endif
protected XPathException (SerializationInfo info, StreamingContext context) : base (info, context) {}
public XPathException (string message, Exception innerException) : base (message, innerException) {}
#if NET_2_0
public XPathException (string message)
#else
internal XPathException (string message)
#endif
: base (message, null)
{
}
#endregion
#region Properties
public override string Message {
get { return base.Message; }
}
#endregion
#region Methods
[SecurityPermission (SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
base.GetObjectData (info, context);
}
#endregion
}
}

View File

@ -0,0 +1,95 @@
//
// System.Xml.XPath.XPathExpression
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Collections;
using Mono.Xml.XPath;
using System.Xml.Xsl;
using NSResolver = System.Xml.IXmlNamespaceResolver;
namespace System.Xml.XPath
{
public abstract class XPathExpression
{
#region Constructor
internal XPathExpression ()
{
}
#endregion
#region Properties
public abstract string Expression { get; }
public abstract XPathResultType ReturnType { get; }
#endregion
#region Methods
public abstract void AddSort (object expr, IComparer comparer);
public abstract void AddSort (
object expr,
XmlSortOrder order,
XmlCaseOrder caseOrder,
string lang,
XmlDataType dataType
);
public abstract XPathExpression Clone ();
public abstract void SetContext (XmlNamespaceManager nsManager);
public static XPathExpression Compile (string xpath)
{
return Compile (xpath, null, null);
}
public static XPathExpression Compile (string xpath, NSResolver nsResolver)
{
return Compile (xpath, nsResolver, null);
}
internal static XPathExpression Compile (string xpath,
NSResolver nsResolver, IStaticXsltContext ctx)
{
XPathParser parser = new XPathParser (ctx);
CompiledExpression x = new CompiledExpression (xpath, parser.Compile (xpath));
x.SetContext (nsResolver);
return x;
}
public abstract void SetContext (IXmlNamespaceResolver nsResolver);
#endregion
}
}

View File

@ -0,0 +1,69 @@
//
// XPathItem.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
#if NET_2_0
using System.Collections;
using System.Xml.Schema;
namespace System.Xml.XPath
{
public abstract class XPathItem
{
protected XPathItem ()
{
}
public virtual object ValueAs (Type returnType)
{
return ValueAs (returnType, null);
}
public abstract object ValueAs (Type returnType, IXmlNamespaceResolver nsResolver);
public abstract bool IsNode { get; }
public abstract object TypedValue { get; }
public abstract string Value { get; }
public abstract bool ValueAsBoolean { get; }
public abstract DateTime ValueAsDateTime { get; }
public abstract double ValueAsDouble { get; }
public abstract int ValueAsInt { get; }
public abstract long ValueAsLong { get; }
public abstract Type ValueType { get; }
public abstract XmlSchemaType XmlType { get; }
}
}
#endif

View File

@ -0,0 +1,39 @@
//
// System.Xml.XPath.XPathNamespaceScope
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public enum XPathNamespaceScope
{
All = 0,
ExcludeXml = 1,
Local =2,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,118 @@
//
// System.Xml.XPath.XPathNodeIterator
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections;
namespace System.Xml.XPath
{
public abstract class XPathNodeIterator : ICloneable, IEnumerable
{
private int _count = -1;
#region Constructor
protected XPathNodeIterator ()
{
}
#endregion
#region Properties
public virtual int Count
{
get
{
if (_count == -1)
{
// compute and cache the count
XPathNodeIterator tmp = Clone ();
while (tmp.MoveNext ())
;
_count = tmp.CurrentPosition;
}
return _count;
}
}
public abstract XPathNavigator Current { get; }
public abstract int CurrentPosition { get; }
#endregion
#region Methods
public abstract XPathNodeIterator Clone ();
object ICloneable.Clone ()
{
return Clone ();
}
public virtual IEnumerator GetEnumerator ()
{
return new XPathNodeIteratorEnumerator (this);
}
public abstract bool MoveNext ();
#endregion
struct XPathNodeIteratorEnumerator : IEnumerator
{
XPathNodeIterator source;
XPathNavigator current;
public XPathNodeIteratorEnumerator (XPathNodeIterator source)
{
this.source = source.Clone ();
current = null;
}
public bool MoveNext ()
{
if (!source.MoveNext ())
return false;
current = source.Current.Clone ();
return true;
}
public object Current {
get { return current; }
}
public void Reset ()
{
throw new NotSupportedException ();
}
}
}
}

View File

@ -0,0 +1,46 @@
//
// System.Xml.XPath.XPathNodeType
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public enum XPathNodeType
{
Root = 0,
Element = 1,
Attribute = 2,
Namespace = 3,
Text = 4,
SignificantWhitespace = 5,
Whitespace = 6,
ProcessingInstruction = 7,
Comment = 8,
All = 9,
}
}

View File

@ -0,0 +1,44 @@
//
// System.Xml.XPath.XPathResultType
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public enum XPathResultType
{
Number = 0,
String = 1,
Boolean = 2,
NodeSet = 3,
[MonoFIX ("MS.NET: 1")]
Navigator = 4,
Any = 5,
Error = 6,
}
}

View File

@ -0,0 +1,54 @@
// XmlCaseOrder.cs
//
// This code was automatically generated from
// ECMA CLI XML Library Specification.
// Generator: libgen.xsl [1.0; (C) Sergey Chaban (serge@wildwestsoftware.com)]
// Created: Wed, 5 Sep 2001 06:47:03 UTC
// Source file: all.xml
// URL: http://devresource.hp.com/devresource/Docs/TechPapers/CSharp/all.xml
//
// (C) 2001 Ximian, Inc. http://www.ximian.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath {
/// <summary>
/// </summary>
public enum XmlCaseOrder {
/// <summary>
/// </summary>
None = 0,
/// <summary>
/// </summary>
UpperFirst = 1,
/// <summary>
/// </summary>
LowerFirst = 2,
} // XmlCaseOrder
} // System.Xml

View File

@ -0,0 +1,38 @@
//
// System.Xml.XPath.XmlDataType
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public enum XmlDataType
{
Text = 1,
Number = 2,
}
}

View File

@ -0,0 +1,38 @@
//
// System.Xml.XPath.XmlSortOrder
//
// Author:
// Jason Diamond (jason@injektilo.org)
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
namespace System.Xml.XPath
{
public enum XmlSortOrder
{
Ascending = 1,
Descending = 2,
}
}