Produced by Araxis Merge on 6/9/2017 3:49:58 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:49:58 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\transformer\xsl | XMLtoString.java | Fri Apr 21 20:03:26 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 35 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.nvap. common.tra nsformer.x sl; | |||||
| 2 | ||||||
| 3 | import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception; | |||||
| 4 | ||||||
| 5 | import jav a.io.Strin gWriter; | |||||
| 6 | ||||||
| 7 | import jav ax.xml.tra nsform.dom .DOMSource ; | |||||
| 8 | import jav ax.xml.tra nsform.str eam.Stream Result; | |||||
| 9 | ||||||
| 10 | import org .w3c.dom.D ocument; | |||||
| 11 | ||||||
| 12 | /** | |||||
| 13 | * Transfo rm from XM L to Strin g. StringW riter is u sed for ou tput. | |||||
| 14 | * | |||||
| 15 | * @author Asha Amri traj | |||||
| 16 | */ | |||||
| 17 | public cla ss XMLtoSt ring exten ds Default XSLTransfo rmer imple ments | |||||
| 18 | gov. va.nvap.co mmon.trans former.Tra nsformer<D ocument, S tring> { | |||||
| 19 | ||||||
| 20 | @O verride | |||||
| 21 | pu blic final String tr ansform(fi nal Docume nt sourceM essage) | |||||
| 22 | throws Transform erExceptio n { | |||||
| 23 | ||||||
| 24 | fina l StringWr iter strin gWriter = new String Writer(); | |||||
| 25 | fina l DOMSourc e source = new DOMSo urce(sourc eMessage); | |||||
| 26 | ||||||
| 27 | try { | |||||
| 28 | super. transform( source, ne w StreamRe sult(strin gWriter)); | |||||
| 29 | } ca tch (final javax.xml .transform .Transform erExceptio n ex) { | |||||
| 30 | throw new Transf ormerExcep tion(ex); | |||||
| 31 | } | |||||
| 32 | retu rn stringW riter.toSt ring(); | |||||
| 33 | } | |||||
| 34 | ||||||
| 35 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.