|
using System;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace WSDLParser
{
/// <summary>
/// Summary description for NamespaceHandler.
/// </summary>
internal class NamespaceHandler
{
public NamespaceHandler()
{
}
internal static string LoopupPrefix(XmlSerializerNamespaces namespaces, string ns)
{
if (ns == string.Empty ) return string.Empty;
XmlQualifiedName[] XmlQualifiedNameList =namespaces.ToArray();
foreach (XmlQualifiedName XmlQualifiedName in XmlQualifiedNameList )
{
if (!XmlQualifiedName.IsEmpty && XmlQualifiedName.Namespace.Equals(ns) )
{
return XmlQualifiedName.Name;
}
}
return string.Empty;
}
internal static string LoopupNamespace(XmlSerializerNamespaces namespaces,string prefix)
{
if (prefix != string.Empty) return string.Empty;
XmlQualifiedName[] XmlQualifiedNameList =namespaces.ToArray();
foreach (XmlQualifiedName XmlQualifiedName in XmlQualifiedNameList )
{
if (!XmlQualifiedName.IsEmpty && XmlQualifiedName.Name.Equals(prefix) )
{
return XmlQualifiedName.Namespace;
}
}
return string.Empty;
}
}
}
|
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.
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
I'm still alive...but temporarily moved to work on mobile & web stuffs(j2me/brew/php/flash...something not M$). things have just been very busy, and probably will continue...so don't have chance to maintain & respond. Hope will have time to try to write again, because many ideas with WPF &silver light are waiting. wish me luck
FYI:
- MESHSimPack project(c# library for measuring similarity among concepts of the MESH ontology):
http://sourceforge.net/projects/meshsimpack.