Project

General

Profile

« Previous | Next » 

Revision 51266

using 'update replace' instead of 'update value' operator to fill in the context info

View differences:

ISClientImpl.java
109 109
		final Queue<Throwable> errors = Lists.newLinkedList();
110 110
		final Escaper esc = XmlEscapers.xmlContentEscaper();
111 111
		_quickSeachProfile(String.format(
112
				"update value collection('/db/DRIVER/ContextDSResources/ContextDSResourceType')" +
113
				"/RESOURCE_PROFILE/BODY/CONFIGURATION/context[./@id = '%s']/param[./@name = '%s']/text() with '%s'", id, name, escape(esc, value)),
112
				"update replace collection('/db/DRIVER/ContextDSResources/ContextDSResourceType')" +
113
				"/RESOURCE_PROFILE/BODY/CONFIGURATION/context[./@id = '%s']/param[./@name = '%s'] with <param name='%s'>%s</param>", id, name, name, escape(esc, value)),
114 114
				errors);
115 115

  
116 116
		if (!errors.isEmpty()) {

Also available in: Unified diff