# encodeXML-methods: Encode Classes as XML In sos4R: Client for OGC Sensor Observation Services

## Description

These methods convert the given objects to XML representations for `HTTP POST` requests. The given instance of `SOS` is possibly used for encoding sub-elements or accessing metadata which is required for the encoding, like time stamp format.

## Methods

`signature(obj = "GmlDirectPosition", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlEnvelope", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlLineString", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlPointProperty", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlPoint", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlPolygon", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlTimeInstantProperty", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlTimeInstant", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlTimePeriod", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "GmlTimePosition", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "POSIXt", sos = "SOS")`

Converts the time object to a string that is suitable to be used as the value of XML time elements.

`signature(obj = "OgcBBOX", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "OgcComparisonOps", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "OgcContains", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "OgcIntersects", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "OgcOverlaps", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "SosEventTime", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "SosFeatureOfInterest", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "SosGetFeatureOfInterest_2.0.0", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "TM_After", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "TM_Before", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "TM_During", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "TM_Equals", sos = "SOS")`

Convert the given object to an XML representation.

`signature(obj = "XMLNode", sos = "SOS")`

Convert the given object to an XML representation.

## References

XML specification: http://www.w3.org/XML/.

`encodeRequestXML`, `encodeRequestSOAP`
{"ft_lang_label":"__label__en","ft_lang_prob":0.6311076,"math_prob":0.9830388,"size":2844,"snap":"2022-05-2022-21","text_gpt3_token_len":680,"char_repetition_ratio":0.24471831,"word_repetition_ratio":0.5012225,"special_character_ratio":0.23909986,"punctuation_ratio":0.13537118,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9924539,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-21T23:27:47Z\",\"WARC-Record-ID\":\"<urn:uuid:d5015981-099b-4d81-a318-f2b1fa861755>\",\"Content-Length\":\"48117\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:76265997-db70-4d4c-b585-a0e0b2a065b4>\",\"WARC-Concurrent-To\":\"<urn:uuid:9f32c5ed-f6b8-41a6-84d0-fba2f9d0b95c>\",\"WARC-IP-Address\":\"51.81.83.12\",\"WARC-Target-URI\":\"https://rdrr.io/cran/sos4R/man/encodeXML-methods.html\",\"WARC-Payload-Digest\":\"sha1:ETEX467AFD5XNXCRU2LYDE6PFZ2PEYAZ\",\"WARC-Block-Digest\":\"sha1:32L6XD7FNYBFLTMZZZ4LJB3GBR6IBB4W\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662541747.38_warc_CC-MAIN-20220521205757-20220521235757-00632.warc.gz\"}"}