Jump to content
Sign in to follow this  
avot

Interpretation of empty optional element

Recommended Posts

Hello,

We received an IP-XACT 2009 file with an empty model name :

  <spirit:model>
    <spirit:views>
      <spirit:view>
        <spirit:name>View</spirit:name>
        <spirit:envIdentifier>EnvId:EnvId:EnvId</spirit:envIdentifier>
        <spirit:modelName></spirit:modelName>
      </spirit:view>
    </spirit:views>

Both IP-XACT 2009 and 2014 section 1.5.4.5.1 explain how to manage such situation for mandatory element, but do not for optional elements. For this particular situation (modelName), we consider this element as it is not present. But I didn't investigate if this is always the correct answer for all element in the schemas, particularly if the empty element has XML attributes.

Do we need to raise this point to the Accellera consortium for next IP-XACT release ?

Regards,

Grégoire Avot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×