private void InitDocTypeAttr() {
int i = 0;
XmlDocumentType docType = doc.DocumentType;
if ( docType == null ) {
nDocTypeAttrCount = 0;
return;
}
String strTemp = docType.PublicId;
if ( strTemp != null ) {
docTypeNodeAttributes[i].name = strPublicID;
docTypeNodeAttributes[i].value = strTemp;
i++;
}
strTemp = docType.SystemId;
if ( strTemp != null ) {
docTypeNodeAttributes[i].name = strSystemID;
docTypeNodeAttributes[i].value = strTemp;
i++;
}
nDocTypeAttrCount = i;
}