VSS.XML.Templates.Processors

Entities

Tagged Types

Subprograms

Description

Copyright (C) 2022-2023, AdaCore

SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

Bind

procedure Bind
  (Self  : in out XML_Template_Processor'Class;
   Path  : VSS.String_Vectors.Virtual_String_Vector;
   Proxy : not null VSS.XML.Templates.Proxies.Proxy_Access)

Bind given proxy to given path. Ownership of the proxy object is moved to template processor, thus application must not use it anymore. Proxy will be released by the templates processor.

Use of the subprogram is discouraged. It is recommended to define custom composite proxy and bind it to the segment of the root namespace.

Parameters
Self
Path
Proxy

Bind

procedure Bind
  (Self    : in out XML_Template_Processor'Class;
   Segment : VSS.Strings.Virtual_String;
   Proxy   : not null VSS.XML.Templates.Proxies.Proxy_Access)

Bind given proxy to given segment of the root namespace. Ownership of the proxy object is moved to template processor, thus application must not use it anymore. Proxy will be released by the templates processor.

Parameters
Self
Segment
Proxy

Set_Content_Handler

procedure Set_Content_Handler
  (Self    : in out XML_Template_Processor;
   Handler : VSS.XML.Content_Handlers.SAX_Content_Handler_Access)
Parameters
Self
Handler

Set_Error_Handler

procedure Set_Error_Handler
  (Self    : in out XML_Template_Processor;
   Handler : VSS.XML.Error_Handlers.SAX_Error_Handler_Access)
Parameters
Self
Handler

XML_Template_Processor

type XML_Template_Processor is
  limited new VSS.XML.Content_Handlers.SAX_Content_Handler
    and VSS.XML.Lexical_Handlers.SAX_Lexical_Handler with private;