Jump to content
Sign in to follow this  

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...