Sunday, May 23, 2004

Using XML As File Format

In my last post, I talked about some persistence issues we are working through and how persisting to XML could make things easier for us. In this post, I want to talk about using XML as a file format. Assuming we switch to an XML based file format for our products, there are questions I have regarding the proper use of XML.

Looking around, I can see at least 2 different categories:

  1. XML file is a dump of your in-memory state at the time of saving.
  2. XML file is a system unto itself and should be designed as a standalone deliverable of the product.

If you read my last post, you could guess the system we built for persisting objects falls clearly in to category #1. If you were to view the resultant XML, I doubt you'd be overwhelmed by the beauty of its structure. The XML is not being used to its full potential. No namespaces, no XPointer or XInclude. Just a raw dump of state stored in XML elements, with very little use of attributes.

On the other hand, if you were to look at the XML created by an MS Office product you would find a decent looking XML document. Namespaces are used and the XML elements don't appear to map directly to the product's underlying object model.

Want a better example? Look at a document file created using OpenOffice. These guys really cared about the XML file structure and use many XML standards (spec). In fact, there isn't just a single XML file. They create a ZIP archive and place several XML files in the archive. They also include a manifest file to describe the other files contained in the archive. Whenever possible, they use or extend existing XML based specs to implement their format. Clearly not a direct mapping to their object models.

How important is the XML structure when using XML as a native file format? We could always suggest people use XSLT to change our XML to suit their needs. That sounds reasonable, right?

41 Comments:

At 9:43 PM, Anonymous Anonymous said...

welcome to the wow power leveling cheap wow power leveling service site,WoW Gold buy cheap wow gold,wotlk gold,world of warcraft power leveling buy wow gold

 
At 6:52 AM, Blogger polo shirts said...

History of polo ralph lauren. Polo fashions had its humble beginnings in 1968 when tie salesman Ralph Lauren gave it a kick start. By 1969 he had a boutique polo ralph lauren factory stores within the Manhattan department store Bloomingdale's. ... Brands and luxury standard. Since Ralph Lauren's first brand, Polo Ralph Lauren, was launched, the company has expanded to include a variety of luxury brands such as Polo Golf, Polo Denim, Polo Sport. You can buy cheap Ralph Lauren Clothing at Ralph Lauren outlet.Also We provide polo shirts
Ralph Lauren polo shirt, 50% OFF! polo ralph lauren outlet online is your best choice!In 2006, polo ralph lauren outlet became the first designer in Wimbledon's 133-year history to create official uniforms for the tournament. As part of this year's event, which starts next week, polo ralph lauren sale will introduces the first ... determination to maintain and enhance the values for which our two brands are famous throughout the world. The rugby ralph lauren brand brings to Wimbledon the look of timeless elegance, drawing on our rich history and traditions

 
At 8:41 AM, Anonymous Mobile wallet said...

I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Mobile wallet

 
At 7:46 PM, Blogger رضا رمضان said...

شركة تنظيف بالدمام
شركة تنظيف شقق بالدمام
شركة تنظيف فلل بالدمام
شركة مكافحة حشرات بالدمام
شركة رش مبيدات بالدمام
شركة نقل اثاث بالدمام
شركة تنظيف بالجبيل
شركة تنظيف بالقطيف
شركة تنظيف بالاحساء

 
At 2:20 PM, Blogger MASA AL said...

من وقت لآخر يبحث الجميع عن ارخص شركة مكافحة حشرات بجدة كما أننا مهتمون بتنظيف البيارات ولدينا شركة تسليك مجارى بجدة وبالنسبة للخزانات لدينا شركة عزل خزانات بجدة اما بخصوص تنظيف الشقق لدينا شركة تنظيف شقق بجدة وبخصوص البلاط والرخام شركة غسيل بلاط بجدة وبمدينة الطائف شركة غسيل بلاط بالطائف وبمكة المكرمة لدينا شركة غسيل بلاط بمكة أما بخصوص نقل العفش نقل عفش بجدة

 
At 2:21 PM, Blogger MASA AL said...

