Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
Milyn - Copyright (C) 2006 - 2010
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License (version 2.1) as published by the Free Software
Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details:
http://www.gnu.org/licenses/lgpl.txt
*/
package org.milyn.cdres.serialize;
import java.io.IOException;
import java.io.Writer;
import org.milyn.cdr.annotation.ConfigParam;
import org.milyn.container.ExecutionContext;
import org.milyn.delivery.dom.serialize.DefaultSerializationUnit;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.Element;
import org.w3c.dom.EntityReference;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
/**
* Empty element serialization unit.
*
* Writes empty elements well-formed (<xxx/>) or badly-formed (<xxx>). If
* applied to an element, it also ensures that any child content is not
* writen to the requesting device.
*
.cdrl Configuration
*
* <smooks-resource useragent="device/profile" selector="target-element-name"
* path="org.milyn.cdres.serialize.EmptyElementSU">
* <!-- (Optional) Should the empty element be printed "well-formed". Default true. -->
* <param name="wellFormed">true/false</param>
* </smooks-resource>