/*******************************************************************************
 * Copyright 2014, 2018 gwt-ol3
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/
package ol.format;

import javax.annotation.Nullable;

import jsinterop.annotations.JsType;
import ol.Feature;
import ol.Options;
import ol.proj.Projection;

/**
 * XML feature format.
 *
 * @author Tino Desjardins
 *
 */
@JsType(isNative = true, name = "XMLFeature")
public abstract class XmlFeature extends ol.format.Feature {

    /**
     * Read a single feature.
     *
     * @param source Document | Node | Object | string
     * @param readOptions Read options.
     * @return feature
     */
    public native Feature readFeature(java.lang.Object source, @Nullable Options readOptions);

    /**
     * Read all features from a feature collection.
     *
     * @param source  source Document | Node | Object | string
     * @return features
     */
    public native Feature[] readFeatures(java.lang.Object source);

    /**
     * Read all features from a feature collection.
     *
     * @param source Document | Node | Object | string
     * @param readOptions Read options.
     * @return features
     */
    public native Feature[] readFeatures(java.lang.Object source, @Nullable Options readOptions);

    /**
     * Read the projection from the source.
     *
     * @param source Document | Node | Object | string
     * @return projection
     */
    public native Projection readProjection(java.lang.Object source);

}

@@ -2084,10 +2084,475 @@
 urce);%0A%0A
+    /**%0A     * Encode an array of features as string.%0A     *%0A     * @param features features to encode%0A     * @return features as string%0A     */%0A    public native String writeFeatures(Feature%5B%5D features);%0A%0A    /**%0A     * Encode an array of features as string.%0A     *%0A     * @param features features to encode%0A     * @param options write options%0A     * @return features as string%0A     */%0A    public native String writeFeatures(Feature%5B%5D features, Options options);%0A%0A
 %7D%0A

Add write support for XML formats