| |   Skin:   
      User: Not logged in 
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Featured Articles
Book Chapters
Training Courses
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
About Me
My Blog
HeadGeek Articles
Talking Portfolio
World Trip Pics

Reply: Deciding on the best design pattern

Date Posted:1/29/2007 2:42 PM
Posted by:
bandi ravi
Context: XML is used as a DB to maintain thousands of links. (This is done so to make the system flexible enough for any future changes).The list is absolute and no user can have any thing out of this. So it was decided to maintain the parsed stream as a singleton. The data in singlton's instance is to be filtered and presented.
Filtering is done based on some conditions as below.
condition 1: for all user_type="registered" schemes are to be fetched.
for all user_type="registered" and sheme="a" various credits are available.
for all scheme_type="economical" credit="entertainment" some other choices are to be made.

What can be the ideal design pattern used for some requirement as above.

As the XML is not repeatedly parsed what can be ideal design to use the stream for multiple queries.

Thanks so much.

Due to my illiteracy on this google results were not attempted.

Once again thanks a lot for your time.

Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”

Advertise on XMLPitstop

Advertise on XMLPitstop

EggHead Cafe
Web Servicee development
Buy links on this site!
online storage
Gucci sunglasses
Security Camera Systems
UK Hosting Company
Color Laser Printer
Buy links on this site!

Interested in Text ads?
2,277 Total Members
42 members(last 30 days)
13 members(last 7 days)
3 members(today)

1,629 Total Discussions
17 Posts(last 30 days)
2 Posts(last 7 days)
1 Posts(today)

20,047 Total Blog Posts
2,133 Blogs(last 30 days)
573 Blogs(last 7 days)
56 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

13,802 Total Resources
16 Resources(last 30 days)
1 Resources(last 7 days)
0 Resources(today)


David Silverlight's| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139