thanx,Nice info شركة رش مبيدات بجدة الشركة الاولى فى المملكة والتى تعتبر افضل شركة رش مبيدات بجدة كمان اننا نضمن لك الجودة والتوفير لاننا ارخص شركة رش مبيدات بجدة ونقوم بمساعدتك على إبادة الحشرات فى شركة رش حشرات بجدة ونقوم بمكافحة الحشرات أيضاَ فى شركة مكافحة حشرات بجدة والتى تعتبر افضل شركة مكافحة حشرات بجدة بل وتعبر كذلك ارخص شركة مكافحة حشرات بجدة

 
At 7:29 AM, Blogger Abedo Ahmed said...

التعليق بالافضليه وحسن الذات والثقه بالنفس من اسباب تفوق شركتنا وقدرتها على الجهد المتواصل فى الوصول الى افضل النتائج

شركة نقل اثاث بالمدينه المنوره
شركة سبق كلين
شركة تسليك مجارى بالمدينه المنوره
شركة كشف تسربات المياه بالمدينه المنوره
شركة مكافحه النمل الابيض بالدمام

 
At 12:04 PM, Anonymous شركة ركن الهدى للخدمات said...


شركة تنظيف بالدمام بالخبر
شركة تنظيف شقق بالدمام وبالخبر
شركة تنظيف منازل بالدمام بالخبر
شركة تنظيف فلل بالدمام بالخبر
شركة تنظيف موكيت بالدمام بالخبر
شركة تنظيف مجالس بالدمام بالخبر
شركة تنظيف ستائر بالدمام بالخبر
شركة تنظيف كنب بالدمام بالخبر
شركة مكافحة حشرات بالدمام بالخبر
شركة مكافحة النمل الابيض بالدمام بالخبر

 
At 4:13 PM, Anonymous شركة عالم الابداع said...



شركة تنظيف بالدمام
شركة تسليك مجارى بالدمام
شركة مكافحة حشرات بالدمام
شركة مكافحة النمل الابيض بالدمام
شركة عزل اسطح بالدمام
شركة كشف تسربات المياه بالدمام
شركة نقل عفش بالرياض
شركة تنظيف موكيت بالدمام
شركة تنظيف بالخفجى

شركة تنسيق حدائق بالدمام

 
At 8:30 AM, Blogger ياسمين حسام said...

عزيزي العميل اذا كنت تبحث عن أفضل شركة كشف تسربات بجدة ومكة والطائف لا بد من ان تتصل الآن على شركة العلا لخدمات كشف تسربات بجدة وأيضا تعمل مؤسسة العلا في خدمات عزل الخزانات والاسطح والمسابح وحل مشاكل تسربات المياه التي تؤرق العديد ن العملاء لا تتردد في الاتصال بنا :
من اهم خدماتنا :
افضل شركة عزل خزانات بجدة
افضل شركة عزل مائى بجدة
افضل شركة عزل اسطح بجدة
افضل شركة كشف تسربات الحمامات بجدة
افضل شركة كشف تسربات الخزانات بجدة
افضل شركة كشف تسربات الأسطح بجدة
افضل شركة كشف تسربات المسابح بجدة
افضل شركة كشف تسربات المياه بجدة

 
At 8:30 AM, Blogger ياسمين حسام said...

شركة واحة الخليج بجدة ومكة ورابغ والطائف الشركة الأولى والأفضل في خدمات نقل العفش بجدة اذا كنت تريد الحفاظ على الاثاث الخاص بك فلا بد من ان تتصل على الفور على الرقم التالي 0555583146 رقم شركتنا اولى شركات نقل العفش والاثاث بجدة
لدينا افضل العمالة الماهرة والمدربة على نقل العفش بدون حدوق اي خسائر للعميل كل مايهمنا هو ارضاء العملاء وكسب ثقتهم لا تترددوا في التواصل معنا
من اهم خدماتنا :
افضل شركات نقل عفش برابغ
اسعار شركات نقل عفش برابغ
شركة نقل عفش برابغ رخيصة


 
At 6:14 PM, Blogger علي محمد said...


