Tuesday 18 December 2012

Just what Is XPath?

XPath is a W3C standard and language which can be used to find info or data from an XML file, it’s very good for navigating through elements and attributes in a simple manner.

The best way to look at it is something such as find and replace function in MS Word, however XPath is a lot more advanced than this with its own rules, syntax, structure as well as other such rigorous criteria, nevertheless the more familiar you become with XPath the easier it will get, for me, these days it is more second nature.

The other point to consider is, just how important is XPath. In the grand scheme of things, you may almost certainly cope without it, in reality whatever that you can do with XPath when working with an XML document, you are able to realize without XPath too, and so in that sense it's not essential, it can be handy.

As an example, utilizing XPath presents several benefits with regards to application development and dealing with XML documents, like speed, ease, effectiveness, productivity, simplicity etc etc

A very important differentiation to note is also that XPath is not really an XML language, though it may be closely connected with XML, it's really a method for querying XML documents, but being related to XML, it’s also employed in related specifications and languages like XSLT as well as in DOM implementations.

Don't forget that XML is nothing at all but a textual representation of associated nodes in a tree like design. There are seven core nodes in XPath, these are Root, Element, Text, Attribute, Comment, Processing instruction and Namespace nodes.

If you're accustomed to programming syntax and taxonomy, these kind of terms will not be uncommon however for those with no programming background, I am going to quickly elaborate.

The root node is the top or upper most part of an XML document, or in our tree analogy, it is the root from which the branches or elements spring from.

An element is a component of the data, by way of example in an xml file concerning customers, an element may just be the first name or customer id. The element alone can easily contain text or attribute based information.

Commenting is also enabled in an XML document. These are a bit synonymous to XPath as well, but a bit distinctive in some aspects.

And many of the apparent features of XPath, you can also find quite a few not so apparent, such as, in XPath, the tree’s root node is not the same as its root element.

The tree’s root node has the entire document, including the root element and also comments and processing instructions that occur prior to the root element start tag or following the root element end tag.

Also, the XPath data models doesn’t have everything in the xml document, for instance the XML declaration and the DTD. Nevertheless, you may give a default value for your attributes and this will be recognized by XPath.

Last of all, I should point out that in XPath, the xmlns attributes aren't considered attribute nodes but instead namespace nodes, yet any non-namespace aware parser will view them as an attribute.

More info on XPath can be found at W3C schools or you can consider this XPath tutorial.













































Monday 10 December 2012

Just What Exactly Is XPath

XPath is a query language employed in XML to query and also pick nodes from an XML document. The truth is, you may even work with it to determine ideals, like strings, numbers and Bolean values) in the content of any XML document.

It works by pointing to data within a XML file which are nodes, it may also point to nodes and carry out simple mathematics measurements, in reality XPath is simply as vibrant as XML and you could select nodes depending on many conditions similar to mathematics comparisons.

XPath is incredibly versatile therefore you can use it with some other standards beyond XML, for example XSLT and XPointer. Using XSLT there is the capacity to develop one XML document to the back of some other XML document, and also make a XHTML document which may be read and looked at by the bare human eye.

But how does XPath work exactly? To be really exact, it works by pointing to the XML dataset, in other words you have to access the DOM and not really the actual characters which might be in the XML tag. So for this reason, so that you can process with XPath, you'll need a document format that can establish a DOM or similar dataset, such as XML or JSON.

Even more importantly, you may use a location path syntax, which you'll do in a few methods. An individual '/' at the beginning of an area path presents the document node, the only child of which is the root element. If a location path commences with a '/' (thus from the document node), it is an absolute location path, otherwise it's a relative location path.

When working with XPath to make your search queries, you can use a number of parameters or queries.

One such parameter is Predicate (the part that is inside the square brackets), that can be used to filter results and might include any expression. In cases where the result is not empty, the considered to be true, and if it is empty then it is deemed false. If the result is a numeric value, that number value represents the proximity of the position of the node

From the proximity position, you have a forward and reverse axis. The forward axis is one where all the nodes come after the context node, like child etc. The Reverse axis is the opposite, i.e. the nodes arrive prior to the context node, like parent etc.

There are also numerous important functions that are utilized in Xpath, these include position() and last(). Last() will return the last position inside your current node selection and position() will return the position of a node in your selection.

Finally, XPath also offers full assistance for namespaces, the names are indicated in the same manner as in XML nonetheless the prefix itself is bound externally to the namespace URI, which means it should be done by the external application or specification that it is being used in.

A lot of XPath can be found at W3C schools you can also refer to this XPath tutorial.

























Friday 16 November 2012

Guide To Microsoft Silverlight

Silverlight is known as a software tool by Microsoft for the purpose of developing ultra powerful, rich internet applications, it's in actual fact much the same in traits and also intentions to Adobe Flash.

Microsoft themselves talk about their service as being a strong development tool for making engaging, interactive user experiences for Web and also mobile apps.

Some of the many features mentioned on their web site incorporates, IIS Smooth Streaming, Pivot Viewer, for visualizing massive amounts of data in a fun and visual way, Sketch Flow, more for sketching out an application and its uses, Deep Zoom, Pixel Shader and over 60 new controls just like charting and new media.

However, as opposed to Flash, Silverlight is a free plugin which is run by the .Net framework, therefore extremely easy and user-friendly to employ with Visual Studio, and it is suitable for a variety of browsers and devices.

In the beginning Microsoft focused upon streaming media etc but since then Silverlight has expanded substantially to feature support for multimedia, graphics and animation.

Silverlight at present also includes support for specific languages and development tools, in fact it is also one of the key development platforms for the Windows phone.

Silverlight additionally employs XAML (Extensible Application Markup Language) to assert user interfaces, because of this it is simple to create Windows sidebar devices and also other fancy apps with neat vector graphics and animations.

It's also possible to write Silverlight apps in any .Net programming languages, meaning that any development tool that can be used in .Net, you may use in Silverlight. Hence Microsoft are pitching Visual Studio as the prefect tool for developers to create and debug Silverlight applications.

Since its introduction in 2007, Microsoft have refreshed Silverlight every year with edition 1 in 2007 and version 5 (the current and up to-date model) introduced in May 2012. The 2012 version (Silverlight 5) can actually be used on Windows and Mac and with Mobile devices running Windows or Symbian.

The below highlights all the editions and provides some background information.

Silverlight 1 was introduced in 2007, it had been comprised of various core features including the UI controls, media playback, DOM integration, interactivity and user input, and graphics and animation.

Silverlight 2 followed soon after in the same year and was similar to version 1 but in addition included a version of the .Net framework which allowed it to run any other programs developed in any .Net language.

Silverlight 3 was unveiled in 2008 as a beta and then officially unveiled in July 2009. This edition included even more controls for example DataGrid and TreeView, DataPager (permitted you to see paginated data), DataForm (for form based applications) along with numerous layout panels.

Silverlight 4 was launched in November 2009 as a beta with the official release in April 2010. This bundled much more characteristics than ever before for example rendering HTML, better localization, support for Google Chrome browser, brand new and enhanced controls and a whole lot. It also came with Silverlight 4 tools for developers, delivering much more development possibilities

Silverlight 5 was launched for download in December 2011. The newest features included 64-bit support, 3D graphics, GPU accelerated video decoding and playback speed controls.

As said before above, Silverlight applications can be written in any .NET programming language. As such, any development tools which may be used with .NET languages can work with Silverlight. When you are making use of Silverlight and XML, you can also make use of an XML Silverlight tool like Liquid XML studio.





























Thursday 8 November 2012

Just What Is Silverlight

Silverlight is a software application created by Microsoft, an effective way to illustrate it to you, will be to liken it to Adobe Flash. Silverlight in characteristics and purpose is much like Adobe Flash.

Microsoft by themselves explain their product as;

