با سلام
به نظر شما مایکروسافت چه چیزی را جایگزین XML می کند؟
Printable View
با سلام
به نظر شما مایکروسافت چه چیزی را جایگزین XML می کند؟
XML رو مایکروسافت نیاورده که حالا بخواد اون رو با چیزی جایگزین کنه؛ در ضمن، XML در زمینه های مختلف، کاربردهای مختلف داره، و فقط در یک حوزه خاص ازش استفاده نمیشه.
ممکنه خود XML با کمک CSS، کلا HTML رو کنار بزنه و جاشو بگیره، حالا چطور ممکنه یه چیز دیگه به عنوان جایگزین XML طراحی بشه؟؟
راستی، این دو تا مقاله رو بخونید (ربط مستقیم به بحث نداره ولی مطالعه اش ضرری نداره):
http://c2.com/cgi/wiki?PossibleXmlReplacement
http://c2.com/cgi/wiki?LispVsXml
جایگزین xml میتونه به قطع json باشه
JSON هم ساخته و پرداخته مایکروسافت نیست. البته تا جایی که اطلاع دارم، مایکروسافت در محصولات خودش تمایل بیشتری به XML نسبت به JSON داره.نقل قول:
جایگزین xml میتونه به قطع json باشه
صد البتهنقل قول:
هم ساخته و پرداخته مایکروسافت نیست
درسته xml در حال حاضر محبوبیت بیشتری داره !
اما xml نسبت به json آسیب پذیری های بیشتری .
مرورگرها با json بهتر کار میتونن بکنن تا xml .
XML استاندارد خوبیه که فراگیر هم شده.
چه دلیلی برای جایگزین کردنش با چیز دیگری هست؟
میکروسافت خودش خیلی در زمینهء XML کار کرده. مثلا در دات نت XMLتقریبا همه جا دیده میشه.
ضمنا مزیت XML فقط خوانایی نیست.
هدف اول ساخت یه فرمت استاندارد و قوی و با ظرفیتی بوده تا تمام برنامه ها بتونن با API یکسانی کار بکنن.
قرار نیست همه چیز خیلی خوانا بشه. گاهی امکانات و قدرتی که نیاز داریم، با خوانایی در تضاد قرار میگیرن.
بنظر منکه XML هیچ نقصی نداره.
البته ارائه استاندارد بهتر غیرممکن نیست.
اما تازه که XML اینقدر موفق شده چه دلیلی داره دوباره از صفر همه چیز بخواد تغییر کنه و اینهمه هزینه پرداخته بشه.
ضمنا JSON هم فکر نمیکنم بتونه جایگزین کاملی برای XML شمرده بشه. سندی برای این ادعا دارید؟
JSON یه جاهایی مثل AJAX بعلت سادگی و هماهنگی با ساختار اشیاء JavaScript میتونه جایگزین XML بشه، اما فکر نمیکنم همه جا چنین مزایایی داشته باشه و اصلا بتونه تمام امکانات XML رو داشته باشه.
یه نگاه به اینحا بندازین ضرری نداره .نقل قول:
ضمنا JSON هم فکر نمیکنم بتونه جایگزین کاملی برای XML شمرده بشه. سندی برای این ادعا دارید؟
JSON یه جاهایی مثل AJAX بعلت سادگی و هماهنگی با ساختار اشیاء JavaScript میتونه جایگزین XML بشه، اما فکر نمیکنم همه جا چنین مزایایی داشته باشه و اصلا بتونه تمام امکانات XML رو داشته باشه.
http://www.google.com/search?aq=0&oq...&q=json+vs+xml
خوبه یه مطالعه ای هم در باب محتوی این نتایج جستجو میکردید.
بنده گزیدهء متنهای صفحاتی رو که در صفحهء اول جستجو پیدا کردم داشتم در اینجا درج میکردم که دیدم خیلی زیاد شد و دلیتش کردم و اینقدر این متون زیاد و واضح بودن که فکر نمیکنم به درجشون در اینجا نیازی باشه. هر صفحه رو اگر بصورت سطحی هم بخونید مشخص هست قضیه چیه.
در تقریبا تمام این صفحات صحبت از استفاده از JSON در کاربردهای Data Interchange شده در برابر XML.
و بیشتر این صفحات هم صحبت از وب و وب سرویس و AJAX و جاوااسکریپت هست.
من الان بحثی ندارم که بالاخره در اینطور کاربردها کدوم فرمت بهتر هست، هرچند بهتره مزایای XML در برابر JSON رو خصوصا در باب امنیت مطالعه کنید.
چیزی که شاید شما ندونید یا توجه نکردید اینه که تعریف XML منعطف تر و گسترده از JSON هست و قابلیت اضافه کردن ویژگیها و سفارشی کردن زیادتری داره. و XML در یک محدودهء خیلی گسترده تری از کاربردها کارایی داره، نه بیشتر فقط Data Interchange و AJAX و وب و چیزهای مشابه.
بنابراین نمیشه حداقل درحال حاضر JSON رو جایگزین XML نامید. این حرف کلی بنظرم بیش از حد ناشیانه و سطحی هست و سندی پشتش نیست (هیچکدام از اون نتایج جستجو هم چنین حرفی رو نه ذکر کردن و نه با استدلال و اسناد فنی لازم ثابت کردن؛ اگر شما چیزی پیدا کردید درج کنید تا بررسی کنیم).
چیزی که هست JSON در یک حیطهء خاص بیشترین مزیت رو بر XML داره عمدتا هم چون در اون حیطه ها با محیط و زبان سازگارتر هست و نیازی به انعطاف و سفارشی شدن و قابلیت تعریف ویژگیهای نمایشی و غیره نداره. حتما دقت فرمودید که گفتم ویژگیهای نمایشی. خب این یکی از تفاوتهای اساسی واضح XML با JSON هست که باعث میشه XML یکسری کاربردهایی داشته باشه که JSON اصلا برای اون کاربردها درنظر گرفته نشده و امکانی براش نداره.
پس XML و JSON از نظر کلی برابر نیستن که بخوایم بگیم JSON بطور کلی جایگزین XML میشه. XML قابلیت های بیشتری داره و در محدودهء وسیعتری از کاربردها بکار میره. اما JSON در حیطهء مهم و پر از تکثر Data Interchange در وب مزایای مشهودی داره (سادگی، کم حجم بودن، و هماهنگی زبانی و غیره).
البته اینها درحال حاضر هست. ممکنه در آینده هر اتفاقی رخ بده. مثلا JSON رو گسترش بدن یا بر مبنای اون فرمت جدیدی ابداع کنن تا دیگه نیازی نباشه در جاهای مختلف از فرمتهای مختلف استفاده بشه (با توجه به اینکه یکی از هدفهای اصلی XML یکپارچه کردن تمامی این حیطه ها و API بکار رفته بوده).
البته این که مایکروسافت؛ میخواد از XML کنار بکشه ؛ امری واضح هستش.
مثل WPF و Silverlight که مبتنی بر XAML هستند و XAML بر پایه XML هستش.
یا Reporting Service اش که از RDL مبتنی بر XML استفاده میکنه.
و ... :چشمک:
سلام.
خیر، JSON ارتباطی به XML نداره. شما چطوری میتونید Schema ی داده ای که (حتی) روی خط ارسال میشه رو در JSON تعیین کنید؟ در صورتیکه XML ساز و کارهای مخصوص خودش رو برای اینکار داره. گذشته از این، JSON برای نقل و انتقال داده ها استفاده میشه، اما XML کاربردهای بسیار متنوعی داره، XHTML، SVG، RSS، ATOM و ... همه کاربردهای XML هستش.
XML در واقع، یه Subset ای از SGML هستش (همینطور HTML). متاسفانه چون SGML اونقدر شلوغ و پیچیده بودش، سالها از دید صنعت نادیده گرفته میشد تا اینکه XML بوجود اومد و استفاده های متنوعی از علوم مخابراتی، تا پزشکی و ... بر اون اساس ارائه شد.
در هر حال، چیزی جایگزین XML نخواهد شد. مگه توی این همه سال، چیزی جایگزین CSV File ها شدش؟
موفق باشید.
قربونت اشتباه لپی بود یا واقعا میگی میکروسافت میخواد از XML کنار بکشه؟
XAML هم منافاتی با XML نداره و جایگزین XML نیست. درواقع XAML یکی از روشهای استفاده از XML هست. اصولا مفهوم XML همینه و یک ساختار کلی داره که مشخصا برای کاربرد و برنامه و فناوری خاصی نیست، ولی هر کاربرد و برنامه و فناوری ای میاد اون رو برای یک استفادهء خاص سفارشی میکنه. چیزهای مثل XAML در واقع پیاده سازیهای کاربرد XML هستن و نشانهء موفقیت و پذیرش اون.
نه عزیزم؛ من خواستم اشتباه دوستان رو در این که XML جایگزین پیدا میکنه؛ اون هم توسط مایکروسافت رو به زبان طنز اصلاح کنم.
آهان از اون لحاظ :لبخند:
ولی بیان و منظور شما اصلا واضح نبود.
منم قبلا به این اشاره کرده بودم که در دات نت بصورت وسیعی از استاندارد XML استفاده شده.
حالا نمیدونم این یه رسمه که میکروسافت باید برای هرچیزی یه چیز دیگه ارائه کنه و اینکار چه ضرورت و فایده ای داره.
یا اینکه کاربران از XML تنفر دارن که این آرزو رو میکنن :متفکر:
با سلام
این همه توضیح دادید از اولش تا اخرش رو یکی یکی خوندم
یک استدلال قطعی بدست نیومد!!!
اخرش نفهمیدم مایکروسافت ایا کنار میزنه XML رو یا ......
یا اصلا اگر بخواد کنار بزنه چیرو به جاش میاره .....
آخرش به این نتیجه رسیدیم که نشانه ای عملی دال بر این امر وجود وجود نداره، بلکه برای عکس این قضیه شواهد عملی زیادی موجود هست.
بعدشم اینطور بحثها چندان اهمیتی ندارن. معلوم نیست آینده چی بشه.
کامپیوتر تغییراتش زیاد و سریع هست.
چیزی که هست XML فعلا خوب و لازمه و جایگزین بهتری درحد و اندازهء خودش (یعنی در تمام کاربردها و با تمام انعطافی که XML داره) تا حالا براش نیامده. ولی در آیندهء دورتر هرچیزی ممکنه. و این برای همه چیز، نه تنها XML، صادقه.