View | Details | Raw Unified | Return to bug 40653 | Differences between
and this patch

Collapse All | Expand All

(-)gnu/xml/stream/XMLStreamWriterImpl.java (-8 / +19 lines)
Line 245 Link Here
245
        if (prefix != null && !isNCName(prefix))
245
        if (prefix != null && !isPrefix(prefix))
246
--
Line 397 Link Here
397
        if (prefix != null && !isNCName(prefix))
397
        if (prefix != null && !isPrefix(prefix))
398
--
Line 493 Link Here
493
    if (prefix == null || "".equals(prefix) || "xmlns".equals(prefix))
494
    {
495
      writeDefaultNamespace(namespaceURI);
496
      return;
497
    }
Line 499 Link Here
499
        if (!isNCName(prefix))
504
        if (!isPrefix(prefix))
500
--
Line 793 Link Here
793
        if (!isNCName(prefix))
798
        if (!isPrefix(prefix))
794
--
Line 941 Link Here
946
  private boolean isPrefix(String text)
947
    throws IOException
948
  {
949
    if (XMLConstants.DEFAULT_NS_PREFIX.equals(text)) {
950
        return true;
951
    }
952
    return isNCName(text);
953
  }
954
Line 1004 Link Here
1018

Return to bug 40653