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
  Parse
  Errors
Parse [[XML.Parse]] 
NOTE: This Design document is subject to change at any time.
Parse( Name, Source: Widestring): Boolean

Activates the event-driven SAX parsing model of the XML data given in the Source string. Name is the prefix name to use when calling event routines in your script.

The difference between xml.Parse and xml.Load is that Parse simply parses the XML file without creating any XML document, whereas the Load 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.Parse "MyFile", S
</SCRIPT>

where S contains XML data to be parsed.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net