[XML-SIG] Minidom proposal

Greg Stein gstein@lyra.org
Fri, 18 Feb 2000 15:53:29 -0800 (PST)


On Fri, 18 Feb 2000, Paul Prescod wrote:
>...
> class Attribute(Node):
> 	string namespaceURI
> 	string prefix
> 	string localName
> 	string value
> 	element ownerElement

Attribute is a subclass of Node, which has a parent. Why not use the
parent for the owner?

> class Element(Node):
> 	string tagname
> 	# check what the DOM does with namespaces
> 	{Dictionary of Name->Value} attributes
> 	GetElementsByTagName( tagname ) -> List[Node]:
> 	getElementsByTagNameNS(
> 		DOMString namespaceURI, 
>                 DOMString localName) -> NodeList

GetElementsByTagName* should have a matching capitaliztion.

DOMString??
NodeList -> List[Node]

> 	string namespaceURI
> 	string prefix
> 	string localName

Isn't this a duplicate of tagname? Why have both?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/