...
DataNodeBuilder class was modified to add the method 'withModuleNamewithModuleNamePrefix()' which adds a module name attribute to the DataNode object being built.
When the buildFromAttributes() method is called it then calls the added method addModulePrefixToXpath(moduleName).
addModulePrefixToXpath(moduleName) contains the following logic
...
collapse | true |
---|
...
sets the DataNode attribute 'moduleNamePrefix'.
When the response is being made from methods such as GetDataNode and QueryNodes it calls DataMapUtils class.
Results of modifying cps core output through DataNodeBuilder and DataMapUtils
Xpath | Response | |||||
---|---|---|---|---|---|---|
/ |
| |||||
/bookstore/categories[@code='02'] |
|
...
Example module name | stores | |
Xpath parameter | Expected modified XPath set as data node XPath attributenode identifier | |
---|---|---|
/bookstore | /stores:bookstore | |
/bookstore/categories[@code='02'] | /bookstore/stores:categories[@code='02'] |
...