NOTE In this chapter, I've assumed that you're already familiar with the basics of XML, such as elements and attributes.
SOM is indispensable for a certain class of application, like a schema editor, where it needs to construct the schema in memory and check the schema's validity according to the WXS specification. The following is a simple customer schema, with a top-level Customer element that has two child elements, First Name and Last Name, and one attribute, Cust ID.I am currently using the Xml Validating Reader to validate the xml in text fragments. I am validating up to 2 million fragments in a loop at 1 time (yes).The fragments are never much over 2K in size, but since the reader doesn't allow (at least as far as I can tell) a way to clear the current fragment and load another, I have to create a new reader each pass thru the loop. Anyone have any ideas on validating huge amounts of xml in a loop that won't take me several days to finish?Oh, to make matters worse the fragments are all different types (12 total types of xml packets).I was really hoping to do something like this -- but it don't work Xml Validating Reader vr = new Xml Validating Reader(str XMLFragment, Xml Node Type.