“Silverlight is a powerful development tool for creating engaging, interactive user experiences for Web and mobile applications. Silverlight is a free plug-in, powered by the .NET framework and compatible with multiple browsers, devices and operating systems, bringing a new level of interactivity wherever the Web works.”

At first the focus was greatly about producing rich and engaging user experiences through rich media, streaming and animation allowing web programmers to create really engaging and interactive sites, the same as with Flash.

Nevertheless what lots of people are not aware of is how much Silverlight now features a lot more for business application development and just how in fact, Silverlight is currently being frequently used for additional purposes over and above merely engaging content.

The fact is Silverlight is now being utilized within business for data management, CRM and a lot of other business critical operations, in a nutshell, a growing number of business applications are making use of Silverlight to assist business demands.

A business application carries a very precise purpose or goal, and generally assists a corporation to cut costs or time, or simply to enables them to to improve customer satisfaction. Common examples could include CRM applications, time-tracking in addition to expense claim applications, e-commerce and e-tail experiences, purchase request applications, and HR employee management systems.

Users of business software expect rich, functional, and well-performing user interfaces similar to those typically provided by the desktop applications they are familliar with. With the latest business application-focused enhancements to Silverlight, the rich capabilities of its user interface, and the associated tooling provided by Visual Studio and Expression Studio, you can now rapidly create this type of application and enjoy the benefits of Web delivery and deployment.

So just what is Silverlight and also how does it work? As stated above Silverlight is a software application from Microsoft for making appealing content akin to Adobe Flash, however it is even more than Flash and will also be used in business application development.

Silverlight is a completely free software which comes in a browser plug-in format, there isn't a need to download it as an application on your C drive plus its as a result very small and self-contained.

Silverlight might be run in all of the primary browsers including Mozilla, Firefox, Apple Safari, Opera, and Internet Explorer of course, and it is platform independent and operates by displaying a programming framework that is a subset of the .Net Framework.

To install Silverlight you may download it straight from the Microsoft website and download it to your computer as a plug-in. You can think of this plug-in as a scaled down form of the .Net framework as it only has the classes and functionality that's applicable to a Silverlight web client.

Due to this fact, you can actually write real, compiled and managed code that's completed in the context of the client browser itself. Finally, Silverlight employs XAML (Extensible Application Markup Language) to make the user interface.

Silverlight programs may be developed in any .NET programming language. Because of this, any development tools that may be used with .NET languages can function with Silverlight. If you happen to be dealing with Silverlight and XML, you can also readily XML Silverlight tool similar to Liquid XML studio.













Monday 15 October 2012

XML Elements And Ways To Develop Them

Elements are also the key building blocks of XML and is also one of several benefits XML provides over other languages. In XML you may create your very own element tags to match your own requirements.

With other languages, like HTML or PHP, you can just use predetermined labels which are particular to that language. In HTML by way of example you are only have body elements within the <body> tag and header elements inside the <head> tag. This is certainly tough and even time intensive and means you need to comprehend the language and syntax as well as where it goes to create web pages.

This is where XML is special, you can make your own personal elements and title these to suit your own purposes, allowing it to be entirely possible for newbie’s to grasp and apply XML.

So what are XML elements? Pretty much elements are names that are assigned to areas of data or information. As an example, let’s say you want to develop a catalogue of all your household items for insurance applications.

You could potentially try to portion items by room after which further sub divide by value etc. In XML the parser will look at the construction compared to names of the elements, in HTML it will be the other way round, the labels will be more significant for the parsing to be successful.

While XML is a lot more focused on structure, versus naming conventions, you'll still have to comply with some fundamental guidelines when creating elements. The first element is considered as the root; the root element consists of all the other elements inside it, similar to a folder contains sub folders and files.

After the root, the following element is called the parent and inside the parent are child elements, not all parent elements have to have child element, it will be at your discretion and is determined by how and just what you want to design your XML for.

The key point to creating a XML file that can be easily parsed is with the organisation, you need to make your elements to make sure they appear sensible from a structural perspective.

For example if you're a constructing a stock list of your products, it might make more sense to have products as your root element and then the categories as the parent and then individual category products as the child elements.

Having a well laid and common sense structure is going to pay off in the long term when you need to handle updates or parsing as all the elements will naturally fit into place.

Along with element structure and naming, its also wise to keep the following easy tips in mind too.

Each and every element tag requires a opening and closing syntax ie <xml> and </xml>, if you forget you will receive an error message whenever you try and validate or parse your xml file.

Be sure you organize your element names intelligently and rationally. Name your tags in a means by which is smart to you.

Root element

Parent element

Child element

Two parent elements for the product stock list could have child tags named ‹product›. In fact, parent names may also be the same.

Product - root element

Item - parent element

Item - parent element

So that’s a rapid and straightforward look at xml and how to write an xml file, to study more advanced material, you can search Google or view this xml tutorial.









Wednesday 3 October 2012

9 Very Important Terminology In XML

In contrast to the popular myth about XML, it's not actually a development language, it is a mark-up language, and as a result, essentially the most least complicated computer language around.

XML is really a non semantic language therefore, you can develop your own element tags and in contrast to other languages there isn't any real complex syntax structures to think about.

Given it isn’t a programming language, XML itself doesn’t really do anything, by design, it’s really a storage container for data and so it only comes up as very simple text on web pages or as a text file.

You can also utilize XML to properly exhibit pages around distinct internet browsers and version types, to do this you have to compose different formatting directions, known as DTD.s or Schemas.

