Xml problem in Blackberry application
Tell me anyone what is t开发者_如何学Pythonhe steps follow to use Xml in our blackberry Application ,Actually i have created xml in own local host but there is nothing to write .tell me how i write the that xml and how i read this xml.
Writing to XML on blackberry platforms is almost equivalent to writing to XML in normal java programs. You can open a FileOutputStream and write to a file with the .xml extension.
But the better alternative for large XML files is to use java's DOM/SAX parsers and use the blackberry XMLWriter class to write the DOM object to a XML file.
For reading and writing to a specific file from the res directory, you can get a resource stream and the java DOM/SAX parsers should be able to parse the file from the stream for you.
精彩评论