xpath read root element

EnverYigit

New Member
I want to read a root element in my xml file. when i read it from pathbeans/bean/...... it works fine\[code\]<?xml version="1.0" encoding="UTF-8"?><!-- The file defines all the configurations of the SemanticServer --><beans> <bean class="org.spr \[/code\]but when I use as root element \[code\]<?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"> \[/code\]instead of \[code\]<beans>\[/code\] it doesnot work.How can I read root element when it empty \[code\]<beans>\[/code\] and not \[code\]<beans xmlns="http\[/code\] ......Thanks!
 
Back
Top