Editing Xml Schema

Xml schema is used when xml based communication is needed between different systems, the xml schema is used to describe the structure of an xml document.  In this tutorial, I will demonstrate how to edit an xml schema using Liquid XML Studio.
Working with Liquid XML Studio is very straightforward because of its design view feature which is user friendly, and very easy to use.
For this I am using Simple Book Store Project which has some default values, the output looks like this:

img1

The Schema Looks Like this :

img2

Now if Another Column is to be added (Distributor), you need to change the xml schema to make your xml document valid. Using Liquid Xml Studio, we can open the schema document, in the design view of the xml schema you can see the structure of xml document there you can do your changes by editing the nodes . To add another node you, follow below steps.

  • Right Click on the Schema Root
  • Select Add Child
  • Child Type is Complex Type in the Design view part of Liquid Xml Studio

img3

Name it as Distributor.

Distributor can have several attributes as distributor name, distributor city etc.

Let’s create few of them.

Let’s say the full name is coming from 2 different columns in the database so you can combine them in one node by using sequence which will concat the values and display it one string. Sequence can be used for other data types also.

To create a sequence you can use same procedure .Right Click on the node on which you need to create child sequence and under “Add Child” select sequence.

Now add child elements to the sequence like Distributor Name, Distributor Organization Name

After adding few fields it looks like this:

img5

Lets make Some changes in XSLT file so that it can be shown in the html page.

img6

And Html Page with some dummy values look like this:

img7

So by doing all the changes in xml schema we get this output:

img8

So by using Liquid XML Studio you can edit the XML schema and change the structure of the XML Document used in any communications.

XMLQuire – a free light XML Editor

 

This XML Editor is the result of a rethink on one of the very fundamental principles of the way we edit XML text, namely XML formatting.In this editor, no tab or space characters are used for XML indentation. Instead, the left-margin adjusts continuously to ensure the XML always appears properly formatted. The editing experience is quite different from normal, because as you edit XML, you will find that the XML reflows into new formatting patterns continuously, even
when the XML structure is altered significantly, there’s no ‘reformat’ button to press.

Features

  • Support for Windows XP or later
  • Syntax-highlighting and auto-completion
  • Schema validation and schema-aware completion lists
  • XPath Editor with auto-completion and full predicate/function tracing
  • DTD caching
  • Regex powered Find and Replace with preview
  • Special Print Preview with XML print formatting options
  • Recent Files list with preserved state replaces document tabs
  • Left-justified alternative view option
  • Multi-process and Multi-monitor editing windows
  • Smart trimming of formatted XML for import compatibility with existing editors
  • Synchronized element outline tree and sibling node value list

web-screen XMLQuire can be downloaded from http://xmlquire.com