Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>master
parent
faedfd8a62
commit
1a88f46c18
@ -0,0 +1,14 @@ |
|||||||
|
package org.airsonic.player.util; |
||||||
|
|
||||||
|
import org.jdom.input.SAXBuilder; |
||||||
|
|
||||||
|
public class XMLUtil { |
||||||
|
|
||||||
|
public static SAXBuilder createSAXBuilder() { |
||||||
|
SAXBuilder builder = new SAXBuilder(); |
||||||
|
builder.setFeature("http://apache.org/xml/features/disallow-doctype-decl",true); |
||||||
|
builder.setFeature("http://xml.org/sax/features/external-general-entities", false); |
||||||
|
builder.setFeature("http://xml.org/sax/features/external-parameter-entities", false); |
||||||
|
return builder; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue