This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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: 18541
    
    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: 18541
    
    8

Good work!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: xml