return "xpdl:".equals(this.xpdlPrefix);
}
public void fromXML(Element node, Package pkg) {
NamedNodeMap attribs = node.getAttributes();
Namespaces nss = pkg.getNamespaces();
for (int i = 0; i < attribs.getLength(); i++) {
Node n = attribs.item(i);
String nn = n.getNodeName();
if (nn.startsWith("xmlns:") && !nn.equals("xmlns:xsi")) {
Namespace ns = (Namespace) nss.generateNewElement();
ns.setName(nn.substring(6, nn.length()));
fromXML(n, (XMLAttribute) ns.get("location"));
nss.add(ns);
}
}
fromXML(node, (XMLComplexElement) pkg);
}