Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 579 → Rev 580

/sun/xmleditor/trunk/src/parser/Validator.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.40 $
* @version $Revision: 1.41 $
*
* Last modification: $Date: 2003/07/16 17:16:10 $
* $Id: Validator.java,v 1.40 2003/07/16 17:16:10 smcsporr Exp $
* Last modification: $Date: 2003/07/17 16:02:03 $
* $Id: Validator.java,v 1.41 2003/07/17 16:02:03 smcsporr Exp $
*/
 
package src.parser;
50,7 → 50,7
*
* @author S. McSporran
*
* @version $Revision: 1.40 $ Last modification: $Date: 2003/07/16 17:16:10 $
* @version $Revision: 1.41 $ Last modification: $Date: 2003/07/17 16:02:03 $
*/
public class Validator {
 
371,7 → 371,7
/* Save the transformation result to a string buffer. */
StringWriter outputWr = new StringWriter();
StreamResult sResult = new StreamResult();
StreamResult sResult = new StreamResult(outputWr);
/* Save the DOCTYPE-Entry in case of an external DTD. */
if ((doc.getDoctype() != null) && (doc.getDoctype().getInternalSubset() == null)) {
387,10 → 387,10
/* Get the buffer associated with the StringWriter outputWr. */
StringBuffer buffer = outputWr.getBuffer();
Serializer serializer = SerializerFactory.getSerializer(
OutputPropertiesFactory.getDefaultMethodProperties("xml"));
//Serializer serializer = SerializerFactory.getSerializer(
//OutputPropertiesFactory.getDefaultMethodProperties("xml"));
serializer.setWriter(outputWr);
//serializer.setWriter(outputWr);
log(LogInterface.TYPE_ERROR, buffer.toString());