How to get XSD of a cdt at runtime

Hi,

How to get XSD of a cdt at runtime? Is there any way that we can pass a datatype number or cdt name and it returns a xsd of that cdt.

 

Thanks.

  Discussion posts and replies are publicly visible

Parents Reply
  • Did you try following Java APIs?
    1. TypeService will give you DataType
    2. DataType will give you TypeProperties (i.e. NamedTypeValue)
    3. NamedTypeValue returns TypeRef.
    a. I think in the TypeRef, you will find what you need
    b. Unfortunately the JavaDoc has not exposed anything on TypeRef except that we get its reference from NamedTypeValue. So you may have to play around that a bit to figure out what all information the TypeRef expose
Children