wfstags | R Documentation |
The fg
and bg
functions are auxiliary functions to create xml elements.
Using these functions only the start tag and contents have to be provided;
e.g.
bg('PropertyName', 'topp:objec_omschrijf')
will create
<PropertyName>topp:objec_omschrijf</PropertyName>
The function fg
allows additional arguments for the tag and allows subtags.
See Examples and the functions in wfsfilteraux
fg(tag, ..., ta = NULL, sep = WFS_get_sep()) bg(tag, value = "")
tag |
Character with tag that will be used as both start and end tag |
... |
Character arguments that will be inserted between start and end tag |
ta |
Character with additional information for start tag |
sep |
NULL for the default separator (set by |
value |
Character argument that will be inserted between start and end tag |
Character vector with the generated xml element
xml_clause = fg( 'PropertyIsLike' , bg('PropertyName', 'topp:objec_omschrijf') , bg('Literal', '.unmoolen') , ta = 'wildCard="*" singleChar="." escape="!"' , sep = "\n" ) # cat(xml_clause) # <PropertyIsLike wildCard="*" singleChar="." escape="!"> # <PropertyName>topp:objec_omschrijf</PropertyName> # <Literal>.unmoolen</Literal> # </PropertyIsLike>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.