6.15 org.xml.sax.extパッケージに関する注意事項
org.xml.sax.extパッケージに関する注意事項を次の表に示します。
項番 |
注意事項 |
---|---|
1 |
Attributes2ImplクラスのaddAttributeメソッドはサポートしていません。 代わりに,AttributesImplクラスのaddAttributeメソッドを使用し,アプリケーションを次のように変更してください。 (変更前) Attributes2Impl myAtt = new Attributes2Impl(); String type = "ID"; myAtt.addAttribute("http://hitachi-xmlprocessor.com/", "attr", "ht:attr", type, "value"); : (変更後) AttributesImpl myAtt = new AttributesImpl(); String type = "ID"; myAtt.addAttribute("http://hitachi-xmlprocessor.com/", "attr", "ht:attr", type, "value"); Attributes2Impl myAtt2 = new Attributes2Impl(myAtt); int position = myAtt2.getLength() -1; myAtt2.setSpecified(position, true); myAtt2.setDeclared (position, !"CDATA".equals(type)); : |
2 |
Locator2ImplクラスのgetXMLVersionメソッド,getEncodingメソッドはサポートしていません。 |