• This is Slide 1 Title

    This is slide 1 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...

  • This is Slide 2 Title

    This is slide 2 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...

  • This is Slide 3 Title

    This is slide 3 description. Go to Edit HTML and replace these sentences with your own words. This is a Blogger template by Lasantha - PremiumBloggerTemplates.com...

Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

Monday, 2 February 2015

What is XML?

XML (Extensible markup language) is all about describing data. Below is a XML which describes book store.
<?xml version=”1.0″ encoding=”ISO-8859-1″?>
<book>
<php>php by pcds infotech</php>
<java>Jave j2ee by pcds infotec</java>
An XML tag is not something predefined but it is something you have to define according to your needs. For instance in the above example of books all tags are defined according to business needs. The XML document is self explanatory, any one can easily understand looking at the XML data what exactly it means.

Wednesday, 5 February 2014

How to insert HTML content in XML document?

How to insert HTML content in XML document?

Using CDATA tags you can enter HTML content in XML document.

Syntax:
    <![CDATA[
   
        <!--   html coding --->
   
    ]]>

Example:

        <details>
        <pages>
            <page_id>1</page_id>
            <page_code>aboutus</page_code>
            <page_title>About Us</page_title>
            <page_desc>
                <![CDATA[<html>
                    <head>
                        <script/>
                    <head>
                    <body>
                    <p>para 1</p>
                    <p>para 2</p>
                    <p>para 3</p>
                    </body>
                    </html>
                ]]>
            </page_desc>
        </pages>
    </details>