| ||
|
The EXPAT project has been modified to incorporate Visual Prolog Object Oriented Programming. EXPAT XML parser handlers creates XML objects and links them together into hierarchy of objects and returns reference to the Root object. This Root XML Object can be used to scan XML tree and destroy XML Object. The delete procedure performs cascade deletion of linked XML objects. To include XML Object - open your project.inc file with VP Studio Setup utility and checkout necessary options:
The sample application allows to create XML Object, print it's structure and access XML hierarchy with Visual Prolog. The PIE Scanner was used to parse some XML parameters. Sample application works as a XML Explorer, can change XML values and can save them back to XML file. We also have this XML object ported into other Visual Prolog applications such as Prolog Inference Engine (Desktop and CGI versions).
| ||
| ||
|
The XML Object has been implemented via following declarations: CLASS xml_object | ||
| Sample code for XML object printing:
xml_print(OBJECT):- |
Copyright 1998-2000 EDMGROUP (Australia)
Last Updated: March 20, 2002