--- a/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/util/DOMUtils.java Wed Jul 05 18:49:16 2017 +0200
+++ b/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/util/DOMUtils.java Tue Apr 09 14:51:13 2013 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -123,25 +123,6 @@
return null;
}
-// these implementations look wrong to me, since getElementsByTagName returns
-// all the elements in descendants, not just children.
-//
-// public static Element[] getChildElements(Element parent, QName qname) {
-// NodeList children = parent.getElementsByTagNameNS(qname.uri, qname.localpart);
-// return getElements(children);
-// }
-//
-// public static Element[] getChildElements(Element parent, String namespaceURI,
-// String localName) {
-// NodeList children = parent.getElementsByTagNameNS(namespaceURI, localName);
-// return getElements(children);
-// }
-//
-// public static Element[] getChildElements(Element parent, String name) {
-// NodeList children = parent.getElementsByTagName(name);
-// return getElements(children);
-// }
-
public static Element[] getElements(NodeList children) {
Element[] elements = null;
int len = 0;