-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
函数返回一个类的情况没有处理:
private static Transformer dnst()
throws TransformerException
{
TransformerFactory factory = TransformerFactory.newInstance();
javax.xml.transform.Source xslt = new StreamSource(cpcns/util/XMLVisitor.getResourceAsStream("DNS.xslt"));
Transformer transformer = factory.newTransformer(xslt);
return transformer;
}
public static Element deleteNamespace(Element e)
throws TransformerException
{
return JOOX.$(e).transform(dnst()).get(0);
}
public static void deleteNamespace(File src, File out)
throws TransformerException
{
dnst().transform(new StreamSource(src), new StreamResult(out));
}
Metadata
Metadata
Assignees
Labels
No labels