> On Oct 9, 2017, at 3:20 PM, Bill Ricker via Boston-pm <[email protected]> > wrote: > > So you want to edit XML locally, replacing a tag's text contents with > a specific portion of the text contents of a specifically-named > sibling tag. > > For local edits such as you need, I'd use XML::Twig [2][3]. > I did a worked example [1] not so very different from yours for the > Perl Advent calendar in a prior decade (when Boston.PM's Jerrad Pierce > was editor and Boston.PM were majority contributors).
Hi! I was just working with some XML, and I’d like to suggest also looking at XML::XPath, which does allow you to change the text content (and probably all the other attributes) of nodes. Also, since you can find nodes using XPath, it may be easier to select nodes, rather than walking through a tree of Perl structures… RIcky The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

