Posts

Showing posts with the label XML File Access

eXtensible Markup Language - XML File Access

  XML File Access: An XML (eXtensible Markup Language) file is a text-based file format used for storing and transporting data. It is a markup language, similar to HTML, but with a key difference: while HTML uses predefined tags to display data, XML allows users to define their own tags and document structure to describe the data itself. XML documents can be created in two different ways: a) With user defined tags b) With a template (xslt files) There are different parsers available to parse an XML file: e.g. a) DOM [Document Object Model] b) SAX 1) The parsers provide different API's to extract data from the XML File. 2) XML File is read as 'document' by the parser. 3) Each tags should have an opening and closing tag, that is called a Node. 4) A Node can have attributes and inner text. 5) Both Attributes and inner text provides data about the node. Example: <?xml version="1.0" encoding="utf-8"?> <STUDENT_RECORDS>          <stu_rec>  ...