Skip to content

Commit

Permalink
M agpl-xml.adb
Browse files Browse the repository at this point in the history
M    agpl-xml.ads
  • Loading branch information
mosteo committed Jan 15, 2007
1 parent 18c88c8 commit e5a58ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions agpl-xml.adb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,18 @@ package body Agpl.Xml is
end;
end Get;

-----------------
-- Get_Or_Null --
-----------------

function Get_Or_Null (Parent : Node; Name : String) return Node is
begin
return Get (Parent, Name);
exception
when Constraint_Error =>
return null;
end Get_Or_Null;

-------------
-- Get_All --
-------------
Expand Down
2 changes: 2 additions & 0 deletions agpl-xml.ads
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ package Agpl.Xml is
------------------------------------------------------------------------
-- Retrieve the named child. If it doesn exist, exception raised.
function Get (Parent : Node; Name : String) return Node;
function Get_Or_Null (Parent : Node; Name : String) return Node;
-- Will return null instead of raising exception

------------------------------------------------------------------------
-- Get_All --
Expand Down

0 comments on commit e5a58ec

Please sign in to comment.