Thanks, Tom H. However, I'm following the XHTML tutorial of W3schools so I think I'm already writing my website in XHTML.
This is
my website. Sorry for my poor explanation. What I mean is like this:
1) Move all the text content of my website to
mywebsite.xml, organized in text blocks corresponding to each web page
E.g.: I cut the text content from the HMTL of the
"my profile" web page and paste it to the XML file as a text block under a suitable heading. By text content I mean all the text that is viewable, like "Autodidact. Freelance English-Spanish translator and style proofreader..."
2) Mark each text block in the XML
E.g.: I mark the above mentioned text block with an id, "profile"
3) Place a link in the page's HTML to the corresponding text block in
mywebsite.xml, so it calls the text when the page is loaded
E.g.: where the original text content of the "my profile" page was, I place a link to the corresponding text block marked "profile", so the text is called and viewable when the page is loaded
That way I'd manage text content more easily. For example, the text of my menu entries is the same in all pages. I want that when I need to modify the text of a menu entry (e.g. replacing "graphic design" by "visual art"), I can just do it in the XML file and that's all, instead of making the change in every web page. Also having all of my website's text content stored in a single file makes it easier to locate and modify strings.
How can this be done? Maybe Xpointer would do it? Another way?