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
  OnStartElement
  OnStartDocument
  OnEndDocument
  OnCharacters
  OnEndElement
  OnUnpEntity
  OnProcessingInstruction
  OnExtEntity
  ParseFile
  Errors
ParseFile [[XML.ParseFile]] 
NOTE: This Design document is subject to change at any time.
ParseFile( Name, Filename: Widestring): Boolean

Activates the SAX event-driven XML parsing model. Name is the prefix name of the event callback routines in your script. Filename is the name of a local file, or can also be a URL pointing to XML data on the web.

The difference between xml.ParseFile and xml.LoadFile is that ParseFile simply parses the XML file without creating any XML document, whereas the LoadFile method parses the XML file and creates a resulting zXML object.

For example:
Code:
<SCRIPT>
  sub MyFile_OnStartElement( Sender, Value, Attributes)
    msgbox "Start of element: " &amp; Value
  end sub
...
  xml.ParseFile "MyFile", "filename.xml"
</SCRIPT>
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net