This subsection describes the flow of basic coding that uses the Shift_JIS switch function in the DOM parser.
![[Figure]](figure/zu040h00.gif)
The following describes the coding example. Each item number corresponds to the number in the comments in the coding example.
- Create DocumentBuilderFactory.
Use the static method newInstance() of javax.xml.parsers.DocumentBuilderFactory to create the factory.
- Switch Shift_JIS to MS932.
In the setAttribute method for the DOM parser setting, specify the first argument to the setting key http://cosminexus.com/xml/properties/shift_jis_map and the second argument to MS932.
- Create DocumentBuilder.
Use the newDocumentBuilder() method to create DocumentBuilder.