A
Alvin SIU
Hi all,
I am a newbie with XML.
Hope that any expert can give me a hand to guide me the right
direction on this topic.
I have many articles, all are text file.
They are stored in many directories, according to its topic.
Using this method, I can easily classify the articles by topic.
But, I cannot classify it by Author, or by date.
So, 'directory' is not a good method.
If I put the articles into database,
I can easily add additional columns (e.g. Author, Date of Publish,
etc) to each article.
Then, I can easily sorted by Author or by Date.
But, using a database seems to be quite troublesome.
I wonder whether I can convert all article text file into an XML file
with, for example,
the following tags:
<author>xxx</author>
<date>yyyy-mm-dd</date>
<essay>The original article contents</essay>
Then, put all the XML files under a directory.
Then, use 'something' to search this directory.
Then, I can easily get a list sorted by Author, or by Date, or else.
Now, my questions are:
Q1. Is this method feasible ?
Q2. Is this a correct way of using XML ?
What I mean is XML designed for this use) ?
Q3. Is there anything in the world already done this ?
If yes, please guide me to that.
Q4. Is there anything related to this situation ?
If yes, please give me some keywords
so that I can continue searching the net.
I use the keywords : XML +document +index
but cannot find what I want.
Thanks for your expert advice in advance.
Alvin SIU
I am a newbie with XML.
Hope that any expert can give me a hand to guide me the right
direction on this topic.
I have many articles, all are text file.
They are stored in many directories, according to its topic.
Using this method, I can easily classify the articles by topic.
But, I cannot classify it by Author, or by date.
So, 'directory' is not a good method.
If I put the articles into database,
I can easily add additional columns (e.g. Author, Date of Publish,
etc) to each article.
Then, I can easily sorted by Author or by Date.
But, using a database seems to be quite troublesome.
I wonder whether I can convert all article text file into an XML file
with, for example,
the following tags:
<author>xxx</author>
<date>yyyy-mm-dd</date>
<essay>The original article contents</essay>
Then, put all the XML files under a directory.
Then, use 'something' to search this directory.
Then, I can easily get a list sorted by Author, or by Date, or else.
Now, my questions are:
Q1. Is this method feasible ?
Q2. Is this a correct way of using XML ?
What I mean is XML designed for this use) ?
Q3. Is there anything in the world already done this ?
If yes, please guide me to that.
Q4. Is there anything related to this situation ?
If yes, please give me some keywords
so that I can continue searching the net.
I use the keywords : XML +document +index
but cannot find what I want.
Thanks for your expert advice in advance.
Alvin SIU