Assembly Editor
Building Assemblies
HTTP, XML, and XPath
3 min
building assemblies in the assembly editor requires some knowledge of http, xml, and xpath for an introduction to http, see here for an introduction to xml, see here for an introduction to xpath, see here supported xpath functionality assembly modules that process xml provide dropdowns to select nodes and attributes based on xpaths that are automatically parsed from the module's input data streams you can edit these xpaths manually if needed, when the automatically parsed xpaths don't select needed nodes the system does not support all xpath functionality within the assembly modules, however only a subset of overall xpath functionality is available given this sample xml this is the available xpath functionality that can be used within assembly modules myxml/person\[1] just the first "person" node homer myxml/person all the "person" nodes homer, marge, montgomery myxml/person\[2 3] "person" nodes 2 to 3 inclusive marge, montgomery myxml/person\[2 ] "person" nodes 2 and onwards marge, montgomery myxml/person\[ 2] "person" nodes up to and including 2 homer, marge myxml/person\[@show] all "person" nodes that have a "show" attribute homer, marge, montgomery myxml/person\[@show = 'simpsons'] all "person" nodes that have a "show" attribute which equals "simpsons" (compare is case sensitive) homer, marge, montgomery myxml/ /firstname all "firstname" nodes under any node in "myxml" homer, marge, montgomery myxml/person\[1]/@show the "show" attribute of the first "person" node simpsons myxml/person\[1]/lastname/text() the text of the "lastname" node of the first "person" node simpson myxml/person/last() the number of "person" nodes 3 if you need more xpath functionality than is possible within the pre built baseline modules, then you should use the extension server side script module and write java jsp code that uses the vtd xml parser to process the xml as needed