I am using an XML datastore for a tool that, in part, addresses modifying INI files. To that end, I have some XML that looks like this...
<ManageINI> <Target>Target.ini</Target> <ReviseKey> <Section>Section</Section> <Name>Name</Name> <Value>Value</Value> </ReviseKey> </ManageINI> Which of course is problematic because ReviseKey.Name is the name of that node, which conflicts with the child node. A better answer of course is to use <KeyName> and <KeyValue>. What I want to do now is look for 'Name' keys and flag them in a log as needing revision. However, I am so far unable to access them at all. I had thought that $node.'name' vs $node.name might get me there, but no. So, the question is, is there some way to force an XPath based approach to see these Name nodes so I can flag them, or have I dug myself a right deep hole that I can't really get out of in code?
No comments:
Post a Comment