Index154

XML attribute values as list

May 14th, 2021
967
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package xmlAttributeExtractor;
  2.  
  3. public class AttributeExtractor {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         // Go to https://regex101.com and put the following regex in the field:
  8.         //          name="(.*?)"
  9.         // Replace name with description if necessary
  10.         // Then paste the file contents in the test string box
  11.        
  12.         // Click on the little arrow pointing up from a square on the right under match information
  13.         // Pick export method plain text and untick the checkbox at the bottom
  14.         // Copy the result to clipboard
  15.  
  16.     }
  17.  
  18. }
RAW Paste Data