From: jeff schilling Date: 2003-01-09T21:11:38+09:00 Subject: XML Namespaces in sgml-parser I posted this to c.l.ruby the other day. Any comments? I've been working on extending the sgml-parser included with the std windows distribution and have run into several issues. 1. Tags with xml namespace qualifiers would get split thusly would end up with tag="dc" with an attribute of "language" 2. Attributes cannot contain namespace qualifiers - e.g. would end up as [{l => ""}, {rel=>"http....."}] 3. directives such as ]*>/ --- >> Special = /> Tagfind = /[a-zA-Z][a-zA-Z0-9.-:]*/ >> Attrfind = Regexp.compile('[\s,]*([a-zA-Z_][-:.a-zA-Z_0-9]*)' + Are these changes perceived as valuable? Any comments, gotchas? -Jeff