fix(util): Replace use of deprecated class
@@ -25,11 +25,10 @@ package com.synopsys.integration.detectable.util;
import java.util.ArrayList;
import java.util.List;
+import org.w3c.dom.DocumentType;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
-import com.sun.org.apache.xerces.internal.dom.DeferredDocumentTypeImpl;
-
public class XmlUtil {
public static Node getNode(final String key, final Node parentNode) {
return getNodeList(key, parentNode).get(0);
@@ -42,7 +41,7 @@ public class XmlUtil {
final Node childNode = childNodes.item(i);
if (childNode.getNodeName().equals(key)) {
// ignore node generated from DOCTYPE declaration
- if (childNode instanceof DeferredDocumentTypeImpl) {
+ if (childNode instanceof DocumentType) {
Node nextSibling = childNode.getNextSibling();
if (nextSibling.getNodeName().equals(key)) {
nodes.add(nextSibling);