Dealing with XML and building basic files is really rather simple if you can learn the basic principles, below is a glance at 9 of the most well-known XML words that you may run into.



 
1.    XML (Extensible Mark-up Language

As already stated, xml is a markup language that works as a container for the holding of data and allows data and information to be transported and displayed on the online as webpages. Within XML their can also be subsets of languages including XSL which supports in validation and formatting.


2.    Element Tags

You may make as well as name your element tags as you desire as well as suit your own specific requirements. Element tags enable you to build a hierarchical syntax and order to your code.

By way of example, let’s say you wished to have a stock list of your stock items for your ecommerce bike shop website, you can use key tag names like product, and also within the product tag element, you can have child elements like men’s bikes, women’s, child bikes etc.

The beauty and simpleness of XML is in its ability to build your own element tags, just be sure you close them.

<product> - element tag

</product> - closing tag



 

3.    Declaration Statement

The declaration statement ought to be at the beginning of your xml file, the aim of the declaration statement is to specify the language, version as well as designate encoding and declare the standalone status of the file, without it the Internet processor will not be able to determine the code.

<xml version="1.0" encoding="UTF-8" standalone="yes">


4.    Root Element

The root element, like the title indicates is the very first named tag of every XML file and it's a container for all other elements, consequently it is in the root.

<products> - root element


5.    Parent Element

The parent tag retains elements linked to the root, and so within our example of products, the parent would be the associated categories or products.

<products> - parent element

<mens bike> - element tag


6.    Child Element

The child element is so called, given it belongs to the parent element and thus, is situated inside it.

<products> - root/parent element

<mens bike> - parent element

<cube bike> - child element

 
7.    Attributes
An attribute is a name or value that sits within the element tag, in our example an attribute could be frame size of the bike or the colour style.

<cube bike size="20"> - cube bike is the element and size is the attribute


8.    Comments
Comments will be only viewable in the source and are generally mostly for editors and authors who want to update or customize the xml file, comments are not exposed on a webpage

<!--this is a comment -->


 
9.    Data Strings

A data string will be the complete opposite of a comment in that it is viewable on the webpage, a data string in this context is the equivalent of the description field.

<description> - element tag

Extensive range of cube bikes available. - data string viewable on a webpage

</description> - closing tag

So that’s an easy and easy look at xml and the best way to create an xml file, to study more advanced material, you can search Google or check out this xml tutorial.

















Friday 21 September 2012

Going Ahead Of HTML TO XML

HTML is certainly a well-known coding language used by site designers to generate internet pages and not to mention full web sites can be done applying html code alone. HTML is short for Hypertext Markup Language and has been made use of basically since the start of the net, but as the web has evolved, several common html practices also have evolved.

To illustrate, applying tables to design a web page was initially quite normal in the early days of the world-wide-web but as web browsers changed and technology improved, brand new approaches like CSS progressed to allow site designers to build web sites that could be shown in the same way across numerous internet browsers (browser compatibility) and also exactly the same internet browsers but different variants (version compatibility).

A further enlargement came with the development XHTML, an acronym for Extensibe Hypertext Markup Language, a more recent, more versatile version of HTML.

XHTML is part of the family of XML languages even though it is furthermore an extension of HTML, if not more closely relevant to html version 5.0, it is actually developed to perform far more robustly with xml dependent user agents and also properties.

XHTML will also be referred to as an application of XML as it is actually a more prohibitive subset of SGML, which means that unlike html, it is possible to parse xhtml documents by using a common xml tool, similar to an xml parser.

The only requirement is that the xhtml document should be well formed because there are specified xml rules to go by, whereas with html, you simply can't parse it unless you happen to be running a more lenient, html specific parser.

The main variation regarding xml and html is that xml is a markup language, there are no semantics involved and simply no rules as to what exactly could and can't be included, xml merely describes the data. Html conversely has semantic meaning and states how data and text is intended to be viewed.

For example, in html, you can only make use of the head tag to describe the header elements, where as all body components must be contained inside of the body tag, to incorporate a paragraph you have to include it within a paragraph tag, this is precisely what is meant by the term semantics. XML as, I have just mentioned, has absolutely no semantic tags or predetermined meanings, for instance inside an xml document your tags will be able to have any meaning as well as any data, you create your own tags.

Due to all these key differences, xml, unlike html, is not something that a person can look at with the naked eye on any website, instead it sits in the background, or the source code of the internet site, as internet websites grew to become more dynamic entities, not to mention the requirement to consume this data originated via completely different platforms, from tablets, to PCs to smart phones, XML turned out to be a lot more crucial to making certain that this information was ordered, stored and transferred in a dependable and universal approach.

Xhtml satisfied an important objective and was in fact made for a number of purposes. The principal good reason had been to fix the compatibility gap between a client computer and a webpage on a remote computer, a language was needed that could transport and express the meaning of data on a web page to a pc, xhtml filled this need.

The next reason was basically to satisfy the gap for a standard language format which might be properly viewed across various internet browsers and platforms as well as on different screen types, again xhtml satisfied this particular requirement beautifully.

With the huge selection of various gadgets, from smart phones, PCs, laptops, tablets, not to mention distinct internet browsers from Internet Explorer to Mozilla, and variants from IE7 to IE8, it is extremely critical for any would be web designer to migrate from html to xhtml development to permit your websites to display effectively across all platforms and browsers.



















































































































































































































Thursday 20 September 2012

Newbies Guide To Employing XSLT

XSLT is short for extensible stylesheet language transformations, and it is an highly flexible and handy technique that claims numerous benefits in particular when applied to tackle the proper troubles.

So that you can get you started, all you need to have is the appropriate overview to the basic principles of XSLT to assist you get started out, and once you do, you surely won’t look back, it will definitely turn into one of the most invaluable tools in your programming tool bet.

And so why might you use XSLT and what can it achieve? In really basic terms, XSLT is a transformation dependent formatter which makes it possible for you to change structured XML documents straight into different output formats, for example into HTML or CSV and so on.

For the purposes of this short article we are going to take a look at the capacity of XSLT to transform or alter XML records into HTML. We are going to employ an XML file to illustrate the attributes of a product (e.g. the Name, Short Description, Long Description, Downloads, Licensing Options, System Requirements, etc.) and also a series of XSLT files to display them.

Right, firstly let’s put together our own very straightforward XML document for a product, and you can develop it up from there. For the time being, all we will cover is the product title, version, and short description. You are able to create more later on should you feel brave enough.

<product code="Spt001">

 <title>htmltrans</title>

 <version>2.0</version>

 <short_desc>

 The product spt001 enables transformation of regular text to html and vice versa

 </short_desc>

</product>

So that’s our basic XML document all set up, then were ready to operate with XSLT and carry out some basic functions

Now that we have got the basic XML document set up, let me look at what we could do using XSLT.

XSLT, like virtually all other XML-based formats, is pretty fastidious about its structure. Your simple XSLT document appears just like this:

<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet

 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

 <xsl:output method="html" />

 <xsl:template match="/">

 Rules go in here...

 </xsl:template>

</xsl:stylesheet>

Well the above illustration is a pretty simple and common xslt file, anyone can see we have declared the XSLT stylesheet and version. In the fourth line we have also told the parser to output the result as HTML.

Observe we also have a xsl:template component declared in the 5th row.

Bear in mind that XSLT is a rules-based language, so in compliance with the principles, the parser will move through the xml file and implement the needed rules(template) to the appropriate elements (the match).

Good, that is it for this article, as said, we dealt with the essentials of XSLT, therefore now you are able to generate your own file and produce the contents of an HTML file.

I really should also point out that one of the main plus points of XSLT is the potential to produce multiple views on the same xml file. For example, a single product.xml file that stores the product information, downloads, screenshots, and more could be utilized for a product summary page, the downloads list, a screenshot gallery, and more.

The key advantage of this procedure is that adding or adjusting a product does definitely not mean any presentation changes--only data ones, which is a sizable gain and indeed time and cost saving for any company.

An XSLT processor (like Liquid XSLT Debugger), will unquestionably parse the input XML record, as well as the XSLT style sheet and also subsequently applying the elements from input XML document, process the rules or instructions which will be within the XSLT style sheet. All through the processing of the XSLT instructions, a structured XML output is produced.



















Friday 7 September 2012

An Uncomplicated Explanation Of XSLT

XSLT is an acronym for XML Stylesheet Transformations, the XML element represents Extensible Markup Language.

XML signifies Extensible Markup Language which is, as the name implies, a markup language, XML operates as a general-purpose markup vocabulary that has been the industry-standard method of organizing data files to transport around the world wide web.

XSLT can be described as a programming vocabulary for changing your XML documents into several other document formats for example VB, C or even C#. This is achieved by making use of another programming language, identified as Xpath query language.

XPath is a query language helpful to navigate through elements and attributes within a XML document and also for picking nodes from an XML document. In addition, XPath may be used to estimate values (e.g., strings, numbers, or Boolean values) out of the content of the XML document. without having understanding of XPath, you simply will not be capable of create XSLT documents.

The process of transforming your XML making use of the XPath includes an XSLT processor reading the XML document along with the XSLT style sheet, and then based mostly on the layout directions the processor locates in the XSLT style sheet, it is going to make, or output, a new XML document. In reality, by means of special support for HTML, you can in fact output an HTML document.

The process functions due to the fact the XSLT detects each XML document as a tree structure and so turns one XML tree, into another XML tree. To work, XSLT assumes that there are three documents in use; the source XML document, the XSLT style sheet as well as the altered document.

The actual source document needs to be a well-formed XML document, that is to meaning, it needs to be correct XML, in order for the input to be accepted and the conversion to be successful.

The style sheet contains the transformational guidelines that the processor needs to work with in order to yield the new document out of the source XML document. The final result is a text document that is produced by passing the source document by means of the changes written in the XSLT style sheet.

To sum up, XSLT, the extensible style sheet language for transformations, is a language that offers the process to change and shape XML data. It is used to transform XML documents into another documents, for instance other XML document, HTML document or text document.

An XSLT processor (like Liquid XSLT Debugger), will parse the input XML document, as well as the XSLT style sheet and then utilizing the elements from input XML document, process the rules or guidance that are in the XSLT style sheet. In the course of the processing of the XSLT instructions, a structured XML output is created.

In case you are using .Net, you can in fact, execute this change using a set of techniques known as “Load” and “Transform”, originated from XslTransform class. At first an XslTransform object is instantiated (in development terms, it is any time you make an instance of a variable), in which is the engine to carry out XSLT conversions on XML documents in the .NET structure. The “Load” way of the XslTranform is utilised to load the XSL style sheet from disk.























Monday 13 August 2012

The Experts & Cons Of Making use of XML With DOM, ASP & XSL

XML is a mark-up language that had been devised originally as method for carry and also display data separately of any software or platform, its underpinning objective was to enable richly structured documents to be viewed over the internet in a absolutely consistent fashion, regardless of the internet browser utilized or even the browser version. Nevertheless right now developers continue to dispute the value of XML over HTML and whether or not we need XML at all.

Yet concerns to one side, XML is considerably stronger than HTML for the reason that its significantly more adaptable, HTML offers, and indeed predefines, rigid tags for your data, as an example title should be contained inside the title tag, body elements ought to be contained within the body tag and so forth.

XML nevertheless helps you construct your own tags as it only specifies the standards with which you can define your tags, which means you utilize any description you wish to label your tags or containers and you could specify an endless selection of languages founded on the standards that happen to be defined by XML, and for that reason XML is a lot more like a meta-mark-up language.

 

Strengths Of XML
XML has a range of major advantages, the most noteworthy and also obvious of which include;

•    You are totally free to employ your own mark-up elements or tags and will be able to even mark-up tags on the fly that formerly did not exist.

•    XML provides far superior and significantly richer facilities for browser presentation and performance.

•    XML provides incredible compression abilities that are considerably larger than HTML or standard text which provides XML a overall performance advantage in data streaming.

•    XML data is a great deal more vibrant and rich simply because of the better hypertext linking functionality of XML versus HTML.


Weaknesses of XML

As well as its advantages, XML also has a amount of disadvantages, the most prominent and apparent of which include things like;

•    XML can be astonishingly large and burdensome, which unfortunately is why in some areas such as web services, JSON has grown to be the chosen choice.

•    XML is not yet wholly developed to provide total flexibility in engaging in any programming task, in terms of full standards compliance. XSL and XSLT are a step in the correct track nevertheless they also are far from being in a suitable state.

•    XML Hypertext Transfer Protocol (XML-HTTP) complications continue to exist.

Over-all XML is a significantly more advanced way of working with data, even so if you are going to be developing XML based web applications it is important to comprehend the disadvantages and demands that might possibly impact the functioning of any XML server.

For example the kind of data, the ratio of tags to text, attributes to elements not to mention even the quantity of waste white space can all influence on the capabilities of any kind of XML server.

One more excellent factor with XML is the the introduction of DOM, thanks to Microsoft, DOM stands for for Document Object Model and is invaluable tool for loading and parsing XML files. DOM is a superb way to browse through your files, to gather information and to manipulate those files.

It’s in addition a fantastic way to work with your XML files and in particular is best for generating and displaying XML documents using code such as ASP and Visual Basic, you may furthermore utilize XML VB tools such as MSMXL and Liquid XML Visual Basic to aid in parse, edit and create your VB code from your XML.

Tuesday 7 August 2012

An Uncomplicated Account of XML And Visual Basic

Visual Basic is an exceedingly important programming language and thus it is worthy of further deliberation and also explanation. Nonetheless to be more exact, Visual Basic by far the most regularly used programming language in the world.

The most obvious reason for this success is due in great part due to the simplicity, you can create simple effects like “Hello Word” in just a few lines of code rather than several thousand, its simple and easy does the job with minimum fuss and complexity.

The latest variation of Visual Basic is Visual Basic 6, a bye product of Microsoft’s Visual Studio. Surprisingly Visual Basic features no native support for XML, a common and popular markup language but nonetheless, Visual Basic is now being regarded by a good number of coders as a good way to work with XML.

Despite the fact VB features absolutely no component or apparatus to read, write or make xml, or even a data engine to assist or even operate with xml, you will find parsers (MSXML parser or Liquid XML Studio) that you can use to work with VB and XML as it exposes the same interfaces in VB as with XML.

XML Parsers just like the Microsoft MSXML parser and Liquid XML Studio, do the job by using the DOM or Document Object Model. The DOM is constructed of 5 various essential pieces, attributes,documents, elements, nodes and nodelists.

Every one of these has got their own unique programmatic interfaces (specifically, DOMDocument, IXMLDOMNode, IXMLDOMNodeList, IXMLDOMElement, and IXMLDOMattribute), each of which reveal a number of methods and properties.

For instance, the DOMDocument interface is made for coping with loading and saving of XML files (through .load, .loadXML--which changes an XML structured string into an internal DOMDocument--and .save), and the IXMLDOMElement interface handles referencing attributes, content text, and element children, and offers a beginning point for generating XPath queries.

Xpath is regarded as the favored choice for XSLT users when trying to pick out nodes with an xmltree. This capability to pull nodes out of an XML DOM is the main reason that parsers are extremely popular, the MSXML parser can carry out Xpath queries which enables it to reference any nodes within an xmltree using rather complex queries.

XML is hierarchical by nature and so whilst it would appear easy enough to populate and represent XML as a tree, this isn't always the case in reality you may not need to accomplish this, by way of example you will prefer to bypass some braches or nodes.

In reality, you might simply want to develop a treeview structure that displays only the most relevant nodes, you might furthermore wish to be able to choose the nodes, causing more in depth information to appear in the right hand pane of your application. This is typical of most Explorer-type applications.

One way where you can achieve this is to code the desired functionality that will expose your XML, directly into your program. Even so this isn’t ideal and may actually cost time and effort because you must recompile your application every time you want to change the display, worst still it means fooling with heaps of unpleasant DOM code. The best option will be to move the layout instructions to an XSLT stylesheet which will subsequently style the xml data into a format well suited for processing.

Conversely you should use any of the preferred xml vb parsers or if you need to generate code from your XML, try Liquid XML Visual Basic to generate your VB code automatically.































Tuesday 17 July 2012

Processing XML By Working With C# and .NET

The C# language, pronounced see sharp, is a superb approach to work with Java and was essentially made by Microsoft as part of Microsoft’s .NET effort. C# has a wonderfully abundant .NET library and in actual fact makes use of XML as its core technology.

In this particular short article I am going to have a general discussion of C# and XML processors, with a quick introduction to DOM tree and XML streams.

Review Of XML Processors

The idea of processing, in the context of an XML document or file, simply means to extract or pull out particular details from the file. Once pulled, this information is commonly employed to create another XML file or simply an HTML file (known as the output), this process is generally referred to as a transformation. Therefore an xml file could be processed to produce an xml or html transformation.

The specific processor which you decide upon for this task is wholly up to, however you should know that not all processors are the same and your choice is very important, the wrong choice could very well influence adversely on your whole venture.

Internet browsers like Microsoft Internet Explorer and Firefox, contain integrated XML processors and can be employed to process XML files, nonetheless they are more difficult to apply since you also need to give them processing instructions with an XSLT document, specifically for the really complicated jobs.

A much more grueling option is to work with C# and Java to write your own processor, although this really is time-consuming and you will need to use the Java or .NET class libraries.

The best option is to use a ready made XML processor, these come in an array of options such as freeware like Syntext Serna to extremely reputable, feature rich commercial grade XML processors for instance Liquid XML Studio.

Processing XML Documents

You need to use either of two approaches to process your XML file referred to as offline processing and online processing. Offline implies you do not have to be connected to your XML source file directly, alternatively you need to load your document, beforehand into memory as a DOM tree.

This is considered as the best way for processing your xml file if your xml is intended to be processed time after time because; whilst you lose memory you will get speed, which is beneficial when it comes to processing.

Online processing implies you have to be linked to your XML source file to be able to process it, consequently this really is really slow, but you do use less memory. This method is much more suited if the processing is incredibly clear-cut or maybe you are only going to process only parts of the file.

Whichever method you engage in to process your XML file, C# is versatile enough to support either method via its .NET library classes.

The basis for the online processing is the XmlReader/XmlWriter abstract classes whilst the System.Xml.XmlDocument class is the basis for offline processing.

To produce your XML document you use an XmlDocument constructor, this can create an empty XML document in memory. Within this XML document you can utilize nodes to build up an XML tree to any complexness or depth which you want, step by step.

After constructing (or loading) an XML tree, you'll be able to navigate over it and change it with XmlDocument's properties.

Finally, there are a variety of selections for processing XML files in C#, including browsers, or you might work with an XML C# tool such as Liquid XML C# tool, which helps save time in making thousands of lines of error free code, straight away from a xml or schema file.











Friday 6 July 2012

Working With XML in C#

If you're planning to develop and alter xml files, or if you have to deal with XML and C#, you might want to check out .NET, an excellent tool that provides terrific and incredibly easy to use facilities for making use of xml files.

The key benefits of making use of .NET and XML are further boosted with the help of a set of Linq classes this means you might even use them in more general conditions, which happens to be ideal if you aren't that skilled in XML as it makes working with XML far more easier, especially if you are a newbie.

What's especially attractive about Linq is that it uses a back to fundamentals approach in terms of working with XML when compared with other standard protocols like Xpath, DOM, SAX etc simply because these protocols tend to specialise or concentrate on just one particular area of XML, whereas Linq provides a more general and simple method to working with XML.

By way of one good example, let’s examine how Linq deals with a complicated data structure like a tree as a result of XElement.

There's two core XML tags in XElement, <record> and </record>, so basically an opening and closing tag.

The guidelines are very simple and common with other markup languages like html, tags should be in matched pairs and you may nest tags So as an example if you have tag opened with <colour>, you need a closing tag </colour>.

As a side note, you may as well use an XML C# tool to produce C# code out of your xml or xml schema, which is perfect for newcomers or maybe you want to save time and also have correct, error free code.

The only exemption to the matched pair principle is if you make use of an own closing tag like <colour/> which is a tag that closes itself.

So using tags in XElement it is very easy and also straightforward to develop a tree like structure, you can also represent your tree in a program through a class.

The important point is the fact XElement encompasses a Nodes collection which is often useful to store an element’s child elements.

The whole idea about nesting XElements within XElements is pretty straightforward nevertheless , you might also do this in another, more flamboyant means, employing something named an Add method or applying an Add method in a single call.

The subsequent example ought to underscore this;

colour1.Add(colour2,colour3);

It is also possible to construct a list of child objects for placing into multiple XElement if you like or use an XElement constructor as another way to construct your XML tree.

Another way is to apply a nested method in which you use an XElement with children and continue to the levels that you want, this is known as a “functional construction” which, if you format it properly, it will look the same as the tree its is constructing and what’s more, it is also possible to pass it to any method that needs to work with it.

Lastly, you can moreover make use of the Parse and static Load methods to convert your XML into an XElement tree.

The Load method functions by taking your file specification as a URI (or as a TextReader or XmlReader) and parsing the text stream into your XElement tree.

The parse ,technique will work much the same way other than it takes a string of XML tags. The principal point of note is that you could have to manage any ensuing exceptions yourself if your XML is not right, the parsing will not work.

To conclude, there are a variety of possibilities for developing or modifying XML files in C#, as well as manual coding, or you could make use of an XML C# tool such as Liquid XML C# tool, which in turn saves you time in producing thousands of lines of problem free code, instantly from your xml or schema file.











Monday 25 June 2012

A Review Of C++ Tools Meant For XML Users

XML is undoubtedly an hugely common area of interest among software engineers and also web-developers because it supplies a standardised and uniform way to transport knowledge throughout different programs.
More specifically, xml is the industry-standard for data exchange, through software files in xml format, or even over network connections, these network connections primarily exist for the transaction / connection and so are instantly dumped at the end of a transaction or network connection.

As such xml related tools are continually developing therefore if you intend to build up in xml you should stay up-to-date with all the current most recent tools and releases.

The majority of xml related tools are likely to be designed in Java and released in source code form, on the other hand inspite of the overwhelming prominence of JAVA based tools in the xml enviornment, there are a steady and growing quantity of C and C++ programmers who are right now also working with xml. As a result there are a great assortment of XML tools for the C and C++ programmer.

In this article, I'd like to take a look at a couple of common xml tools for example IDEs and schema designers, as these are usually fairly common tools and some knowledge would be helpful for any XML C++ programmer.

Two Sets Of Tools

There are a couple of tools that tend to be in fact critical and must be in your armoury of xml tools if you want your xml projects to be successful. The first tool falls inside of the heading of “schema designer”, your second incorporates a set of software libraries that enable you to parse and generate xml. These libraries are ingredients that are added to your selected software to allow you to build xml related features.

Creating Your Own Personal Schemas Designer

Should you prefer, it is also possible to style your own schema designer, it’s often known as a dialect designer nevertheless for the purposes of this article, I am going to utilize the phrase “schema designer”.
A schema designer is certainly a fairly basic tool, it’s basically a group of xml tags in conjunction with rules on the way the tags work together. There are 2 common ways for indicating a designer, you can use a DTD (Document Type Definition) as well as XML schema.

My recommendation would be to have a designer which has validation and a syntax checker to ensure your schema is correct, this will save you a lot of time as well as headache down the line, particularly if you have a bad schema with erroneous syntax, in relation to then validating your xml data - it won’t work due to your incorrect schema,

Design Tools

Let’s study design tools, you'll be able to opt for a straightforward text editor however these are usually quite basic and I recommend instead that you check out having a commercial quality xml editor (Liquid XML Editor is not bad) since they have particular capabilities like syntax highlighting and auto-completion which can come in fairly useful.

You will see that design tools fall under three distinct groups. Either an IDE, short for integrated development environment, that is kind of like the Swiss army knife approach because it covers every functionality and tool that you could wish. Or secondly, an xml editor, which I have already mentioned above. The third choice is to write your own personal schema or DTD.

If you are seeking to convert your xml code to C++ you ought to consider working with a XML to C++ tool to generate your code for you, you can obtain more information at http://www.liquid-technologies.com/xmldatabinding/xml-schema-to-cpp.aspx.












Wednesday 13 June 2012

A Brief Article To Some Useful C++ Applications

C++ (which often is always spoken as C plus plus, is an addition to C computer programming, which was created in 1979 at Belle Labs, by a coder named Bjarne Stroustrup.

The standard ideas guiding C and C++, is the belief that you can believe in the programmer, sometimes it is equally excellent as well as negative since the compiler will never prohibit you should you do something that might make surprising or even undesirable results. On the flip side it will also not stop you if you attempt something that is unorthodox nevertheless essentially valid.

Because of this it really is critical that in case you are new to C or C++, for you to take your time to understand the code to be able to avoid any problems later on and so that you'll extract yourself if something does go awry.

In the rest of this particular article I am going to pay attention to outlining a couple of crucial C tools that any would be programmer should consider adding to their armoury.

C++ Parser Tools

A parser is a popular C program which enables you read and also interpret your xml document. To make it operate, you need to supply a DTD and your xml document. The objective of the parser is to search for proper format and then to produce your data structure for you.

C++ Validation Tools

There are a couple of types of validation in xml parsers. These are validation and non validating. Somewhat self explanatory, a validating xml parser will authenticate your xml document against your DTD or Schema prior to constructing your data structure, a non validating parser will not likely do this.

The sort of xml parser that you pick will really depend on whether or not you wish to work with a formal DTD or schemas, in case you are, then validation will be fairly critical and you need to opt for a validating parser. If not, then a validating parser is not that important.

C Parser API Models

So that you can interface software with your xml parser, you will have the option of using either of two API models, the document model or event model. The document method parses the xml data and makes what is known as an ‘object’, the object next pulls the contents of the document into a tree structure. The parser will operate on the tree structure approach.

The event model, as the name implies is generated by an occurrence and functions by employing a callback procedure to tell the parser about the structure of the xml data, this is usually at the time of parsing, hence ‘event’ model.

API standards: DOM and SAX

The parser API models cited above have been further developed into specific API standards. The W3C recommends the use of DOM as the standard document API model.

W3C Standards
While you compare functions in parsers and also other XML tools, search for support for W3C suggestions and emerging specifications, like namespaces, XPath, XLink, XInclude, and XInfoset.

Remember XML technologies are generally ageing extremely fast and that support for the primary level of a specification, such as the DOM, may lack fundamental functionality first brought about in level 2 of that specification. If performance in the most current type of a standards is important to your project, opt for your programs accordingly.

If you are wanting to change your xml code to C you must think about making use of a XML to C tool to generate your code for you, you can locate more information at http://www.liquid-technologies.com/xmldatabinding/xml-schema-to-cpp.aspx.













Wednesday 23 May 2012

Obtaining The Most Out Of Your XML Schema

This short article will take a look at a few of the more complex approaches to dealing with schema design, thus this post is only suitable for people that have a good understanding of xml and xml schema. If you are a newcomer to xml you need to first acquaint yourself with the fundamentals of xml schema, the w3c school site is a superb place to begin in that respect.

For all those who've been developing for years, you could remember that historically when you wanted to verify your xml data, you had to employ a technique also known as Document Type Definition (DTD).

Practically everyone loathed working with DTD’s because they were so difficult to work with and even more tough to figure out with their alien like syntax and symbols. It’s not really unpredictable that so many folks gave up on using DTD’s to validate xml seeing that it took so much time and was so difficult that many were unable to write correct DTDs.

Thankfully, the W3C realised that DTD was not supporting the cause of xml, as they were very eager for xml to develop into the standard for markup, in particular with regards to digital and the internet.

The W3C solution was to come up with a brand-new way to validate xml, named Xml Schema. It was a much less difficult option for validating your xml and also gave developers the exact same capabilities as DTD but enhanced it substantially making it far more maintainable and extensible.

The schema serves as a blueprint for your xml file, laying down what can and also can't be included in your xml document, for instance what elements and attributes are permitted within your xml document, the values involved with those elements, the order and occurrence and so on. Which means that it’s relatively a lot like a DTD but unlike a DTD, with a schema you can in addition handle data typing, inheritance, database linkage and grouping.

The W3C Working Group at the same time introduced the notion of “document instances” that permits you to connect specific xml documents to a schema and validate your xml document against the rules in the schema.

The specs put forth by the W3C Working Group, most importantly creates a differentiation between “simple” and “complex” elements. This has fundamental considerations for programmers, simple elements can not have other elements or attributes, whereas complex elements can. Complex elements might also function as containers for other elements, that could be either simple or complex elements.

In making your xml schema, a simple type element is expressed by the <xsd:simpleType> and a complex type element is expressed by the <xsd:complexType> statement.

To be able to present simple elements in your schema, the correct way might be to use the <xsd:element> statement.

Regarding complex types, we have an additional step further than declaring the complex type, you ought to declare the type through the element, give it a name and then use this new type in the same <xsd:element> statement as per a simple element.

I really hope this article has given you some insight into xml and xml schemas, you can find out more information at w3c or w3c schools, both of which are excellent resources for grasping xml and comprehending the standard.













































































































































































































Sunday 22 April 2012

Why Should You Utilize XML?

Document creators and editors seem to be driven to work with XML simply because it offers a methods for describing documents, separate from of platform or software program dependancies and / or restrictions.

XML documents are able to be used for print, the world wide web or some other document method. This kind of flexibility supports information system designers to employ XML, as they are able adopt one set of specifications, tools and methods for handling documents, no matter their different syndication targets.

Online and offline print writers work with XML given that it can describe extremely structured organizations of data, as well as produce to paper as well as publish to the Web, without sacrificing document construction.

Companies that take up XML as their main document format, as opposed to an HTML or even a word processor type system, will unquestionably realize a substantial decrease in their document processing fees as well as receive improved control over the generation, sending as well as overall look of their documents. Additionally they receive a massive set of tools that provides document management and processing support which aren't available for HTML or word processor formats.

XML documents can be altered to match the needs of end users. It is extremely easy to use a couple of different style sheets to an XML document to output to several types or to manipulate information many different groups.

To illustrate, a writer will want to offer only the workouts found in a document or possibly only the theoretical components. Providing a document is adequately described, the writer can produce any view of document content that they wish.

This particular element allows for numerous procedures to generate significantly different views of the same content for other uses. When possible, content re-use saves a companies funds and also would make authors more cost-effective. XML supports and also encourages these types of processes by being variable and also modular.

XML doesn't have a set number of tags or elements, as HTML does, yet it is extensible, enabling the document developer to define purposeful tags. By utilizing XML, coders can develop a markup language that is definitely designed for their purpose. XML permits developers to create their own individual set of tags that will clearly match their demands.

Therefore while a great many folks don't need tags that support mathematical equations (MathML), setting up software programs on the internet (OSD), additionally, the swapping of financial data (OFX), mathematicians, software developers and finance companies might need such special tags.

XML lets you distinguish content from format. The layout of the XML document is actually inside a standalone style sheet. This splitting up enables you to quickly sustain and update formatting as demands change.

To illustrate the positive aspects of breaking up structure from display, we can look at a commonplace predicament which can easily happen in large and small offices on a typical basis. A document is crafted that will be wanted in several output formats, web browser, PDF and user guides.

Making use of old fashioned strategies, a different document would most likely need to be developed for each document type. By isolating structure from format, no more than one source document is necessary.

This is the actual effect of structured documents. Practicing to detache structure from format is essential to crafting superior implementation of the power of XML.

























































































Friday 13 April 2012

A Overview Of XML DOM As Well As Its Uses

In this article I'll try and demonstrate the nature not to mention basis for XML DOM. I shall accomplish this by breaking up XML DOM into two parts, XML and DOM. I will then wrap up by addressing the significance of xml as well as providing a bit of context into its worth.

XML stands for Extensible Markup language and as the name implies, XML can be described as markup language, it lets you split data from the format or structure(design) of a document.

In summary it's a means of moving huge files gathered from one system to another one within a standardised way which allows the collecting system to have the ability to read and comprehend the data as well as present it as it had been supposed to be presented.

In brief, XML gives a vastly adopted standard way of representing text and data inside a format which can be processed with little human or machine intelligence. Data prepared in XML could be exchanged across platforms, languages, and applications, that can be employed with a wide range of computer programming resources and utilities.

Okay, having discussed XML, lets plunge right into DOM. DOM is an acronym and stands for Document Object Model. Similar to XML, DOM is actually independent and certainly not tied to any platform or language, DOM gives a means of accessing and altering XML documents in addition to setting some document objects for XML.

A great way to think about XML DOM is to think about a tree with branches, consider the numerous elements and tags as the branches and also child elements or tags( and their joining attributes) as the twigs. XML DOM helps you view your xml document graphically, as a tree and adjust your elements, and attributes through this DOM tree.

If you wish to change the tree, say by adding or getting rid of some of the branches or twigs, something which is in fact fairly common for web programmers, that can be done possibly by yourself, or you may work with an xml editor which has an xm parser, to accomplish it for you.

Many good xml editors ought to be appropriate for the majority of the more popular languages, such as Asp, Javascript, Visual Basic, among others. Some of the better xml editors can also be used to check the syntax of the XML as needed, referred to as xml validation in most xml editors, so do check that your chosen xml editor has an xml validation function.

Loading your XML document straight into your XML DOM so that you may make your tree is also very painless. To be able to load an entire XML file utilize the load( ) method, to load a text string work with the loadXML( ) method.

Now that we have talked about both XML and DOM, I would like to conclude by exploring just why it is significant and why software engineers might want to employ it.

Throughout the early days of the internet, online browsers and sites had been really easy, using bare html, standardisation was not a obstacle and so websites could be viewable in very much the same way regardless of the browser being utilized.

On the other hand with the beginning of the wireless internet as well as the ensuing explosion in wireless / portable systems from laptops, smartphones, tablets and other such products, the need to make sure compatibility between diverse browsers and devices grew to be increasingly important.

The answer came with the creation of new languages and specs such as XHTML, XSL and XML, the latter becoming the most vital and beneficial advancement of them all.

XML made it possible for web designers to clearly define data without the need of instructing the web browser just how to show the data, contrary to HTML, which both defines the data and also informs the browser the correct way to present it.

XML data can certainly be viewed on just about any platform or browser due to the fact it is a uncomplicated text file with absolutely no predefined tags, letting the coder to delineate data any number of ways.

Wednesday 21 March 2012

XSLT And Its Uses

In this article I am going to get started with explaining xslt, before talking about a number of the more prevalent uses and also applications for xslt. XSLT symbolizes Extensible Style sheet Language Transformations, XSL is basically a style sheet language for the purpose of xml documents.

So for what reason would you employ XSLT? The basic response is in order to enter xml and to have the ability to output as any format you like, html, pdf or just about any output to meet your requirements.

Normally xslt is commonly employed to style website pages also to stipulate the style and appearance of webpages through altering xml perfectly into a structure which could be translated and after that viewable by an internet browser.

And so just how would xml achieve this?, actually xml in itself is purely plain text, which on its own, is actually certainly not much use, consider xml as the suitcases which carries the data, its advantage is consequently that xml is a carrier of the data and also that it is standard to the extent that it can do the job by using any system or application, it is actually not system dependant.



This wasn’t an over night progression but much more a sluggish development of which started with the creation of xml (a very simple markup language with no semantic demands), coupled with the advent of xsl (a stylesheet created in xml, created to define tags as well as apply styling to websites) which finally lead to the use of xslt as way of making use of xml to direct web browsers on the best way to translate, style and display websites.

Paradoxically it had been the flexibilities of xml that was initially its Achilles heel, because the xml tags could easily represent just about anything you required, there were zero limitations, eg you could have a tag called, <house> or <dog>, it was difficult for your web browser to comprehend the precise intention or even meaning.

Nevertheless, by way of the use of xsl, it had become possible to define the tags exactly so that the internet browser comprehended and was able to implement the appropriate styles.

This worked up to a point, as the web browser industry widened with the entry of Firefox , Apple and others, and xml files started to be more complex and larger sized, troubles of interoperability eventually surfaced, for example it was typical for web pages to be shown differently based on your browser.

The solution arrived in the shape of Xpath, a query language which made it possible for builders to query their xml documents and select nodes from any xml document, this allowed web browsers to make use of syntax queries to discover and interpret particular components or tags in the xml code.

Having said that, in spite of having xsl definitions and xpath navigation abilities, difficulties persisted in the area of translating xml data into a uniform web page irrespective of the browser employed.

The answer? Well the solution was xslt ofcourse, xslt will allow you to transform xml into a processing format, this function was boosted and led to the introduction of xhtml, an augmentation on plain html.

This is actually completed as xslt looks at each component part of xml and commences its transformation to xhtml, xslt breaks down the code, translates and after that rewrites it so that all browsers can easily interpret the results.

Thursday 8 March 2012

The Industry Benefits To Changing Your Data Into XML Format

XML is an abbreviation and it is short for extensible markup language, which means it's not necessarily in itself a programming language for instance java, php etc. It is really an open standard that allows you to express your markup elements, this really pretty much different to HTML which includes predefined elements eg, a body tag, a h1 and the like. With xml you could explain the tags yourself, there is no semantics involved.

This kind of format is made to carry information in a recognized not to mention definite manner, making it easier to function around platforms and software types. It is actually extremely useful to share out organized data over the World Wide Web.

XML will be helpful in sharing important information as a result of internet to several different types of computer systems, numerous programs, many companies, businesses or organization without passing through any conversion or transcription process. It is additionally employed for encoding documents and serializing your data.

Considering xml documents undoubtedly are a internationally recognized standard format, lots of corporations have transformed their biggest business info into xml. Some organizations have learned to look at this service as an significant piece in online business while others have still to catch on.

Keeping the strength of essential small business information is incredibly important, changing your data into xml are sure to have the following rewards;

Transforming data to xml is surely an extremely less expensive answer for posting your data files onto the net.

It lets your enterprise to establish a set standard for your information, this can eventually, allow your corporation processes to become more cost-efficient.

Crucial computer data can be sent to internet browsers or perhaps business applications .

Organisations are utilising this cross-platform format for world-wide-web publishing.

The course of action of interchanging of internet data might be substantially made easy, which might also help reduce the hard drive requirement making programs and data retrieval speedier plus more useful.

The xml format is rather accommodating as well as customisable, which makes it very helpful for businesses to store and share important information.

It is possible to simplify the complex data structure via this format.

Modest editing is possible just by non-technical persons due to the fact xml conversion is schema driven and there is no programming or development expertise needed.

It's fine to use a number of media such as images, videos.

Business documents often include non printable characters. XML can handle such characters and large flat files by way of a conversion process.



You can even acquire output in web, print or publishing systems.

Firms can simply archive not to mention retrieve the xml documents.

In actual fact, there are various advantages, capabilities provided by xml format. So establishments are thinking about the xml conversion as most prolific task. To boost document management and efficiency, convert your PDF, Word, Text, Excel, HTML, SGML along with other enterprise data format into XML.

It will help to increase up business work-flows as well as maximize productiveness through xml conversion.

To conclude, changing your large amount of critical business information into xml data can certainly significantly enhance your core business operations and also make it easier for you to retrieve and share information internally and externally without the need of platform or software dependant constraints.

Friday 17 February 2012

A Simple XML Structure Explained

The accompanying example exhibits an uncomplicated well fashioned XML file. It could be entered by using a basic text editor and also one of the XML editors that you can buy. Whenever composing the document away, the file-name should certainly end with .xml. For example: “human.xml” or “yourFileName.xml”.

[human]

 [gender]

 male

    [/gender]

 [born]

 18 July 1990

    [/born]

 [hairColour]

 Blonde

    [/hairColour]

[/human]

Inside illustration previously mentioned, the [human] ... [/human] element includes three other elements and each of these consist of textual content. Because the three elements happen to be between your opening and closing human element tags it means that they will be 'child elements' of human.

These child elements give to us particular information on the parent element. In this situation this lets us know that the human is "male", was born "18 July 1990" and has "Blonde" hair. XML permits us to structure our data collections in a very logical, hierarchy that makes sense.

The very content provided by the child elements inside the above illustration can probably be generated available using attributes. I will be talking about these in my next tutorial.

Loads of info is available on XML for those who would want to know more. For the definitive guide, visit www.W3.org.

Thursday 9 February 2012

The Way To Map An XML Database Through An XML Schema

Designers commonly come across the necessity to modify the manner in which they work with their databases, it's usually the situation when say, being a programmer you could be creating a web app or possibly a software project and you find you need to alter your data mid flow, as an example, changing from xml data to a relational database. I have often worked on projects when the aims have changed and in some cases, new technologies have been announced which has required the need for some other data methodology.

Having successfully operated such change in large projects, the procedure itself is in no way a horrible one; the chief challenge is in mapping the data layout involving the sender and the destination data.

A sensible way to achieve this is to try using an xml schema (xsd for short), basically an xml schema is a approach to describe the structure and content of an xml data source. The schema sets out the foundations of an xml file, a lot like a DTD. Therefore the schema will set out to define the elements, attributes, child elements, order and quantity of child elements etc that can appear in the xml data source.

To be able to map your xml database, you can employ the following techniques, at the present time there isn't any one desired system or indeed procedure to follow, the below solutions can be viewed as a series of valid steps. I'd also add that the method you take will probably be manipulated through your own particular circumstances, like the nature and kind of data you wish to map.

 
Element To Table Mapping

Transforming xml elements into relational database tables can be the most rational route to take, however it's not absolutely the best, its suitability will probably be determined by your data. For instance, mapping an element right into a database table will certainly convert the columns to element attributes or the element content into children and so on.

To map a target element to a relational database table, simply just setup the mapping node to get the pertinent rows from your database, then fill the target elements with values out of your database.

 
Element To Column Mapping

Mapping elements to columns in your relational database is recommended in case you have very simple elements containing only text string, if your elements is made up of further elements or attributes, your mapping is unlikely to be a success. By default, an element or even attribute of uncomplicated type, maps to the column with the exact same name in the table.

In the illustration below, the <Person.Person> element is of complex type and, subsequently, maps by default to the Person.Person table in the selected database. The attributes (BusinessEntityID, FirstName, LastName) of the <Person.Person> element are of simple type and map by default to columns with the same names in the Person.Person table.

<xsd:schema xmlns:xsd=".org/2001/XMLSchema"

 xmlns:sql="urn:schemas-mysite-com:mapping-schema">

 <xsd:element name="Person.Person" >

 <xsd:complexType>

 <xsd:attribute name="BusinessEntityID" type="xsd:string" />

 <xsd:attribute name="FirstName" type="xsd:string" />

 <xsd:attribute name="LastName" type="xsd:string" />

 </xsd:complexType>

 </xsd:element>

</xsd:schema>


Attribute To Column Mapping

Attribute to column mapping is more efficient if you would want to map the attributes into columns inside your relational database tables, matching them to their given elements. The exemption is where you have only a given number of possible attribute values, on this case it may be far better to have different tables for the elements needing each attribute type.

Let’s say you've got an element designated “brick”, which has an attribute designated “colour”, plus the attributes can only be “red” or “grey”, you might manage this step by setting two tables, one for red bricks and the other for grey bricks.

Monday 30 January 2012

Exactly What Is Database Mapping?

Data mapping is to some amount, a complicated and rapidly developing subject matter, especially inside big, data led businesses. In this article, I will aim to describe, in simple terms, just the thing is data mapping, the most beneficial means of undertaking data mapping along with a speedy overview of possible methods / tools, and lastly I'm going to summarize many trade best practices.

So let’s begin with a basic meaning of data mapping. Whilst there is no established dictionary definition the below works as a suitable place to start.

Data mapping can be explained as the process of building data element mappings amongst two unique designs, usually a source data including a destination information with the data mapping process building a link or map linking data fields in both data models.

The data model itself might be either metadata or any atomic unit of computer data who have a specific meaning. With regard to conducting a data mapping, you can accomplish this in a lot of ways, determined by your level of competence and precisely what equipment you might have at hand.

Data Mapping Techniques


There are a selection of ways to handle data mapping, common methods include things like implementing procedural code, xslt transforms or even through mapping tools or software which will instantly and programmatically create as well as run executable transformation programs. Lets cover all of these techniques in more details.

Manual data mapping is basically joining or mapping fields in one set of data to your matching field in another data set by basically pulling a line from one field to another. It's usually completed in some form of graphical mapping tool which might automatically generate the results and additionally implement the data transformation

Data driving mapping calls for utilising enhanced heuristics in addition to statistics to concurrently review data values in two sources to automatically complex mappings between the two data sets. It is also one of the latest techniques for data mapping and it is valued for aiding more complex mapping procedures in between data sets such as discovering advanced transformations or points ie substrings, arithmetic, case statements, concatenations etc.

Semantic data mapping is just like the auto-connect aspect of data mappers due to the fact it is going to use semantics to connect and map two sets of data, nonetheless it won't be able to work with the metadata registry to uncover or match synonyms. It will mainly discover exact matches in between data columns rather than any transformation logic or execptions.

Some Popular Uses of Data Mapping

A number of the major use of data mapping involves a multitude of platforms and reasons.

Such as, an agency that's thinking about having purchase orders and invoices swapped and also transported digitally concerning themselves and another company, say a service provider, is able to use data mapping to generate data maps from its own data to a set acknowledged standard for its messages (for example ANSI) for this sort of purchase orders and invoices. Additional uses or applications may include, but they are certainly not confined to;

•    Transformation of data or arbitration between the source and destination

•    Revealing obscured or confidential data, for instance the last four digits of a charge card that is connected to a user id

•    Identifying connections involving data for lineage analysis

•    Distilling or simply consolidating numerous databases into one database and choosing columns of data that are no longer deemed essential, for consolidation or erasure.

Data Mapping Guidelines

To attain your goals, you really should think about adoption and / or consideration of adhering to some suggestions.

•    Put in place a few dependable data motion analysis, design and programming patterns

•    Create recycleable analysis, design and construction elements so that you have a high enough standard of data quality.

•    Put in position coding and labeling requirements which are regular and carry out the best practices

•    Lower your study costs and the expenditure of preservation and development

•    Integrate controls into the data mobility practice to be certain data quality and dependability.

Thursday 12 January 2012

Researching XML Editors

If you are a professional engineer, or simply an xml hobbyist, there comes a time when coding xml yourself is no longer attractive, either since you cannot give up any time or maybe because you have to prioritise several other projects.

So exactly where on earth do you go from here? Nicely that all depends on what you have done in the past, as an example you may think that you have learned enough xml to endure for years and years, or you might basically be tired of having a simple text editor like Notepad. Most programmers only desire to add more exciting to the process of xml coding and therefore make their jobs significantly less tiresome.

When you are ready to progress from manual xml editing then this write-up is for you, I will be able to familiarizes you with the realm of industrial XML Editors, from programs to application suites, and talk about the various kinds of xml editing, so that you can make a knowledgeable choice.

Simple Text Editors

As I stated a few moments ago, you could edit xml files 100 % yourself, working with straightforward text editors like notepad, or another simple text editor, because xml is merely bits of text or code. Nevertheless, you won’t get any fancy options which may get you to become far more productive in your writing as well as save time with decreased faults in your code.

Sophisticated capabilities similar to syntax highlighting, code libraries, auto completion, validation, coding shortcuts etc could all help save you time, but aren't obtainable in uncomplicated text editors.

Alternatively, being an xml newbie, a simple text editor could be a great way to understand the language from the beginning plus allows you total control and is particularly popular in web editing for xml, php, perl, java script and other such languages.

A Little More Complex Text Editors

A result of restrictions of uncomplicated text editors, you could improve or add functionality by making use of freeware software which can be used to create out your ideal abilities. By way of example stand alone validators, syntax highlighting, code libraries etc could very well be bundled up into your simple text editor to provide a extremely effective and error free experience free of charge.

All the same, this method is far from perfect and not suited to people that have limited technical knowledge, in addition, you run the risk of system incompatibilities and above all, simply no support as its all freeware.

Commercial Text Editors


For the more serious xml user, you'll find that a professional (commercial) xml editor can help you work faster, create far better code and still have less errors, if any at all, in your work. Based on your budget you'll be able to pick from free to paid xml editors needless to say, the saying, “you get what you pay for”, should certainly be headed in this case. As it might be luring to opt for a free xml editor, you will find the abilities bad, the performance lacklustre, and the support, non-existent.

Probably the greatest professional xml editors that I have come across, and also could have absolutely no delay in referencing in this article, known as Liquid XML Editor, a fairly powerful and intuitive XML Editor / IDE which is furthermore listed on wikipeadia if you search wikipeadia for ‘comparison of xml editors’.