المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : XMLTextReader - Find Max Depth



C# Programming
07-13-2011, 03:21 AM
XMLTextReader has a depth property that returns the depth of the current node. Anyone know a way to determine the maximum depth? I guess I could read through the file first, but that doesn't seem very efficient.
Everything makes sense in someone's mind