Gets the DTD registered with the database.
[Visual Basic]
Public Sub GetDTD(
ByVal schema As String,
ByVal name As String
) As String
[C#]
public String GetDTD(
String schema,
String name
);
[C++]
public: String GetDTD(
String schema,
String name
);
[JScript]
public function GetDTD(
schema : String,
name : String
) : String;
//HeadCount.dtd was registered in this example
using (DB2Connection conn = new DB2Connection(connStr))
{
try
{
conn.Open();
String dtdContent = conn.GetDTD("NEWTON", "HEADCOUNTDTD");
}
catch (Exception e)
{
// exception handling
}
}
Function returns the content of DTD.