2010-11-04 38 views

回答

1

按照JAXP 1.5 Documentation它是可能的:

實測值以下示例有:

//allow resolution of external schemas 

    System.setProperty("javax.xml.accessExternalSchema", "file, http"); 

    //this setting will affect all processing after it's set 
    some processing here 

    //after it's done, clear the property 
    System.clearProperty("javax.xml.accessExternalSchema"); 
+0

設置系統性能影響當前JVM。因此有時最好通過API設置屬性。屬性可以通過https://jaxp.java.net/1.5/JAXP1.5Guide.html#JAXP1.5Documentation%2CGuide-6.PropertySettingsintJDK中記錄的方式重寫 – bourbert 2014-05-12 12:04:38

相關問題