Is there a generic way of determining all attributes (and their values) from an XML node using XQuery/XPath?
<parent>
<something attr1="123" attrA="abc" ..... attrAnythingelse="blablabla"/>
</parent>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Get all attributes for the current node using XPath:
Is that what you’re after?
The names and values of the attributes can be extracted per attribute:
Depends on what you want to do with them.