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
  • Hi Rahul,

    Can you try using API's (docs.appian.com/.../)
    Particulary check below,

    com.appiancorp.suiteapi.type
    Class Datatype

    java.lang.Object
    com.appiancorp.suiteapi.type.DatatypeProperties
    com.appiancorp.suiteapi.type.Datatype

    There is a method to get Datatype from qName. Check if its useful for you.

    static Datatype findByQName(Datatype[] dts, javax.xml.namespace.QName targetQName)
    Finds the Datatype object in the given array that has the given qname.

    you can also use class 'DatatypeProperties' for getting more details about the data types.

    Regards,
    Umesh
Reply
  • Hi Rahul,

    Can you try using API's (docs.appian.com/.../)
    Particulary check below,

    com.appiancorp.suiteapi.type
    Class Datatype

    java.lang.Object
    com.appiancorp.suiteapi.type.DatatypeProperties
    com.appiancorp.suiteapi.type.Datatype

    There is a method to get Datatype from qName. Check if its useful for you.

    static Datatype findByQName(Datatype[] dts, javax.xml.namespace.QName targetQName)
    Finds the Datatype object in the given array that has the given qname.

    you can also use class 'DatatypeProperties' for getting more details about the data types.

    Regards,
    Umesh
Children