• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading CBEFF xml file

 
kirankm kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

field.xml

<bir>
<bir-info integrity="false" creation-date="20101104T115918Z"/>
<bdb-info format-owner="257" format-type="8" encryption="false" creation-date="20101104T115923Z"/>

<bdb>
RkFDADAxMAAAAOzSAAEAAOzEAAAAAAAAAAAAAAAAAAAAAAEBBkAEsAAGAAAAAAAAAAxqUCAgDQqHCgAAABRmdHlwanAyIAAAAABqcDIgAAAALWpwMmgAAAAWaWhkcgAABLAAAAZAAAMHBwAAAAAAD2NvbHIBAAAAAAAQAADsV2pwMmP/T/9RAC8AAAAABkAAAASwAAAAAAAAAAAAAAZAAAAEsAAAAAAAAAAAAAMHAQEHAQEHAQH/UgAMAAAAFgEFBAQAAf9cABNAQEhIUEhIUEhIUEhIUEhIUP9dABQBQEhQUFhQUFhQUFhQUFhQUFj/XQAUAkBIUFBYUFBYUFBYUFBYUFBY/2QAIgABQ3JlYXRlZCBieTogSkoyMDAwIHZlcnNpb24gNC4x/5AACgAAAADrpwAB/10AFAFASFBQWFBQWFBQWFBQWFBQWP9dABQCQEhQUFhQUFhQUFhQUFhQUFj/k99HrrCYY+UDtS1JLqRmITAIlGBlEY4qT2yZKhfMGmh6BPHZlAbkpMA4ebgCSTQ34kzhZsNwSMitsJ388ZGM+r7wpU7x4/P+FquVY
</bdb>
</bir>
</bir>

<bir>





As iam trying to read the xml file of <bdb > which am cannot able to read the xml, can anyone please help me out how to read and write in a file........your suggestions and help is more helpful to our project.Please reply asap.
 
Greg Charles
Sheriff
Posts: 3010
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off, the ObjectInputStream is just not what you want at all. That's really only useful for reading back Java objects that were previously serialized using an ObjectOutputStream. Now, if your difficulty is getting the bdb block, then it's no problem. Java has a lot of support for parsing XML. I'd suggest using a DOM parser here. On the other hand, if your difficulty is parsing the CBEFF data that's in that block, you're going to need to do some research. It's possible that someone has made a Java library to parse these messages for you, but it's also possible you'll have to write your own. It's not part of the standard Java APIs.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!