aspose file tools*
The moose likes XML and Related Technologies and the fly likes xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml" Watch "xml" New topic
Author

xml

kallu nal
Greenhorn

Joined: Jun 23, 2012
Posts: 6
the parsing of below string works in my local machine but not in my office machine... can someone please suggest

String xmlstr= "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><rsp:FepocResponse xmlns:rsp=\"http://xml.bcbsfl.com/commonplatform/fep/rsp20101231\">"

+" <M1ApprovedClaimRec>"
+" <HipaaRelatedFieldsM1> <PlanOrigClaimNumberM1>1111111111111</PlanOrigClaimNumberM1>"

+" <PlanSubChFirstNameM1>MACE </PlanSubChFirstNameM1>"

+"<PlanSubChMiddleInitM1>G </PlanSubChMiddleInitM1>"

+"<PlanSubChLastNameM1>BARRON </PlanSubChLastNameM1>"

+" </HipaaRelatedFieldsM1> <LineCodeShbr>M1</LineCodeShbr>"
+" <ContractIdNumberShbr>R57714574 </ContractIdNumberShbr>"
+"<ReportingPlanCodeShbr>90 </ReportingPlanCodeShbr>"
+"<ClaimNumberShbr>BBBBBBBBBBB</ClaimNumberShbr>"
+" </M1ApprovedClaimRec> </rsp:FepocResponse>";
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18989
    
    8

If you want help with this problem, then you should start by describing the problem. "Works here but not there" doesn't have nearly enough detail for anybody to say anything practical. Do you really mean to say that you have no information at all about why it "doesn't work" in one place? If you don't, then you should find some information.
kallu nal
Greenhorn

Joined: Jun 23, 2012
Posts: 6
Paul,

Sorry for not providing enough information. Your words made me to check the difference and i got the solution.Thorough my application i am getting from the database and there is a space in the data base value.

Thanks a ton
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18989
    
    8

Good work!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml