I want to read a root element in my xml file.
When i read it from XPath
"beans/bean/......"
, it works fine. The XML input file begins:
<?xml version="1.0" encoding="UTF-8"?>
<!-- The file defines all the configurations of the SemanticServer -->
<beans>
<bean class="org.spr
but when I use as root element
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
instead of <beans>
it does not work.
How can I read root element when it empty <beans>
and not <beans xmlns="http
......
Thanks!