expert-common/src/main/java/org/geomajas/sld/editor/expert/common/server/service/InMemorySldServiceImpl.java
private StyledLayerDescriptorInfo parseXml(String name, String raw) throws JiBXException {
		IBindingFactory bfact = BindingDirectory.getFactory(StyledLayerDescriptorInfo.class);
		IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
		Object object = uctx.unmarshalDocument(new StringReader(raw));
		StyledLayerDescriptorInfo sld = (StyledLayerDescriptorInfo) object;
		if (sld.getName() == null) {
			sld.setName(name);
		}
		if (sld.getTitle() == null) {
			sld.setTitle(getTitle(sld, name));
		}
		if (sld.getVersion() == null) {
			sld.setVersion("1.0.0");
		}
		return sld;
	}
private StyledLayerDescriptorInfo parseXml(String name, String raw) throws JiBXException {
		IBindingFactory bfact = BindingDirectory.getFactory(StyledLayerDescriptorInfo.class);
		IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
		Object object = uctx.unmarshalDocument(new StringReader(raw));
		StyledLayerDescriptorInfo sld = (StyledLayerDescriptorInfo) object;
		if (sld.getName() == null) {
			sld.setName(name);
		}
		if (sld.getTitle() == null) {
			sld.setTitle(getTitle(sld, name));
		}
		if (sld.getVersion() == null) {
			sld.setVersion("1.0.0");
		}
		return sld;
	}
private StyledLayerDescriptorInfo parseXml ( String name , String raw ) throws JiBXException { IBindingFactory bfact = BindingDirectory . getFactory ( StyledLayerDescriptorInfo . class ) ; IUnmarshallingContext uctx = bfact . createUnmarshallingContext ( ) ; Object object = uctx . unmarshalDocument ( new StringReader ( raw ) ) ; StyledLayerDescriptorInfo sld = ( StyledLayerDescriptorInfo ) object ; if ( sld . getName ( ) == null ) { sld . setName ( name ) ; } if ( sld . getTitle ( ) == null ) { sld . setTitle ( getTitle ( sld , name ) ) ; } if ( sld . getVersion ( ) == null ) { sld . setVersion ( "1.0.0" ) ; } return sld ; }
---------------------------------------------------------------
---------------------------------------------------------------