I need to determine the theoretical maximum character count, including tags, of an XML file conforming to a given XSD schema and am simply blanking on how one might go about that. I am open to XSLT based solutions or any of the .NET XML methods.
Thanks in advance
The theoretical maximum character count is unlimited.
An XML file that conforms to a schema that only allows a restricted set of content could still contain lots of comments, processing instructions, declared (but unused) namespaces, and entities.
All of those things would contribute to the character count of the XML instance file and are beyond the constraints of the XSD.