[GeoNetwork-devel] Adding an 'empty' element.

Dear All,

I have an interesting problem when adding an element: I can’t see any way to create an element with no children at all.

Specifically, gmd:verticalCRS is valid with

  • zero or more gml:AbstractCRS elements
  • an optional gco:objectReference attribute
  • an optional gco:nilReason attribute

But as far as I can see, there’s no way to create something without a child element.

For example, I want my users to be able to choose ‘(empty)’ from the suggestions list and get an self-closing element with no children.

Anyone got any suggestions?

Justin.

This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person.

Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice.

Thank you for your cooperation.

Ordnance Survey
Adanac Drive
Southampton SO16 0AS
Tel: 08456 050505
http://www.ordnancesurvey.co.uk