Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is a “selector”?

Selector
0
Posted

What is a “selector”?

0

A Smooks transformation is specified as a series of “resource” configurations (typically made in an XML file). Smooks loads/looks-up/”selects” a resource at runtime through the resources configuration “selector” value. For an XML fragment (Element) transformation resource, the selector value is the XML Element name. When Smooks passes over the message and encounters each Element, it uses the Element’s name to “select” the resources to be applied to that message fragment. A “selector” is not always an XML Element name however. An example of this would be message parser resource configurations (CSV parser, EDI parser etc), where the selector is always “org.xml.sax.driver “.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.