Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Localized XML file

Reply
Thread Tools

Localized XML file

 
 
shapper
Guest
Posts: n/a
 
      04-20-2009
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
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      04-20-2009
shapper wrote:

> 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>


--

Martin Honnen
http://msmvps.com/blogs/martin_honnen/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Localized pages and change keylayout/Language by code (simulance Alt+Shift ) sastwhc ASP .Net 0 12-06-2005 07:44 AM
hr-xml localized description fxparlant XML 4 09-15-2005 12:34 PM
Adding a control to a localized ASP .NET 2.0 application =?Utf-8?B?SGVua2U=?= ASP .Net 0 08-08-2005 05:39 AM
Localized resources not loaded until an administrator open the site... Jéjé ASP .Net 0 06-25-2005 02:53 PM
Customizing localized applications Piotr Strycharz ASP .Net 4 08-20-2004 07:34 PM



Advertisments