Hi,
We also can use namespace prefix for the element name (dc:title):
Example :
// Set Dublin Core title
metadata.set("http://purl.org/dc/elements/1.1/", "dc:title", title);
// Set OpenDocument keywords
metadata.set(
"urn:oasis:names:tc:opendocument:xmlns:meta:1.0",
"dc:keywords", keywords);
Regards.
2007/10/10, Keith R. Bennett <[EMAIL PROTECTED]>:
>
>
> So our Metadata object would have a map whose key was a composite of the
> namespace and the name?
>
> - Keith
>
>
>
> Jukka Zitting wrote:
> >
> > Hi,
> >
> > On 10/10/07, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
> >> On 10/10/07, Jukka Zitting <[EMAIL PROTECTED]> wrote:
> >> > ...Alternatively, should we use separate namespace URIs to identify
> the
> >> > namespace of a metadata key? That would make it easier to integrate
> >> > with various XML processing tools....
> >>
> >> Not sure what you mean by that, could you give an example?
> >
> > Something like this:
> >
> > // Set Dublin Core title
> > metadata.set("http://purl.org/dc/elements/1.1/", "title", title);
> > // Set OpenDocument keywords
> > metadata.set(
> > "urn:oasis:names:tc:opendocument:xmlns:meta:1.0",
> > "keywords", keywords);
> >
> > Of course with appropriate namespace constants in place.
> >
> > BR,
> >
> > Jukka Zitting
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Namespacing-our-Metadata-keys--tf4599760.html#a13136603
> Sent from the Apache Tika - Development mailing list archive at Nabble.com
> .
>
>