Wednesday, February 29, 2012

Difference between XML and XAML



XAML stands for Extensible Application Markup Language XML stands for Extensible Markup Language.


XAML is based on XML, so it uses XML for its markup.


If you look at a XAML document, it is also a valid XML document. But any XML document is not XAML.


In other words,XAML is a declarative XML-based language that defines objects and their properties in XML. XAML syntax focuses upon defining the UI (user interface) for the Windows Presentation Foundation (WPF) and is therefore separate from the application code behind it.


Although XAML is presently for use on the Windows platform, the WPF/E (Windows Presentation Foundation/Everywhere) initiative will eventually bring XAML to other platforms and devices.


XAML syntax describes objects, properties and their relationships to one another. Generic XAML syntax defines the relationship between objects and children.


Properties can be set as attributes or by using 'period notation' to specify the object as a property of its parent" XML is a markup language and XAML is application language to design for .net application. If you design any controls using XAML you can use it for windows as well as for web application also.