comp.lang.ada
 help / color / mirror / Atom feed
* Generating an XML DOM tree from scratch withXML/Ada 2013
@ 2014-03-20 17:00 Marc C
  2014-03-21 16:12 ` J Kimball
  0 siblings, 1 reply; 3+ messages in thread
From: Marc C @ 2014-03-20 17:00 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-24 20:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-20 17:00 Generating an XML DOM tree from scratch withXML/Ada 2013 Marc C
2014-03-21 16:12 ` J Kimball
2014-03-24 20:18   ` Marc C

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