The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
//div[@id="REVIEWS"]//p[starts-with(@id, "review_")]/text()
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.3.009"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.3.009" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="text:process_document_from_file" compatibility="5.3.000" expanded="true" height="76" name="Process Documents from Files" width="90" x="45" y="30"> <list key="text_directories"> <parameter key="All" value="C:\Improve Your Business\Qing\Pilot\test\crawl"/> </list> <parameter key="extract_text_only" value="false"/> <parameter key="create_word_vector" value="false"/> <process expanded="true"> <operator activated="true" class="text:cut_document" compatibility="5.3.000" expanded="true" height="60" name="Cut Document" width="90" x="246" y="30"> <parameter key="query_type" value="XPath"/> <list key="string_machting_queries"/> <list key="regular_expression_queries"/> <list key="regular_region_queries"/> <list key="xpath_queries"> <parameter key="review" value="//h:div[@id=&quot;REVIEWS"]//h:p[starts-with(@id, "review_")]"/> </list> <list key="namespaces"/> <list key="index_queries"/> <process expanded="true"> <operator activated="true" class="text:extract_information" compatibility="5.3.000" expanded="true" height="60" name="Extract Information" width="90" x="313" y="30"> <parameter key="query_type" value="XPath"/> <list key="string_machting_queries"/> <list key="regular_expression_queries"/> <list key="regular_region_queries"/> <list key="xpath_queries"> <parameter key="review" value="//h:p[starts-with(@id, "review_")]/text()"/> </list> <list key="namespaces"/> <list key="index_queries"/> </operator> <connect from_port="segment" to_op="Extract Information" to_port="document"/> <connect from_op="Extract Information" from_port="document" to_port="document 1"/> <portSpacing port="source_segment" spacing="0"/> <portSpacing port="sink_document 1" spacing="0"/> <portSpacing port="sink_document 2" spacing="0"/> </process> </operator> <connect from_port="document" to_op="Cut Document" to_port="document"/> <connect from_op="Cut Document" from_port="documents" to_port="document 1"/> <portSpacing port="source_document" spacing="0"/> <portSpacing port="sink_document 1" spacing="0"/> <portSpacing port="sink_document 2" spacing="0"/> </process> </operator> <operator activated="true" class="select_attributes" compatibility="5.3.009" expanded="true" height="76" name="Select Attributes" width="90" x="179" y="30"> <parameter key="attribute_filter_type" value="single"/> <parameter key="attribute" value="review"/> <parameter key="include_special_attributes" value="true"/> </operator> <operator activated="true" class="set_role" compatibility="5.3.009" expanded="true" height="76" name="Set Role" width="90" x="313" y="30"> <parameter key="attribute_name" value="review"/> <list key="set_additional_roles"/> </operator> <connect from_op="Process Documents from Files" from_port="example set" to_op="Select Attributes" to_port="example set input"/> <connect from_op="Select Attributes" from_port="example set output" to_op="Set Role" to_port="example set input"/> <connect from_op="Set Role" from_port="example set output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>