Menu

#4 no namspace versus default namespace

open
nobody
None
5
2004-08-26
2004-08-26
Anonymous
No

Suppose the template has an xmlns="one" on the root
element.

Then replaceContent with "<foo>". Currently tiny
template for java interprets this as having no
namespace and thus writes a xmlns='' on it. Should
replaceContent take a parameter for the namespace?
Should it assume that its contents have the same
default namespace as where they are going in the
template? What does tiny template for C++ do?

A workaround is to replaceContent with "<foo
xmlns='one'>" instead, but that is hardly appealing.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB