Re: XML parser and writer



Jeff Higgins wrote:
Brandon McCombs wrote:
Hey guys,

I'm writing a program to help people track various items and placing them on a calendar. These items are mainly ones that reoccur (monthly bills for example). Each item (or task) has various properties that are set for it and I was thinking of storing all the data in an XML file. I'd parse the file and have the data available throughout the execution of the program. Updates to the file would occur when someone edits a task to change its re-occurrence frequency, etc. Therefore I will need to both easily parse and write new XML files. I don't have a DTD or schema developed and I may later so any API I use will have to work w/o that for now. Can anyone suggest a simple API for parsing/writing my own made-up XML files? I've ruled out SAX since it only parses and was thinking of using DOM but I don't know if that will work because I've never did any programming with XML before.

thanks for any pointers


Maybe a Java-XML binding framework?
XStream, Castor, JAXB come to mind.



I mentioned this issue to a guy at work and he mentioned JAXB so I'll be looking into that. I don't know exactly what Java-XML binding does so I'll have to read up on it.
.



Relevant Pages

  • Re: XML parser and writer
    ... I'd parse the file and have the data available throughout the execution of the program. ... I don't have a DTD or schema developed and I may later so any API I use will have to work w/o that for now. ... Can anyone suggest a simple API for parsing/writing my own made-up XML files? ... I've ruled out SAX since it only parses and was thinking of using DOM but I don't know if that will work because I've never did any programming with XML before. ...
    (comp.lang.java.programmer)
  • XML parser and writer
    ... I'd parse the file and have the data available throughout the execution of the program. ... I don't have a DTD or schema developed and I may later so any API I use will have to work w/o that for now. ... Can anyone suggest a simple API for parsing/writing my own made-up XML files? ...
    (comp.lang.java.programmer)
  • Read and parse large XML-files
    ... I am trying to read and parse a large XML-file. ... What can I do to read and parse large XML-files? ... fields is useless because it creates empty fields. ... the example 3 function to successfully read in XML files? ...
    (comp.soft-sys.matlab)
  • Re: Read and parse large XML-files
    ... I am trying to read and parse a large XML-file. ... that writes measurement data and some setup information into an ASCII-text ... One suggestion is Google the term "large XML files". ...
    (comp.soft-sys.matlab)
  • Re: XML parser and writer
    ... easily parse and write new XML files. ... developed and I may later so any API I use will have to work w/o that for ... Can anyone suggest a simple API for parsing/writing my own made-up ...
    (comp.lang.java.programmer)