src/share/jaxws_classes/com/sun/tools/internal/xjc/util/DOMUtils.java

changeset 368
0989ad8c0860
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
     1.1 --- a/src/share/jaxws_classes/com/sun/tools/internal/xjc/util/DOMUtils.java	Thu Apr 04 19:05:24 2013 -0700
     1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/util/DOMUtils.java	Tue Apr 09 14:51:13 2013 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -123,25 +123,6 @@
    1.11      return null;
    1.12    }
    1.13  
    1.14 -// these implementations look wrong to me, since getElementsByTagName returns
    1.15 -// all the elements in descendants, not just children.
    1.16 -//
    1.17 -//   public static Element[] getChildElements(Element parent, QName qname) {
    1.18 -//    NodeList children = parent.getElementsByTagNameNS(qname.uri, qname.localpart);
    1.19 -//    return getElements(children);
    1.20 -//  }
    1.21 -//
    1.22 -//  public static Element[] getChildElements(Element parent, String namespaceURI,
    1.23 -//                       String localName) {
    1.24 -//    NodeList children = parent.getElementsByTagNameNS(namespaceURI, localName);
    1.25 -//    return getElements(children);
    1.26 -//  }
    1.27 -//
    1.28 -//  public static Element[] getChildElements(Element parent, String name) {
    1.29 -//    NodeList children = parent.getElementsByTagName(name);
    1.30 -//    return getElements(children);
    1.31 -//  }
    1.32 -
    1.33      public static Element[] getElements(NodeList children) {
    1.34          Element[] elements = null;
    1.35          int len = 0;

mercurial