INT %XML_OpenDocument( TEXT in fileName, BOOL in validate TEXT in features := ""[, BOOL in preserveWhitespace := @TRUE]] )
fileName | Name of the XML file on the disk. | ||||||||||||||
validate | @TRUE - XML document validation (if the XML document contains DTD). @FALSE - no XML document validation (if the XML document contains DTD). | ||||||||||||||
features | Optional parameter of the Text type which allows to change the default values of some SAX Parser's parameters and to influence its behaviour and also the content of loaded document in memory. The parameters are recorded in pairs - name and numerical value. The parts are separated by blank space. If the value is 0 (zero) the parameter is disabled. If user write the invalid name of parameter it does not mean an error. A complete list of parameters is mentioned here http://xerces.apache.org/xerces2-j/features.html. The actual version supports following two parameters: http://xml.org/sax/features/namespaces
or http://xml.org/sax/features/namespace-prefixes
| ||||||||||||||
preserveWhitespace | @TRUE - text nods containing so-called white spaces (space, tab, ..) will remain as they were in XML document. @FALSE - text nods containing so-called white spaces will be ignored when the document is parsed. |
INT _doc _doc := %XML_OpenDocument("c:\data.xml", @TRUE)
TEXT _features _features := "http://xml.org/sax/features/namespace-prefixes 1" _hXML := %XML_OpenDocument (_fileName, @FALSE, _features)
Pridať komentár