Presentation is loading. Please wait.

Presentation is loading. Please wait.

HW 1 – Mortgage Calculator Implemented as standalone Java Program Swing based GUI XML Processing using JAXP.

Similar presentations


Presentation on theme: "HW 1 – Mortgage Calculator Implemented as standalone Java Program Swing based GUI XML Processing using JAXP."— Presentation transcript:

1 HW 1 – Mortgage Calculator Implemented as standalone Java Program Swing based GUI XML Processing using JAXP

2 HW1 – Writing XML // write XML for this month fileout.write(" "); fileout.newLine(); fileout.write(" "+ i + " "); fileout.newLine(); fileout.write(" "+ String.format("%.2f",balance) + " "); fileout.newLine(); fileout.write(" "+ String.format("%.2f",payment) + " "); fileout.newLine(); fileout.write(" "+ String.format("%.2f",interest) + " "); fileout.newLine(); fileout.write(" "+ String.format("%.2f",equity) + " "); fileout.newLine(); fileout.write(" "+ String.format("%.2f",assessments) + " "); fileout.newLine(); …

3 HW1 – XML Parsing & Validation // Create parser factory javax.xml.parsers.DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); // Make it a validating parser dbf.setValidating(true); dbf.setNamespaceAware(true); dbf.setAttribute("http://xml.org/sax/features/validation", true); dbf.setAttribute("http://apache.org/xml/features/validation/schema", true); // create a parser javax.xml.parsers.DocumentBuilder parser = dbf.newDocumentBuilder();

4 HW2 – Output Schema

5 HW2 – Currency Conversion eur Euros 0.76 usd Dollars 1.0 cad Canadian dollars 1.15

6 HW2 – XSL File - -01

7 HW3 – Home Search WSDL Definitions

8 HW3 – Home Search WSDL Types …

9 Message Port Type HW3 – Home Search WSDL

10 Binding Service HW3 – Home Search WSDL


Download ppt "HW 1 – Mortgage Calculator Implemented as standalone Java Program Swing based GUI XML Processing using JAXP."

Similar presentations


Ads by Google