Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
Description
I inject in the Velocity context xmlf1 as an XmlTool instance corresponding with some user-defined input file. This allows the user to build the Velocity template using constructs like $xmlf1.OrderId and so on.
This works great if the input xml does not contain namespaces.
Otherwise, he has to write
$xmlf1.find('//*[local-name()="OrderId"]/text()') which is much more complex.
Can I pass-through some NamespaceContext instance to the XmlTool instance that I make available, so that a plain $xmlf1.OrderId also works ?