Hosted by
|
with Ada.Tags;
with Writers; use Writers;
with Indent_Writers; use Indent_Writers;
package XML_Writers is
type XML_Writer is
new Indent_Writer with null record;
type XML_Writer_Access is access XML_Writer;
function Current_Output
return XML_Writer_Access;
function Create
(Filename : in String)
return XML_Writer_Access;
procedure Close
(This : in out XML_Writer_Access);
procedure Start_Tag
(This : access XML_Writer;
Name : in String);
procedure Close_Tag
(This : access XML_Writer;
Extra : in String := "");
procedure Write_Tag
(This : access XML_Writer;
Name : in String);
procedure Write_Attribute_Name
(This : access XML_Writer;
Name : in String);
procedure Write_Attribute_Value
(This : access XML_Writer;
Value : in String);
procedure Write_Attribute
(This : access XML_Writer;
Name : in String;
Value : in String);
procedure Write_Data
(This : access XML_Writer;
Data : in String);
procedure Start_Element
(This : access XML_Writer;
Name : in String);
procedure Close_Element
(This : access XML_Writer;
Name : in String);
procedure Write_Element
(This : access XML_Writer;
Name : in String);
procedure Write_Element
(This : access XML_Writer;
Name : in String;
Data : in String);
procedure Start_Element
(This : access XML_Writer;
Name : in String;
Attr : in String;
Value : in String);
procedure Write_Element
(This : access XML_Writer;
Name : in String;
Attr : in String;
Value : in String);
procedure Write_Element
(This : access XML_Writer;
Name : in String;
Attr : in String;
Value : in String;
Data : in String);
end XML_Writers;
|