File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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: 16483
    
    2

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: 16483
    
    2

Good work!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml
 
Similar Threads
& char in forward url
SimpleDateFormat problem
URI vs. File - strange behaviour?
Reading a file from a file system
DOM Parsing - Please help