Although this book focuses on the overall use of XML and not XML syntax, we've covered many important details in this chapter. We have
At this point we are ready to jump into implementing XML within a large enterprise environment. The first step in this process is to determine the parser you want to use, and therefore the parsing method, which will be covered in Chapter 3.
Using XML to solve integration and implementation problems is not as easy as defining a data model and creating instance documents. What will you do with these documents after you create them? How will you read them into your application or database for processing? Part of using XML as a solution involves an XML processor, which is the application responsible for processing these documents. One function of this processor, and the focus of this chapter, is parsing documents. The parser is responsible for parsing the XML document and verifying it by checking for well-
Parsing is not always as simple as just reading through an XML document and verifying it for ASCII text. The structure and rules of your
In this chapter we'll review what an XML parser does, examine the different models used to process XML documents, and introduce how XML can be manipulated using objects within the .NET Framework. By the end of the chapter you should have a good understanding of when to use which processing model, as well as which parser will best fit your needs.
So, what is
? According to http://www.dictionary.com, it's defined as
Parsing is an essential task for any application that uses language-based data or code as input. XML processors, which rely heavily on parsers, provide a standard mechanism for navigating and manipulating XML documents. If you have an XML document and need to get data out of it, change the data, or modify the XML document structure, you don't need to write code to load the XML file, validate it for specific