# javax.xml.transform.TransformerException: Extra illegal tokens: '$', 'c'"}

**URL:** <https://discuss.appium.io/t/javax-xml-transform-transformerexception-extra-illegal-tokens-c/14855>\
**Category:** Support\
**Created:** [February 16, 2017, 5:02pm UTC](https://discuss.appium.io/t/javax-xml-transform-transformerexception-extra-illegal-tokens-c/14855 "2017-02-16T17:02:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navneet](https://discuss.appium.io/letter_avatar_proxy/v4/letter/n/8e8cbc/32.png) [@navneet](https://discuss.appium.io/u/navneet)\
**Post date:** [February 16, 2017, 5:02pm UTC](https://discuss.appium.io/t/javax-xml-transform-transformerexception-extra-illegal-tokens-c/14855/1 "2017-02-16T17:02:39Z")

</div>

I am not able to find element using xpath  
appium console gives following below error  
info: [debug] [BOOTSTRAP] [debug] Finding [//android.widget.HorizontalScrollView](https://android.widget.HorizontalScrollView)[@index=‘4’]/android.support.v7.app.a$c using XPATH with the contextId: multiple: true

> info: [debug] [BOOTSTRAP] [debug] Returning result: {“status”:32,“value”:“javax.xml.transform.TransformerException: Extra illegal tokens: ‘$’, ‘c’”}  
> info: [debug] Responding to client with error: {“status”:32,“value”:{“message”:“Argument was an invalid selector (e.g. XPath/CSS).”,“origValue”:“javax.xml.transform.TransformerException: Extra illegal tokens: ‘$’, ‘c’”},“sessionId”:“52d74cf7-c0ac-4f75-acbc-5b104516ff39”}
