• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reading CBEFF xml file

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic