Jump to content

Help With XML Format


Recommended Posts

      <m:getResponse xmlns:m="com-xxx-xxxx-xxx">         <m:return>            <java:ErrorCode xmlns:java="java:com.xxx.xxxx.xxxx">0000</java:ErrorCode>            <java:Password xmlns:java="java:com.xxx.xxxx.xxxx">XXXXXXX</java:Password>            <java:Number xmlns:java="java:com.xxx.xxxx.xxxx">XXXXX</java:SerialNumber>         </m:return>      </m:getResponse> 

Hi, when i try to parse this XML using X path i keep getting Error that Root not found. Is the XML format correct? I think the namespace decleration should be

      <m:return xmlns:java="java:com.xxx.xxxx.xxxx">            <java:ErrorCode >0000</java:ErrorCode>           ........

instead of what it is please help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...