Space in attribute name
-
Hello, I want to know what is the xpath expression when there is a space in attribute name. e.g. /Employee/*[@Employee Name='name'] "Employee Name" is attribute name. Thanks, Aniruddha
If you have spaces in element names or in attribute names, then what you have **IS NOT XML**. XML doesn't allow spaces in element or attribute names. See the specification for names[^] (which is used for element and attribute names) in the XML spec. So therefore, your question can only be answered logically with this statement: get rid of the spaces form your attribute names.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hello, I want to know what is the xpath expression when there is a space in attribute name. e.g. /Employee/*[@Employee Name='name'] "Employee Name" is attribute name. Thanks, Aniruddha