wood burning stoves 2.0*
The moose likes Other Languages and the fly likes good design? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "good design?" Watch "good design?" New topic
Author

good design?

Ravee Bhat
Ranch Hand

Joined: Nov 26, 1999
Posts: 72

Hi all,
I have a php script which reads a XHTML document using the XML parser.
http://cgi-bin.spaceports.com/~ravee/galleria.php?Manali
Basically it parses the XML document depending on the request, to fetch certain text and display an image. viz. load the parser, parse document, close the parser. Everytime a request comes this routine is repeated.
Is this a good design? What I mean is, is it possible to load the parser once, and parse the XML document as and when the request comes?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: good design?
 
Similar Threads
DOMTree
which parser to use under these conditions
Load xml as String into DOMParser
Load xml string into DOM ?
parsing error ,help