[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

03/27/2008 at 02:19PM PDT, ID: 23275707
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.3

Filtering XML from static XML files to create forum-style website/application to be able to compile to AIR

Asked by edsager in Extensible Markup Language (XML), Web Languages/Standards, Adobe Flex

Tags: Adobe, Dreamweaver, Flex Builder 3 Pro, Flash, AIR, CS3, XML, XHTML, XSL, XPath, ActionScript 3, JavaScript, PHP, MySQL, SQLite

I have hit a roadblock.

My project is this:

(1) Take old backup files from an old online bulletin board/forum and convert the users, topics/posts and forums list to 3 separate XML files.
(2) Create an application which will show the old online bulletin board/forum entries and allow for the information in the XML files to be searched (the need or lack of need for a server is irrelevant, as either way is fine).
(3) If possible, wrap the application to an Adobe AIR file.

I have completed No. 1 above, but I am having an extremely difficult time filtering the XML files and searching the XML file content.  I have been trying to use the Spry Accordion for listing the Main Forums in the Label, and then in the Content are, put the subforums.  All Main Forums have a parent_id = 0, and the subforums have a parent_id = to the Main forums forum_id.

The posts/topics are referenced by post_id, topic_id and forum_id and poster_id (which relates to a user_id).

The users are referenced by user_id.

I want to be able to have a master/detail type of situation so that when the Main forums (and subforums) are clicked on in the Accordion Panel, the related information about how many posts/topics, last poster, etc. are displayed in a separate area.  And then when a particular post is clicked on, that thread is opened and in a separate area, the details of the poster/user are listed (such as email address, etc.).

I have had some success with the Accordion Panel Tab with the Main Forums listed when using MySQL with Dreamweaver and XHTML, but I have hit a roadblock when using the DataGrid in Flash, using AdvancedDataGrid in Flex, Spry XML Datasets and Spry regions in Dreamweaver when trying to get the subforums into the Accordion Panel Content area and using master/detail regions, using JavaScript to filter the XML files so that all forums with parent_id=0 are considered Main Forums and then listing each subforum which relates to the appropriate Main forum.

Doing No. 3 above is quite easy so long as I use HTML, Flash or Flex, but if it is necessary to use PHP and MySQL, that is not a problem, as the AIR application is optional.

I provide a sample of the three (3) XML files.

If my question is not as clear as it needs to be for help, please ask any questions, and I will reply with as much information as I can.

Thanks for any help,
edsager
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
//Forums.xml
<DataTable>
	<forums>
		<forum_id>59</forum_id>
		<parent_id>81</parent_id>
		<forum_name>AAO</forum_name>
		<forum_posts>160</forum_posts>
		<forum_topics>50</forum_topics>
		<forum_last_post_id>88185</forum_last_post_id>
		<forum_last_poster_id>17100</forum_last_poster_id>
		<forum_last_post_subject>Re: E-3 denied in Sydney based on lack of exerience</forum_last_post_subject>
		<forum_last_post_time>Tuesday, May 9, 2006 3:54 PM</forum_last_post_time>
		<forum_last_poster_name>Andrea Chempinski</forum_last_poster_name>
	</forums>
	<forums>
		<forum_id>80</forum_id>
		<parent_id>0</parent_id>
		<forum_name>Adjustment of Status and 245(i)</forum_name>
		<forum_posts>12038</forum_posts>
		<forum_topics>4561</forum_topics>
		<forum_last_post_id>2928</forum_last_post_id>
		<forum_last_poster_id>6226</forum_last_poster_id>
		<forum_last_post_subject>Re: Is this EWI????</forum_last_post_subject>
		<forum_last_post_time>Wednesday, February 28, 2007 2:33 PM</forum_last_post_time>
		<forum_last_poster_name>Barry Glazer</forum_last_poster_name>
	</forums>
</DataTable>
 
//posts.xml
 
<DataTable>
	<posts>
		<post_id>395</post_id>
		<topic_id>122</topic_id>
		<forum_id>4</forum_id>
		<poster_id>12000</poster_id>
		<post_time>Friday, August 30, 2002 10:42 AM</post_time>
		<post_username>A. Bikash Roy</post_username>
		<post_subject>Re: Lafayette Became a Citizen</post_subject>
		<post_text>The INA actually has some obscure provision about how family members can get citizenship for dead people. Boy, I did not know that the White House Bushes were related to the old French nobility.</post_text>
	</posts>
</DataTable>
 
//users.xml
<DataTable>
	<users>
		<user_id>1</user_id>
		<username>admin</username>
		<user_email>webmaster@aila.org</user_email>
		<user_from>unavailable</user_from>
		<user_website>unavailable</user_website>
	</users>
</DataTable>
[+][-]03/27/08 10:41 PM, ID: 21228250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/29/08 09:58 PM, ID: 21239662

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03/30/08 07:11 AM, ID: 21240788

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/30/08 04:31 PM, ID: 21242387

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/31/08 12:48 PM, ID: 21248498

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/08 01:28 PM, ID: 21248871

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/08 02:04 PM, ID: 21249182

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/08 02:08 PM, ID: 21249208

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Markup Language (XML), Web Languages/Standards, Adobe Flex
Tags: Adobe, Dreamweaver, Flex Builder 3 Pro, Flash, AIR, CS3, XML, XHTML, XSL, XPath, ActionScript 3, JavaScript, PHP, MySQL, SQLite
Sign Up Now!
Solution Provided By: julianopolito
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03/31/08 02:14 PM, ID: 21249261

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/31/08 02:40 PM, ID: 21249444

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/31/08 03:07 PM, ID: 21249619

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/31/08 08:12 PM, ID: 21250961

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/31/08 09:18 PM, ID: 21251240

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/08 02:31 AM, ID: 21261312

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/08 04:03 AM, ID: 21261664

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/02/08 04:50 AM, ID: 21261988

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/02/08 02:32 PM, ID: 21267760

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/02/08 02:49 PM, ID: 21267923

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/10/08 01:41 PM, ID: 21329164

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 / EE_QW_2_20070628