octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ version of regexprep.cc


From: Bill Denney
Subject: Re: C++ version of regexprep.cc
Date: Thu, 4 May 2006 10:32:07 -0400 (EDT)

On Thu, 4 May 2006, Andy Adler wrote:

Note that this is a very non standard way to parse XML.

The colon is a name space designator. Consider thse documents

   <doc xmlns:ABC="http://my.xml.name.space";>
     <ABC:de value="1"/>
   </doc>

and

   <doc xmlns:XYZ="http://my.xml.name.space";>
     <XYZ:de value="1"/>
   </doc>

The XML infoset spec requires that these documents be
considered to be EXACTLY equivalent.  This means that
any XML processing application which treats these
documents differently is techically NOT VALID.

Do we want octave XML parsers to correctly deal with
these kinds of issues.

I personally think that elements should have a namespace associated with it only if it's different than the parent. Then it is simple to climb the tree to see your particular namespace.

Bill

--
"Any one who considers arithmetical methods of producing random digits
is, of course, in a state of sin."
  -- John von Newmann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]