comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: XML/Ada schema validation and XML namespaces
Date: Wed, 10 Apr 2013 20:56:37 +0100
Date: 2013-04-10T20:56:37+01:00	[thread overview]
Message-ID: <lyppy2f9ca.fsf@pushface.org> (raw)
In-Reply-To: kk48a3$79q$1@hugin.sparre-andersen.dk

J Kimball <nntp@kmbll.com> writes:

>    Document := Schema.DOM_Readers.Get_Tree (My_Reader);
>
>    Messages := DOM.Core.Elements.Get_Elements_By_Tag_Name_NS
>      (Elem => Document, Namespace_URI => Agent_NS, Local_Name => "message");

Well, in Dom.Core,
   subtype Document is Node (Document_Node);
but Get_Elements_By_Tag_Name_NS'e Elem parameter is an Element
   subtype Element is Node (Element_Node);

I think you need the first child of the document (I think there's only
one): Elem => DOM.Core.Nodes.First_Child (Document).



      reply	other threads:[~2013-04-10 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 19:58 XML/Ada schema validation and XML namespaces J Kimball
2013-04-08 20:00 ` J Kimball
2013-04-09 11:45 ` Simon Wright
2013-04-10 17:42   ` J Kimball
2013-04-10 19:56     ` Simon Wright [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox