Localized XML file

S

shapper

Hello,

I creating xml files to hold localized resources such as posts,
documents, contents, etc.

For example, a post contains the following fields:
PostID, PostTitle, PostBody, PostCreatedDate, PostUpdatedDate and
PostIsPublished

Localized Columns:
PostTitle and PostBody

NO Localized columns:
PostID, PostCreatedDate, PostUpdatedDate and PostIsPublished

What is the best way to create a XML file structure to hold posts?

I always use SQL databases but in this project I need to use XML files
that I am not so used to ...

Could someone help me out with this?

Thanks,
Miguel
 
M

Martin Honnen

shapper said:
I creating xml files to hold localized resources such as posts,
documents, contents, etc.

For example, a post contains the following fields:
PostID, PostTitle, PostBody, PostCreatedDate, PostUpdatedDate and
PostIsPublished

Localized Columns:
PostTitle and PostBody

NO Localized columns:
PostID, PostCreatedDate, PostUpdatedDate and PostIsPublished

What is the best way to create a XML file structure to hold posts?

Do you need to keep translations or localized versions of the same post?
Or do you just need to store the language of each PostTitle and
PostBody? In the latter case simply use the xml:lang attribute e.g.
<Posts>
<Post>
<PostID>P1</PostID>
<PostTitle xml:lang="en">What's this all about?<PostTitle>
<PostBody xml:lang="en">...</PostBody>
...
</Post>
</Posts>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top