[XML-SIG] Minidom proposal
Mike Olson
Mike.Olson@Fourthought.com
Mon, 21 Feb 2000 01:45:43 -0700
--------------7AC834847477473E2914850B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Ken MacLeod wrote:
> Paul Prescod <paul@prescod.net> writes:
>
> > I propose the following interface for a module that would go
> > into Python 1.6 (excuse my IDLish shorthand)
>
> All looks good to me.
>
> > class Element(Node):
> > string tagname
> > # check what the DOM does with namespaces
> > {Dictionary of Name->Value} attributes
>
> To clarify, this dictionary follows the earlier proposal that
> attributes are keyed by (namespaceURI, localName) tuples, correct?
>
What if we are in a non-namespace-aware system? Should the key be
(None,localName) or just localName?
Mike
>
> -- Ken
>
> P.S. I wish Perl could do that gracefully. :-/
>
> _______________________________________________
> XML-SIG maillist - XML-SIG@python.org
> http://www.python.org/mailman/listinfo/xml-sig
--
Mike Olson
Senior Consultant Fourthought, Inc.
http://www.fourthought.com http://www.opentechnology.com
720-304-0152
--------------7AC834847477473E2914850B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Ken MacLeod wrote:
<blockquote TYPE=CITE>Paul Prescod <paul@prescod.net> writes:
<p>> I propose the following interface for a module that would go
<br>> into Python 1.6 (excuse my IDLish shorthand)
<p>All looks good to me.
<p>> class Element(Node):
<br>> string tagname
<br>> # check what the DOM does with
namespaces
<br>> {Dictionary of Name->Value} attributes
<p>To clarify, this dictionary follows the earlier proposal that
<br>attributes are keyed by (namespaceURI, localName) tuples, correct?
<br> </blockquote>
What if we are in a non-namespace-aware system? Should the key be
(None,localName) or just localName?
<p>Mike
<br>
<blockquote TYPE=CITE>
<br> -- Ken
<p>P.S. I wish Perl could do that gracefully. :-/
<p>_______________________________________________
<br>XML-SIG maillist - XML-SIG@python.org
<br><a href="http://www.python.org/mailman/listinfo/xml-sig">http://www.python.org/mailman/listinfo/xml-sig</a></blockquote>
<pre>--
Mike Olson
Senior Consultant Fourthought, Inc.
<A HREF="http://www.fourthought.com">http://www.fourthought.com</A> <A HREF="http://www.opentechnology.com">http://www.opentechnology.com</A>
720-304-0152</pre>
</html>
--------------7AC834847477473E2914850B--