grmstore for empty dateTime xml

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf grmstore for empty dateTime xml

  • Creator
    Topic
  • #53289
    Elisha Gould
    Participant

      I am trying to get something working where I can have a dateTime xml element empty.

      ie for the following extract of a schema:

      I need the following to be able to be created with grmstore:

      I’m not sure how I get the xsi:nil=”true” part in with grmstore.

      is it possible or do I need to use something else?

    Viewing 1 reply thread
    • Author
      Replies
      • #77163
        Elisha Gould
        Participant

          has anybody gotten xsi:nil=true working for a dateTime element?

          The documentation for grmstore is extremely lacking in any use further than the very basic example. Is it based off any existing api that I can search in google or is it a cloverleaf specific api?

          is it possible to set element attributes with grmstore?

        • #77164
          Elisha Gould
          Participant

            After a bit of messing around I finally came up with using the following for the xsd:

             

               

                   

               

             

            .

            .

            .

            This creates a type of xs:dateTime that allows any attribute.

            Then use the following tcl to set the xsi:nil flag:

            grmstore $aHandle ${aField}.##anyAttribute x {xsi:nil=”true”}

            Does anyone have a better way of doing this than having to create a type with anyAttribute?

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.