Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~197 People Reached
Favorite Forums
Favorite Tags
java x 3
Member Avatar for msd153

import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.xml.sax.InputSource; import org.xml.sax.SAXException; //import com.edankert.SimpleErrorHandler; public abstract class Wellformed extends DocumentBuilder { public static void main(String[] args) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setValidating(false); factory.setNamespaceAware(true); DocumentBuilder builder = factory.newDocumentBuilder(); builder.setErrorHandler(new SimpleErrorHandler()); builder.parse(new InputSource("contacts.xml")); } catch (ParserConfigurationException e) { e.printStackTrace(); } …

Member Avatar for NormR1
0
197