#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    vancouver, bc
    Posts
    145
    Rep Power
    15

    Question How can I use XML?


    hi,

    I've read the article on XML basics and other articles here and there but i'm still wondering how can i use xml and what is it really for?

    is it another layer in the application?

    I mean, to share data with others on different platforms, can't that be done using just a database? and if i I need to display it on varying devices can't a database and a language(jsp, php, asp, etc..) do the trick?

    Why do i need xml?

    can someone point me to a reference point or help me out here?

    thanks
    edwin
    I know nothing
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Rotterdam, the Netherlands
    Posts
    2
    Rep Power
    0
    You should probably see xml as an api which means that by defining a dtd or a xsd you make it possible for other systems to understand the structure of your xml and to plugin

    An easy to understand implementation is html.
    All element- and attributenames are described in a dtd which is implemented in all html enabled applications such as webbrowsers.

    The result is a uniform data visualisation and sharing of html.

    xml is a possible solution dedicated datasharing, -processing and -visualisation. (Large) companies can define their xml structure they want to use for projects or whatever and by making the definition public other companies such as suppliers can develop applications that can read and process those xml files.

    for some real life implementations of xml you might want to look at
    http://cig.bre.co.uk/iai_uk/document...G/EMG-Base.htm
    This is an explanation of the xml structure for the building industry

    http://www.imsproject.org
    who have defined xml based structures for electronic learning environments

    For viewing editing and validatind xml (related) files I reccomend you download a copy of turbo xml at http://www.extensibility.com/solutions/trial.htm
    (examples included)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    vancouver, bc
    Posts
    145
    Rep Power
    15
    pwijdh,

    ok. so after describing all my data into nicely organized pieces. how do i share it with other ppl? store it in a database?

    but why can't i just use a database and why describe it all in xml? isn't a database more powerful in terms of storing and organizing data?

    thanks
    edwin
    I know nothing
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    5
    Rep Power
    0
    Most examples and tutorials about XML show it as text files that are then converted to HTML or WAP or something. You're right, this wouldn't make much sense to store a large amount of data this way. A database makes more sense. What XML is great for is transfering that data between different companies/depts/etc.

    For example, let's say you were going to share your widget product database with your biggest customer WidgWorld. They're going to get the latest data from your database and show it on their ecommerce site. You don't want to just give WidgWorld a password and let them do whatever they want with your data. So instead you create a script/servlet/app that sends the data in XML form. Before you probably would have sent comma or tab separated text but that doesn't show irregular data (some widgets have 3 unique features others have 1) and isn't self describing. Also if 2 differenct customers are getting this XML feed you can add a new tag (<color>Blue</color>) and the parser will ignore until they decide to parse for it, a sudden new column in the text table would probably screw everything up.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    vancouver, bc
    Posts
    145
    Rep Power
    15

    great


    thanks man,

    I really need to start learning sooo much stuff and xml/xslt will be some of them....

    are u working with xml now?

    edwin
    I know nothing
  10. #6
  11. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2000
    Posts
    27
    Rep Power
    0
    Good site here:
    http://www.phpxml.org

    py

IMN logo majestic logo threadwatch logo seochat tools logo