Thursday, December 31, 2015

XML- LOOK

Hope all of you had rocked 2015!  Last day of the year, many might be getting ready to party hard and few with resolutions to make it big in their careers.  All the best and make the most of it.

                                                                   XML: LOOK

<?xml version="1.0"? >  Declaration
<!.. My first XML document.. > comment

<message status="urgent" type="friendly">
 start tag  ...attribute...
<text>Hello Joy</text>
<subject>How are you</subject>
</message>

The above document contains start tag, attribute, sub-elements,declaration and comments.


Root is the outmost element in the above case <message> 
Elements can contain child elements ( e.g., message contains text and subject)

Attribute-( message status="urgent" type="friendly"
Name-value pair separated by "=" sign... similar to attributes in the HTML tags.
Attributes of elements are defined in the starting tag not at the end tag.

XML has become useful in three major areas
1) Putting data on the web
2) Storing/Sending system data
3) Exchanging data between applications.

Data described using markup language
Each individual piece of information is "marked up" A marker shows the meaning of the associated data- <name>Joy</name>
        Start tag-content-End tag

A unit of data to which a meaning has been attached is called an "element". An element consists of 'Start tag', 'content','End tag'.

When required an "attribute" can be described in the start tag of an element showing more detailed information to be assigned to the data.
<name id="26">Joy Joshi</name>
            .attribute.

Mark: Tag names are case-sensitive.They come in two flavours 
1) Paired - <title>Joy to the world</title>

2) Empty: A single tag with no closing tag- Elements require no data
Data can be provided through tag attributes
Ex:  <customer number="CUST123" name="Joy"/>
                                                                                 Empty tag
Attribute value are always quoted strings...passing application must convert to other data types.
Can begin with and contain any characters except (Digits, whitespace,punctuation etc.,)

Example using tag attributes:

<customer number="CUST123" 
status="VIP"
account manager="EMP007"
<name>Joy</name>
</customer>


Customer has three attributes
1) Number
2) Status
3) Account Manager

                                                              COMMENTS

XML uses comments like other languages.

Notes to a human being-Not interpreted by parsers.

                                           <!.. comment.. >

Rule for using comments
1) No comments before XML declaration in the first line
2) No comments within other markups
3) Don't use "--" ( two hyphens) within comment text.
4) No nested comments.













Saturday, December 5, 2015

WORKDAY: XML+Xpath+XSL



                                                     XML+Xpath+XSL

I am sorry for taking a long break in writing up. I was held with work, so didn’t get the time... as well excuse me for not replying to the ‘flood of emails’ received from you guys asking suggestions and assistance. I will reply soon once I sort out my inbox.

In WORKDAY integration plays an important role for the successful run of the projects.

WORKDAY always interacts in XML format.

Most of the cloud applications talk in XML and WORKDAY generates automatically XML file.
We use XML with the assistance of web services; they are the building blocks for construction of applications.
                                        Extensive Mark up Language-XML

XML is a data language based on text markup (special markers (tags) in the text that identify its parts).
Markup Language: Set of rules for marking up a text. A markup language defines what tags you may use how and where to use them.
HTML is a markup language-The key difference between HTML & XML is…
HTML is designed for display and uses ‘CSS’ for manipulating display.
HTML data is fixed and mostly about presentation.
-----------------------------------------------------------------------------------------------------------------
XML: It is designed for data and uses ‘XSLT’ for manipulating data & display for multiple output types.

·      Basic XML provides a ‘grammar’ for markup.
·      Elements must conform to certain rules making XML a meta-markup language.
·      Human and computer friendly format.
·      Excellent for long term data storage and data reusability.
·      Handles the data in a tree structure having one and only one root element.

XML gives an excellent service for handling data with a complex structure.

·       Data managed using RDB tables has a regular data structure.
·     In today’s fast changing world, most of the data that exists is not structured and at times cannot be managed using tables like… Complex Structure and Atypical data.

There are many applications & tools in the market competing to streamline the data and one such format that can handle data without an extensive manipulation is ‘XML’.
XML allows for the description of data in a text format as it uses the text data, whereas, data delivered back & forth without OS obligation.
XML data can be stored for long periods without the fear of thinking unusable, whereas, data created through specific application becomes useless or even impossible to access if the application is unusable.

Using XSLT, an XML document can be transformed into a document of a different structure or format (HTML,CSV,etc)  ONE SOURCE-MULTI USE solution.
XSLT style sheet is designed to use single XML document for various purposes (the web or mobile phones)