jQuery find using wildcard for xml tagname?

dadoo

New Member
Afternoon all,Im trying to find all xml tags that contain a particular word - ie using a wildcard.The xml is used as such:\[code\]xml = $('<elements>' + $('#form_template').val() + '</elements>');\[/code\]Where in #form_template contains the xml contents.I then want to search the entire xml tree for tagnames starting with the word item.I've tried \[code\]xml.match(/item_[0-9]+/)\[/code\] but this returns match is not a function.Any clue how to search for tags that contain item throughut the xml?Regards,EDIT: Code sampleThis is used to create a zend form. The html would be irrelevant for the example.\[code\]<QUESTION1><type>MultiCheckbox</type><options><class>rulem1 type-1 standard</class><label>Fabs and Equipments</label><multioptions><item-separate_equipments>Separate Equipments</item-separate_equipments><item-lasers>Lasers</item-lasers><item-metrology>Metrology / Inspection</item-metrology><item-turnkey>Turnkey Lines</item-turnkey><item-factory>Factory Design</item-factory></multioptions></options></QUESTION1><QUESTION2><type>MultiCheckbox</type><options><class>rulem1 type-1 standard</class><label>Material and Components</label><multioptions><item-backsheets>Backsheets</item-backsheets><item-raw_materials>Raw Materials</item-raw_materials><item-auxiliary>Auxiliary Materials</item-auxiliary><item-cell_coating>Coating</item-cell_coating><item-pastes>Pastes / Metallisation</item-pastes><item-tf>TF Gas</item-tf><item-foils>Foils</item-foils><item-encapsulation>Encapsulation</item-encapsulation><item-aluminium>Aluminium</item-aluminium><item-junction>Junction Box and Connection Systems</item-junction><item-materials_others>Others</item-materials_others></multioptions></options></QUESTION2>\[/code\]
 
Back
Top