{"body":"#`[ some useful XML lookup commmands\nmy $head = $html.elements(:TAG<head>, :SINGLE);\nmy @stylesheets = $head.elements(:TAG<link>, :rel<stylesheet>);\nmy @middle = $table.elements(:!FIRST, :!LAST);\nmy @not-red = $div.elements(:class(* ne 'red'));\n# find all elements by class name\nmy @elms-by-class-name = $html.elements(:RECURSE(Inf), :class('your-class-name')); \n#and for insert, replace...\nmy $id = $ix.elements(:TAG<id>).first; say $id;\nmy $ni = XML::Text.new( text => 'Nah Monthly' );\n$id.insert( $ni );\nmy $nt = XML::Text.new( text => 'Nah Monthly' );\n$ar[3].replace( $ar[3].nodes[0], $nt );\nsay $ar[3].nodes[0];\n\tmy $ar = $ix.root; say $ar.name;\n\tfor 1..10 -> $i {\n\t\tsay \"article child $i is:\" ~ $ar[$i];\n\t}\n\tsay $ar[3].attribs;\n\tsay $ar[3].nodes;\n\tsay $ar[3].nodes[0].WHAT;\n\tsay $ar[3].nodes[0];\n#]","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/6meVfH3B","modified":1740174700,"id":"6meVfH3B","size":804,"lines":23,"own_paste":false,"theme":"","date":1740174700}