-
Managing XML content (present in multiple files)
I am looking into implementing something like this:
- Store reports of information in XML files.
- When these files are requested individually XSL can convert
them to HTML & display it (or I can prepare them as precanned
html reports).
- The real value of the XML structure is for the searching. Lets
say I have student marksheets in the reports.(One marksheet per
report), I have have a search like, show me all marksheets where
the average marks are greater than 60%.
Is XML equipped to make searches like this. Basically I want to
search multiple files for specific tags, and then on a single
page, show URL's for the matching files (with some summary),
kind of like a mini-search engine.
is this is right approach for such a problem?
-
Re: Managing XML content (present in multiple files)
You could use PERL script to search through the files with contents matching
a specific pattern (in this case, where average marks are greater than 60%).
Then return the list of files matching the pattern to the user, with each
file marked up as a URL. The user selects a file from the list which
triggers the XSL transformation from XML to HTML.
The powerful Regular Expression processing of PERL makes it an ideal
platform to search through text files of any kind, including XML and HTML.
Depending on the situation, this is far superior to using the MSXML3 DOM to
open each file individually and then running an XPath query for pattern
matching.
Hope this helps.
JJ
"Avianu" <avianu@yahoo.com> wrote in message
news:3aa12e1a$1@news.devx.com...
>
> I am looking into implementing something like this:
> - Store reports of information in XML files.
> - When these files are requested individually XSL can convert
> them to HTML & display it (or I can prepare them as precanned
> html reports).
> - The real value of the XML structure is for the searching. Lets
> say I have student marksheets in the reports.(One marksheet per
> report), I have have a search like, show me all marksheets where
> the average marks are greater than 60%.
> Is XML equipped to make searches like this. Basically I want to
> search multiple files for specific tags, and then on a single
> page, show URL's for the matching files (with some summary),
> kind of like a mini-search engine.
>
> is this is right approach for such a problem?
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|