AnsweredAssumed Answered

The meaning of XML extractor selector

Question asked by kilo on Jan 29, 2010
Latest reply on Feb 3, 2010 by derek
Hello Gurus,

I'm trying to understand Alfresco's built-in XML meta data-extraction, which I understand requires 3 configurations:

    1. Configure the selector class ( where I set the "worker" property)
    2. Map a local variable to a content type property, where the extracted value will go to
    3. Map the local variable to XPATH expression

I'm trying to understand the design. Apparently, the selector class only peeks inside XML (for validation?). It is the XPATH extractor that does the real work. So why does selector need to be configured? Why do I need to provide root of my XPATH within selection configurations also - which I already provided during XPATH mapping to a local var.

I'm confused.  Why is there a round-about way of mapping parameter extracted from XPATH to a content property? Why do we need an intermediate mapping?

I'm trying to understand. I will appreciate any pointers.