Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3

Thread: xml infromation

  1. #1
    kkk
    kkk is offline
    Junior Member
    Join Date
    May 2007
    Posts
    3
    Member #
    15283
    i will love to know some information on xml.
    1. what are current xml standards
    2.how do software suppliers (Like microsoft) provide for xml use in their applications?
    3. what are the differences between using xml and a realtional database to store data
    4. how is xml postioned in the move towrads web application (including web2)

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    You'll need to be a lot more specific with most of those questions. XML is hugely popular yet quite simple to learn. Still:

    1. The W3C has some standards: http://www.w3.org/XML/ . If you've written valid XHTML, then you've been writing XML without knowing it.
    2. Office 2007, by default, uses XML as its file format (.docx, .xlsx, etc.). ASP.NET is based around XML. As I mentioned as well, XHTML extends XML.
    3. A relational database explicitly defines relations between data, enforces data types, allows for very advanced querying, and the vast majority of the time, is the preferable way to store most data for an application.
    4. It's essential. Without XML, XHTML and Ajax wouldn't exist.

    If you want a sample of XML, here's a gen-u-ine WDF v6 XML document, used by the event dispatcher:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <events>
        <event name="index" requireSSL="false">
            <trigger>
                <pathTraversal>
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="noimpl" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">noimpl</pathElement>
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="bundle_files" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">bundles</pathElement>
                    <pathElement type="string" provideAsFieldID="type" />
                </pathTraversal>
            </trigger>
        </event>
    	
        <event name="mockup" requireSSL="false">
            <trigger>
                <pathTraversal>
    				<pathElement type="literal">mockup</pathElement>
                    <pathElement type="string" provideAsFieldID="file" />
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="login" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">login</pathElement>
                </pathTraversal>
            </trigger>
            <fields>
                <field title="Username" name="username" type="string" required="true" />
                <field title="Password" name="password_hash" type="suggested_client_side_md5" required="true" />
            </fields>
        </event>
        
        <event name="logout" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">logout</pathElement>
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="search" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">search</pathElement>
                </pathTraversal>
            </trigger>
            <fields>
                <field title="Query" name="query" type="string" required="true" />
            </fields>
        </event>
        
        <event name="out" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">out</pathElement>
                    <pathElement provideAsFieldID="part1" type="base64" />
                    <pathElement provideAsFieldID="part2" type="base64" />
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="user_list" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">users</pathElement>
                </pathTraversal>
            </trigger>
        </event>
        
        <event name="collection_test" requireSSL="false">
            <trigger>
                <pathTraversal>
                    <pathElement type="literal">collection</pathElement>
                </pathTraversal>
            </trigger>
        </event>
    </events>
    Here's something more complicated that uses XML namespaces. Strictly speaking, this isn't a valid document because it uses tags in a namespace not permitted by the specified DTD, but it eventually gets transformed into a valid document. It's still well-formed, meaning tags are nested properly, quotes used, etc.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:wdf="http://www.webdesignforums.net/">
        <head>
            <title><wdf:appProperty name="title" />: Not Implemented</title>
            
            <wdf:include template="head.xml" />
            <wdf:baseHref />
        </head>
        
        <body>
            <h1>	
                Event Not Implemented
            </h1>
            
            <p>The requested event isn't implemented yet.</p>
        </body>
    </html>
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,657
    Member #
    1234
    Liked
    138 times
    So, what class are your questions for?
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:59 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com