Gul Akbar wrote:
 service.setNamespace("xmlns","http://www.loc.gov/METS/";);
 service.setNamespace("xmlns:xlink","http://www.w3.org/TR/xlink";);
 service.setNamespace("xmlns:DC","http://purl.org/dc/elements/1.1/";);
 service.setNamespace
("xmlns:ETOC","http://localhost:8080/Project/xsd/etoc.xsd";);

All these should be:

service.setNamespace("xlink","http://www.w3.org/TR/xlink";);
service.setNamespace("DC","http://purl.org/dc/elements/1.1/";);
...

removing the "xmlns" keyword that is not part of the namespace prefix.

service.setNamespace("xsi:schemaLocation","http://www.loc.gov/METS/ http://www.loc.gov/standards/mets/mets.xsd http://purl.org/dc/elements/1.1/
http://dublincore.org/schemas/xmls/simpledc20021212.xsd";);

This is *not* a namespace decl. It's just the attribute "schemaLocation" in the namespace "http://www.w3.org/2001/XMLSchema-instance";, identified by the prefix "xsi".


HTH,

--
Gianugo Rabellino
Pro-netics s.r.l.
http://www.pro-netics.com



Reply via email to