private static extern RCODE xflaim_DOMNode_getDataType( IntPtr pNode, IntPtr pDb, out FlmDataType peDataType);
private static extern RCODE xflaim_Db_createElementDef( IntPtr pDb, [MarshalAs(UnmanagedType.LPWStr)] string sNamespaceURI, [MarshalAs(UnmanagedType.LPWStr)] string sElementName, FlmDataType dataType, ref uint puiRequestedId);
private static extern RCODE xflaim_Db_getDataType( IntPtr pDb, ReservedElmTag dictType, uint uiDictNumer, out FlmDataType dataType);
//----------------------------------------------------------------------------- // createElementDef //----------------------------------------------------------------------------- /// <summary> /// Creates a new element definition in the dictionary. /// </summary> /// <param name="sNamespaceURI"> /// The namespace URI that this definition should be /// created in. If null, the default namespace will be used. /// </param> /// <param name="sElementName"> /// The name of the element. /// </param> /// <param name="dataType"> /// The data type for instances of this element. /// </param> /// <param name="uiRequestedId"> /// if non-zero, then xflaim will try to use this /// number as the name ID of the new definition. /// </param> /// <returns> /// Returns the name ID of the new definition. /// </returns> public uint createElementDef( string sNamespaceURI, string sElementName, FlmDataType dataType, uint uiRequestedId) { RCODE rc; if ((rc = xflaim_Db_createElementDef( m_pDb, sNamespaceURI, sElementName, dataType, ref uiRequestedId)) != 0) { throw new XFlaimException(rc); } return( uiRequestedId); }