comp.lang.ada
 help / color / mirror / Atom feed
From: Marc C <mc.provisional@gmail.com>
Subject: Generating an XML DOM tree from scratch withXML/Ada 2013
Date: Thu, 20 Mar 2014 10:00:54 -0700 (PDT)
Date: 2014-03-20T10:00:54-07:00	[thread overview]
Message-ID: <1f79df5e-7fbd-4f94-b2c7-8afa754b31d5@googlegroups.com> (raw)

After writing up some pathfinding code to simply create a DOM document tree from scratch, add a node, and write it out, I was perplexed that the namespace data I was supplying was not showing up in the document.

Imagine my surprise when looking at the Dom.Core.Create_Document() implementation and seeing that the Namespace_URI (and Qualified_Name) parameters are simply ignored. The comment in the spec simply states "Note that Namespace_URI can be the empty string if you do not want to use namespaces."

Well, I *do* want (and need) to use namespaces.

The implementation of various subprograms reference namespaces and qualified names, and that seems to somehow tie into the SAX Symbol_Table that can be provided to Create_Document.  But it ain't clear what one would have to do in that regard, not to mention I'm not sure I'm even reading the code right about all that.

I've got XML_EZ_Out for outputting XML, but in this instance I preferred to build the DOM tree and manipulate it, then write the whole thing out when I was done.

Anyone used the GNAT GPL 2013 XML/Ada packages for creating DOM trees with namespaces?

Thanks.

Marc A. Criley


             reply	other threads:[~2014-03-20 17:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20 17:00 Marc C [this message]
2014-03-21 16:12 ` Generating an XML DOM tree from scratch withXML/Ada 2013 J Kimball
2014-03-24 20:18   ` Marc C
replies disabled

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