rexml error

E

Eric Will

Any time it parses anything that has "xmlns:xml" defined, it spits out
an error saying you MUST NOT redefine this attribute. However,
according to the XML spec:

The prefix xml is by definition bound to the namespace name
http://www.w3.org/XML/1998/namespace. It MAY, but need not, be
declared, and MUST NOT be bound to any other namespace name. Other
prefixes MUST NOT be bound to this namespace name, and it MUST NOT be
declared as the default namespace.

In other words, it MAY be defined as
http://www.w3.org/XML/1998/namespace. REXML doesn't check to see what
it's defined as, it just dies anytime it sees it defined.
 
M

Mark Thomas

Any time it parses anything that has "xmlns:xml" defined, it spits out
an error saying you MUST NOT redefine this attribute. However,
according to the XML spec:

  The prefix xml is by definition bound to the namespace name
 http://www.w3.org/XML/1998/namespace. It MAY, but need not, be
  declared, and MUST NOT be bound to any other namespace name. Other
  prefixes MUST NOT be bound to this namespace name, and it MUST NOT be
  declared as the default namespace.

In other words, it MAY be defined ashttp://www.w3.org/XML/1998/namespace.REXML doesn't check to see what
it's defined as, it just dies anytime it sees it defined.

I suggest you report it as a bug. I see a similar one:
http://www.germane-software.com/projects/rexml/ticket/106

- Mark.

P.S. in the mean time you may want to try libxml-ruby which is pretty
stable these days.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Hash into Two Arguments (for REXML) 1
REXML 19
Should Nokogiri replace REXML? 4
Odd puts behaviour with REXML 7
Errors on REXML reading an HTML. 1
REXML usage 3
ANN: REXML 3.1.4 0
REXML, XPath and Namespace 1

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top