شركة رش مبيدات بالدمام
شركة رش مبيدات بالقطيف
شركة مكافحة حشرات بالخبر
شركة مكافحة حشرات بالجبيل
شركة مكافحة حشرات بالاحساء
شركة مكافحة حشرات بالقطيف

 
At 1:10 AM, Blogger xccc said...

Which are the indicators of global recognition of individuals during this contemporary world? Of course, amount of followers on the Twitter account can be described as firm indication in today. Buy Twitter Permanently followers

 
At 4:54 PM, Blogger Background Removal said...

Background Removal Services (BRS) is one of the best Clipping path service provider around the world. We offer our global customers: Raster to Vector Services, Photo Restoration Services Prices, Photo Neck Joint Service, Exposure Color Correction Service, Jewelry Photo, Retouching Services, Photo Color Correction Service, Image Mirror Effect Service, Cheap Retouching Services, Deep Etching Service,

 
At 12:30 AM, Blogger Transport company in Medina said...

أفضل شركة نقل في المدينة المنورة والنجارين المبهرين في تفكيك وتركيب الأثاث والمفروشات.

 
At 6:01 AM, Blogger Turbo Steam said...

Turbo Steam is a powerful, yet portable, fabric and clothes steamer for all of your steaming needs. Our Turbo Steam takes only 45 seconds to heat up and to start generating steam and its steam delivery system evenly distributes steam across fabrics to remove even the worst wrinkles.

 
At 7:05 AM, Blogger List Forever said...

Fastest Cars In The World We can measure automotive excellence in several ways, but top speed which a automobile can achieve is the one everyone secretly cares about the most

 
At 5:24 AM, Blogger Fastest Bike said...

Top 12 Fastest Bikes in The World Owning or riding a superfast motorcycle is the dream of many But the question arises that which bike would you buy if you have enough money in your bank

 
At 4:26 AM, Blogger Image background remover said...

Using the Images Background Remover service, you can get the best possible solutions. The photos will be livelier and you can use them anywhere. The importance of Background Remover Online is undeniable for every photo. Before we move to the benefits of having the service, it is better to know about the service.

 
At 5:38 AM, Blogger Photo Background Editor said...

"This photo is perfect except for background which is...". Well, let's say "bad". Have you ever thought like that? Probably, you even made an attempt or two to edit the picture with the ruined Photo Background Editor, to no avail. Surely, not all of us are designers or at least IT savvy. So, here is a way for the rest of humanity to change the back scene of any photograph – the Photo Scissors online tool.

 
At 4:36 AM, Blogger Accident Lawyer said...

Accident Need Save Yourself, Save the World For any car automobile accident personal injury Lawyer and Attorney Advice Also, all automobile and car insurance quotes guidance for free

 
At 6:17 AM, Blogger Clipping Path Service Provider said...

In other sense, the clipping path is like creating a path that will remove the bars from the photo. As the name suggests, it clips a path. It points that the path that you not need gets clipped. The ClippingPath Service Provider is able to bring the change in the photos. Applying the Photoshop tool, the provider does the task.

 
At 5:39 AM, Blogger Nearbest10 said...

Nearbest10 is a participant in the Amazon Services LLC Associates Program which is an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. Amazon, the Amazon logo, AmazonSupply, and the AmazonSupply logo are trademarks of Amazon.com, Inc. or its affiliate.

 
At 12:35 AM, Blogger dipali sharma said...

You may likewise need these UNITED STATE Facebook Suches as for succeeding competitors that are held online. buy usa likes

 
At 9:16 AM, Blogger Best Massager Reviews said...

Read the Best Massager Reviews of 2019 Find out which is the best model on the market and the health benefits of using a Best Massager Reviews.

 
At 3:45 AM, Blogger Smile Arrow said...

Smilearrow Find best products values got thousands of online top most bought items key points, rankings, price, photos lot of cool stuff to get from

 
At 8:26 AM, Blogger prom dress hut said...

