KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm having this XML document with namespaces and I want to extract some nodes using XPath. Here's the document: <ArrayOfAnyType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"> <anyType xsi:type="Document"> <Id>5</Id> <Title>T1</Title> </anyType> <anyType xsi:type="Document"> <Id>15</Id> <Title>T15</Title> </anyType> </ArrayOfAnyType> What's the XPath expression going to be if I want to extract all "anyType" elements with xsi:type="Document"? I've tried this: //anyType[@xsi:type="Document"] and it doesn't work:
Tags (comma-separated)
Save Edits
Cancel