Register to post in forums, or Log in to your existing account
 

 Related 
Contents
XML Library
  Parse
  ParseFile
  Errors
  ErrorCount
  Load
  LoadFile
  NewDoc
  OnStartElement
  OnStartDocument
  OnEndDocument
  OnCharacters
  OnEndElement
  OnUnpEntity
  OnProcessingInstruction
  OnExtEntity
Related Links:
  XML Library
  ParseFile
  LoadFile
  XML
  LoadFromFile
LoadFile [[XML.LoadFile]] 
NOTE: This Design document is subject to change at any time.
LoadFile( Filename: Widestring): zXML

Loads the XML data from the file Filename and constructs the DOM Document object, which is returned. The Filename can also be a URL to XML data on a remote web site.

The following code loads an XML file, creates the DOM Document and displays the XML tree structure in a zTree component:
Code:
Tree.CountProp = "ChildCount"
Tree.ChildProp = "ChildNodes"
Tree.CaptionProp = "NodeName"
Set Dom = xml.LoadFile("emobius.zml")
Tree.Add Dom.Document
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net