Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [Ens] >  [Util] >  [XML] >  [Validator]
Private  Storage   

class Ens.Util.XML.Validator extends %XML.SAX.ContentHandler

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 5


Summary

Properties
Errors

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
LocatePosition Mask OnPostParse PopHandler
PushHandler ValidateFile ValidateStream characters
comment endCDATA endDTD endDocument
endElement endEntity endPrefixMapping error
fatalError ignorableWhitespace processingInstruction skippedEntity
startCDATA startDTD startDocument startElement
startEntity startPrefixMapping warning


Properties

• property Errors as list of %String;
This holds any error messages from validation of the XML document

Methods

• classmethod ValidateFile(pTargetFile As %String, pSchemaSpec As %String = "") as %Status
This method takes the file/path name of the XML file to be validated and an [optional] schema spec of the XML schema(s) to be used to validate the document.
• classmethod ValidateStream(pTargetStream As %BinaryStream, pResolver As Ens.Util.XML.Resolver, pSchemaSpec As %String = "") as %Status
This method takes a stream of XML to be validated, an entity resolver and an [optional] schema spec to be used to validate the document.
• method error(error As %Library.String)
Receive notification of a recoverable parser error.
• method fatalError(fatalerror As %Library.String)
Report a fatal XML parsing error.
• method warning(warning As %Library.String)
Receive notification of a parser warning.


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.