This should be easy...hoping someone could have a look & see what wrong with my code.
I'm simply trying to loop through an xml document & grab multiple nodes if a specific element contains specific text.
So if my xml looks like this:
<Settings><Document> <FriendlyName>The Big One</FriendlyName> <ID>8ae3428b-f1f2-4b94-a65c-2c8e24f660c8</ID> <Post>True</Post> <Department>Collections</Department> <Category>Forms</Category> <Audience></Audience> <Link Type="Page" Target=""><![CDATA]></Link> <Keywords></Keywords> </Document></Settings>
So my requirement is:
For each element, If FriendlyName contains "Big", get the inntertext of FriendlyName, Department, Category, Link and pipe them together like this:
"The Big One | Collections | Forms | Link"
It looks like I'm having problems with the If statement, if I remove it I'll get every
View Complete Post