# Assert\_select and XML namespaces

**URL:** <https://www.ruby-forum.com/t/assert-select-and-xml-namespaces/130796>\
**Category:** Rails\
**Created:** [March 3, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/assert-select-and-xml-namespaces/130796 "2008-03-03T13:32:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farrel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/bcef8e/32.png) [@Farrel](https://www.ruby-forum.com/u/Farrel)\
**Post date:** [March 3, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/assert-select-and-xml-namespaces/130796/1 "2008-03-03T13:32:15Z")

</div>

Can assert\_select handle XML namepsaces? I have an xml document  
returned with a section in an XML namepsace. According to the W3C “ns|  
element” is the CSS selector for an element in the ns namespace. I’ve  
tried that in assert\_select and it complains about it being an invalid  
selector. Is it possible or should I revert to using assert\_match?
