Forum Moderators: open
As a webmaster you may never have the need to use XML, but a lot of technology does use it. RSS feeds like the one dmoz uses to do a database dump is XML. It really depends on your goals technically.
when information is stored in XML we need to read that document .......... that is done through parsing ...
i wanted to know how it is done ... what xml objects are used to do that .....
i mean how is generally parsing done to read the huge documents and display it ../
thanks
Precisely.
>> Why it is used
To make data portable independent of the medium that delivers it.
>> what are other things one should know
xml.com
oasis-open.org/cover/
oreilly.com
XML
SGML
Schemas
XSL/XSLT/XPath
XLink
XML Query
CSS
SVG
and about a hundred of ongoing projects [xml.coverpages.org]
How you parse is up to you. There are function libraries available for each of the major scripting languages (I know PHP has it and I'd guess ASP and CFML has it as well).
See #7 for an example
[webmasterworld.com...]
when information is stored in XML we need to read that document .......... that is done through parsing ...
i wanted to know how it is done ... what xml objects are used to do that .....
i mean how is generally parsing done to read the huge documents and display it ..
Basic XML structure is...
<root>
<children />
<children />
<children>
<subchildren />
</children>
...
</root>
Basic idea of parsing is to break the markup into a Document-Object Model (DOM) containing the various parts and their attributes, relationships, &c. This DOM can then be queried to get the various informations.
What is commonly meant when people talk about an 'XML parser' is just an engine that reads in an XML file and tries to build a DOM from it in a format that is accessible from whatever program is calling it, e.g., Xerces.
As mentioned, XSLT / XPath as well as PHP and other scripting languages, are are usually the programs used to query the DOM that was constructed by the parser. Depending on the programmer, the information that was retreived is then displayed in some common format such as XHTML + CSS, or PDF.
Jordan
Why it is used
How to Parse an XML document
Have fun! I do! ;)
Mac