Skip to content

Allow passing string as element name #52

@highsource

Description

@highsource

See tomkralidis/csw4js#1.

Currently element references require an object like this:

{
        "namespaceURI": "http://www.opengis.net/cat/csw/2.0.2",
        "localPart": "GetRecords",
        "prefix": "csw"
}

This is too verbose. If the csw prefix is already defined, then it should be enough to write

'csw:GetRecords'

instead. Or '{http://www.opengis.net/cat/csw/2.0.2}GetRecords' or '{http://www.opengis.net/cat/csw/2.0.2}csw:GetRecords'.

Good question what to do on unmarshalling. Return string? Or object like now? Or have an option to switch it? Which namespace prefix to use?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions