Showing posts with label Simple API for XML. Show all posts
Showing posts with label Simple API for XML. Show all posts

Sunday, June 12, 2011

Parsing XML file in VB.NET using DOM - CodeProject

A graphical depiction of a very simple xml doc...Image via WikipediaIntroduction to Article

There are many versions of XML parsers/readers on the Internet and on CodeProject (including my own in C/C++). This one was written several years ago in VB 6.0 and is based on DOM (Document Object Model). I almost forgot about it until I recently decided to upgrade (or to see if it is possible without much hassle) VB 6.0 projects to VB 2008 (VB 2010 does not recognize VB 6.0 project’s files). I already had a very time consuming experience upgrading a project with many drawing and database related functions and arrays, because it requires you to manually rewrite the old code.
XML parser does not have any drawing functions or VB6-arrays and was upgraded to VB.NET automatically, though generating warnings related mostly to default property of the object. I removed these lines from code but for anyone interested, I left the _UpgradeReport.htm in the project.


Parsing XML file in VB.NET using DOM - CodeProject
Enhanced by Zemanta

Tuesday, March 8, 2011

Creating XML and Java Technology Based Applications Using JAXB - CodeProject

Introduction to the article

eXtensible Markup Language (XML) is a platform and language-independent way of defining tags. XML allows you to use meaningful tags to represent data in a structured format. Unlike HyperText Markup Language (HTML), which is used to display text, XML is a language to create extensible custom tags to represent the structure of data.
SAX parser is an event driven low-level parser, that responds to the elements of an XML document as it parses through the documents. The data is not maintained in memory. Efficiency of parsing data into elements is the key feature of SAX parser. DOM parser is a high-level parser that maintains the data structures of a document in memory as it parses through the document. This helps you to manage and manipulate data as needed. DOM API follows the tree model for maintaining the data in memory.
Formerly known as Project Adelard, Java Architecture for XML binding (JAXB) combines the benefits of Document Object Model (DOM) parser and Simple API for XML (SAX) parser.
JAXB reduces the execution time significantly and creates a robust object model for enterprise level applications.
This reference point explains how to use JAXB to create and distribute high-performance XML-enabled applications with minimum effort.


Creating XML and Java Technology Based Applications Using JAXB - CodeProject