Hello DP members, Suppose by using any server side scripting language (PHP, ASP or JSP)I am creating a XML file from my database & updating it when I update something into my database. So I will always have a updated XML file to parse (using any server side scripting language) it when I need. So when I will parse this XML file, then is there any limitation that any limited number of users can see my web pages created by using XML. Please tell me advantages and disadvantages of using XML files. Thanks in advance, Jimmy
Hi Jimmy, I am comfortable with handling xml in .NET [ASP with C# or VB.NET]. XML is a very good data transporting mechanism. You can create the xml files and that too with less work, you can keep it up-to-date with the help of automated datagrid to xml conversion facility. With C#, it is easy. If you want to use that type, you can create content from the database and use the XSLT [XML Stylesheet langugage] to style the content generated by the XML file so that it can be rendered as HTML. Anything is just fine for you, as long as you know the basics of XML, XSLT or if you prefer to write your own parser to parse xml and render it as xml. Even if you send that xml file to the client, the browser object can use the native xml objects [In windows - ActiveX object] to parse and display the data accordingly with javascript alone. I hope that there is no restriction on the number of users accessing your system when you are doing this conversions. Hope your doubt is clarified.
The only disadvantages would be that it would take up more space, and it may take some time to create the xml file depending on the size of the database.
Not to mention performance. If it is a small file see about caching it in memory. Very easy to do with .NET. If it is a large file, it needs to become a database and get normalized.