// Writing link text for unresolved simple references

        internal static void WriteNamespaceReference (NamespaceReference space, DisplayOptions options, XmlWriter writer) {
            writer.WriteString(space.Id.Substring(2));
        }
        public void WriteNamespace (NamespaceReference spaceReference, DisplayOptions options, XmlWriter writer) {
            if (spaceReference == null) throw new ArgumentNullException("spaceReference");
            if (writer == null) throw new ArgumentNullException("writer");

            NamespaceTarget spaceTarget = spaceReference.Resolve(targets) as NamespaceTarget;
            if (spaceTarget != null) {
                WriteNamespaceTarget(spaceTarget, options, writer);
            } else {
                TextReferenceUtilities.WriteNamespaceReference(spaceReference, options, writer);
            }
        }
 public static NamespaceReference CreateNamespaceReference (XPathNavigator namespaceElement) {
     if (namespaceElement == null) throw new ArgumentNullException("namespaceElement");
     string api = (string) namespaceElement.Evaluate(referenceApiExpression);
     NamespaceReference reference = new NamespaceReference(api);
     return(reference);
 }