private static NamespaceTarget CreateNamespaceTarget (XPathNavigator api) {
     NamespaceTarget target = new NamespaceTarget();
     target.name = (string) api.Evaluate(apiNameExpression);
     if (String.IsNullOrEmpty(target.name)) target.name = "(Default Namespace)";
     return(target);
 }
 public void WriteNamespaceTarget (NamespaceTarget space, DisplayOptions options, XmlWriter writer) {
     if (space == null) throw new ArgumentNullException("target");
     if (writer == null) throw new ArgumentNullException("writer");
     writer.WriteString(space.Name);
 }