Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: Selecting an XML Element by #text value

    This is actually just a wrapper for the [text()=’value’] XPATH attribute.  As I said in a previous post, this blog is my own knowledge base.  When I need this, and I’m sure I will, I’ll remember writing this entry, search my blog, and there it is! This will be used in a subsequent post about...
  • Blog Post: One-Liner: Case-Insensitive XML Queries

    I'm a one-trick pony with XML. I use $xml.SelectNodes("//name[@attribute='value']") and permutations thereof. However, XML's SelectNodes() and SelectSingleNode() methods are case-sensitive. My coworker Keith Munson found this tidbit: $xml.SelectNodes("//element[translate(@AttributeName, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ...
Page 1 of 1 (2 items)