Prom Dress Hut is a prom dresses company. If you are looking for a prom dress, check out our Latest Prom Dress Collection. You can order from Prom Dresses USA, Prom Dresses UK, Prom Dresses Australia, Prom Dresses Canada, and Prom Dresses Germany.

 
At 1:33 AM, Blogger Best Foot Massager said...

Which Best Foot Massager To Buy – Which Foot Massager Is Right For You? If you ask which Foot Massager model is the finest this year, certainly I would recommend going through this guide to know which Best Foot Massager is actually market leaders.

 
At 11:32 AM, Blogger Foot Massager Reviews said...

Read the best Foot Massager Reviews of 2019 Inthe following article, we present the top 8 models available today and revealtheir pros and cons.

 
At 5:45 AM, Blogger Legends Of Bangladesh. said...

Legends of Bangladesh A bunch of pure souls who achieved the glory for a country, Bangladesh, will remember forever as the legends of the nation

 
At 2:56 AM, Blogger Best Basketball Shoes said...

In 2019, Adidas and Under Armour took most of the places in top 10. The Best Basketball Shoes doesn’t only depend on the shoe but also on the player. Be tricky enough in choosing your best fit.

 
At 3:57 AM, Blogger Best Covertible Carseat said...

Searching for the Best Convertible Car Seat? Want to get a reliable place? need a detailed review? Browse here, you will get a list of 10 best convertible car seat to choose yours spending a very short time. A complete and easy to read buying guide is also available for you here

 
At 11:26 AM, Blogger Best Foot Massager said...

Which is the Best Foot Massager To Buy – Which Foot Massager Is Right For You? If you ask which Foot Massager model is the finest this year, certainly I would recommend going through this guide to know which Best Foot Massager is actually market leaders.

 
At 7:36 AM, Blogger Gypsum Designer said...

Gypsum designer providing innovative building solutions to meet the demands of customers for sustainable performance solutions. Gypsum designer Inc. is a key resource for architects, contractors, and design professionals.

 
At 4:11 PM, Blogger علي محمد said...



شركة تنظيف كنب بالاحساء
شركة تنظيف كنب بالجبيل
شركة تنظيف كنب بالدمام
شركة تنظيف كنب بالخبر
شركة تنظيف موكيت بالخبر
شركة تنظيف بالدمام
شركة تنظيف بالخبر
شركة تنظيف بالجبيل
شركة تنظيف بالاحساء
شركة تنظيف بالقطيف

 
At 11:50 PM, Blogger Steamer said...

Shop for high quality Best clothes steamer, Steamer for Clothes, garment steamer, Fabric Steamer All kinds of Steam Cleaner on Turbo Steam at best prices.

 
At 5:53 AM, Blogger Steamer for clothes said...

Steamer for Clothes that can get rid of all wrinkles on a matter of seconds, but use whatever you want to keep them hang.

 
At 7:27 AM, Blogger Garment Steamer said...

Clothes Steamer Steamer for Clothes Garment Steamer U.S.A Turbo-Steam Shop for high quality Best clothes steamer, Steamer for Clothes, garment steamer, Fabric Steamer All kinds of Steam Cleaner on Turbo Steam at best prices

 
At 8:16 AM, Blogger Fabric Steamer said...

Fabric Steamer is a powerful, yet portable, fabric and clothes steamer for all of your steaming needs. Our Turbo Steam takes only 45 seconds to heat up and to start generating steam and its steam delivery system evenly distributes steam across fabrics to remove even the worst wrinkles.

 
At 10:45 AM, Blogger Best Clothes Steamer said...

Best Clothes Steamer for all of your steaming needs as it easily distributes steam across the fabric to remove worst wrinkles.

 
At 12:32 AM, Blogger dipali sharma said...

Lots of people invest their entire day on gathering sort and increasing their facebook follower complying with but they can't improve the list of individuals without extra aid. buy facebook usa likes

 

Post a Comment

<< Home