Bug 1196 : XML attributes named "xmlns" always return NULL
Last modified: 2010-06-05 03:06




Status:
ASSIGNED
Resolution:
-
Priority:
P2
Severity:
normal

 

Reporter:
LED555
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-03-10 20:46
Processing 1.0.3
Windows XP PRO, HP Pavillion dv6000

whenever an element's attribute name is xmlns, getStringAttribute() always
returns a NULL. all it takes is changing one letter in xmlns so it doesn't
spell out xmlns and everything works fine.

//
//
// <?xml version="1.0"?>
// <websites xmlns="test">blank</websites>
//
//

XMLElement xml;

void setup()
{
size(200, 200);
xml = new XMLElement(this, "sites.xml");

String ver = xml.getStringAttribute("xmlns");

if (ver != null) { println(ver); }
else { println("null!"); }

println(xml.getName() + ", " + xml.getContent());
}
Additional Comment #1 From fry 2010-06-05 03:06
yeah, xmlns is a little broken. need to look into it soon.
This bug is now being tracked here.