cancel
Showing results for 
Search instead for 
Did you mean: 

query on XML elements/attributes?

trevoralyn
Champ in-the-making
Champ in-the-making
I'm evaluating Alfresco for use as a CMS in an XML-centric documentation workflow. I'd like to be able to query on particular element and attribute values – for example, to pull up all XML files that have PROLOG@status="ready_for_review".  This could be done with a full text search, but that's a bit clumsy.  Does Alfresco allow this by any other means than a full text search (e.g., something like an XPath query)?

By the way, I'm not a developer, so if the solution involves custom code, it's going to be beyond my abilities.

Thanks,
trevor
4 REPLIES 4

andy
Champ on-the-rise
Champ on-the-rise
Hi

You would have to do tull text search or find a metadata extractor that pulls your data out of the xml and adds it to an attribute. You could then search for the attribute.

Andy

kvc
Champ in-the-making
Champ in-the-making
To add to Andy's comment, for our upcoming 2.1.0 Community release, we intend to provide support for this capability in our WCM module.  With 2.1.0, our target is to provide a pre-built extractor that, based on some identified list of XML elements configured via a config file, will take those individual elements and set them as atttributes.  With 2.1.0 then, as Andy noted, you will then be able to execute the type of queried you asked for.

2.1.0 ships as Community release end of month.  This capability, I should note, is a non-stop ship item.  This means that there is the possibility that this feature will not make it, should complications arise with our major feature commits.  We will keep you updated on progress, and the release, so stay tuned.

Kevin

trevoralyn
Champ in-the-making
Champ in-the-making
Thanks for the reply, Andy, I appreciate it.

Kevin – That's great news!  If that's the case, I'm going to think about using Alfresco in a flat-file manner for now, and then rethinking the workflow pieces once this feature is implemented.  Thanks a ton for replying.

trevor

lock999
Champ in-the-making
Champ in-the-making
Hi,

Do you have any sample scripts or documentation regarding XML extractor (pre-built extractor) in Alfresco 2.1?

Thanks
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.