private void InitDecAttr() {
int i = 0;
String strTemp = doc.Version;
if ( strTemp != null && strTemp.Length != 0 ) {
decNodeAttributes[i].name = strVersion;
decNodeAttributes[i].value = strTemp;
i++;
}
strTemp = doc.Encoding;
if ( strTemp != null && strTemp.Length != 0 ) {
decNodeAttributes[i].name = strEncoding;
decNodeAttributes[i].value = strTemp;
i++;
}
strTemp = doc.Standalone;
if ( strTemp != null && strTemp.Length != 0 ) {
decNodeAttributes[i].name = strStandalone;
decNodeAttributes[i].value = strTemp;
i++;
}
nDeclarationAttrCount = i;
}