On 1/10/16, 11:18 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>It’s kind of vague to me, but I’m assuming an InScopeNamespace means a >namespace defined by an XML element, or one of its ancestors. I’m not >entirely clear on all the nuances of namespace behavior in XML. Neither am I. Running some tests might help. > >I’m not sure what happens when an element is moved from one XML object to >another if it has a prefix, but no xmlns defined. I guess there needs to >be some reference to the Namespace even though it’s not defined in the >xml element? What happens if the prefix means one uri in one xml >structure, but means another uri in another? Does it keep the prefix and >have it redefined to a new uri, lose it, or does the same prefix mean >different things in the same structure? I don't know for sure, but I had to implement E4X, each node would store a qname. The prefix would be used as a shortcut for a namespace if it had been specified via xmlns. If there wasn't a prefix, then I would write out the URI for the namespace when printing via toXMLString(). -Alex