Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: What is XML - and ....

Reply
Thread Tools

Re: What is XML - and ....

 
 
Peter Flynn
Guest
Posts: n/a
 
      09-15-2012
On 07/08/12 01:23, Michael Joel wrote:
> Ok. I am not an expert on and language but I get by decent enough on
> javascript, PHP (and mySQL), VB (which has nothing to do with this),
> I can do perl if I have to... But I do not have a clear understanding
> of what XML is.


The FAQ is at http://xml.silmaril.ie/

> It appears to be a simple mark up language yet,


It's a misleading name. XML, like its predecessor SGML, is actually a
metalanguage to let you design your own markup. It's just a syntax: the
semantics are up to you.

> from what I see, the mark up looks like it is whatever is wanted. I
> mean it looks like you make up your own tags. Is that basically what
> it is,


Yes, exactly.

> some form of customer "html"?


Not really; XHTML is written in XML, and so are hundreds of other markup
languages, like DocBook or TEI.

> but I imagine that you need something that describes what the tags
> do.


"Tags" (actually called "elements") don't "do" anything except sit there
and identify what's in them. I think what you may mean is that you need
a document describing how they should be used. Yes, you do, and if you
invent a new markup language using XML, you need to write that document.

For example, DocBook5 is described in
http://www.docbook.org/tdg5/en/html/docbook.html; the TEI is described
in http://www.tei-c.org/Guidelines/; XHTML is described in
http://www.w3.org/TR/xhtml2/; ODF is described in
https://www.oasis-open.org/standards#opendocumentv1.2, and OOXML is
described in
http://www.ecma-international.org/pu...s/Ecma-376.htm

> How does one implement XML?


By using a markup language written in XML for your application. You then
need companion languages like XSLT2 to transform the XML into specific
targets (eg HTML or PDF), XQuery for specifying searches, and a whole
bunch of other X-things to do assorted other tasks.

> What is it used for?


Pretty much everything these days. Although originally designed for text
markup, it can also be used for rectangular data, so you'll find it used
for config files, data transfer, messaging, e-commerce, medicine, and
lots of other areas.

>
> Also (not as important)... I have a large XML file (KJV of The Bible)
> it has a lot of data in it.


Do you mean metadata? That is, data OTHER than the actual text? Like
links, explanations, commentary, etc?

> I need to breaking up for use in a mySQL database. My initial idea
> would be to us VB to work on the tags.


Technically possible, but I'd use XSLT2.

> But I thought there might already be something out there that would
> let me define how to handle tags (such as I want some tags gone, I
> have no need for them) and I want the XML split in certain ways. I
> would like some of the tags attributes (I do not know what else to
> call them) shortened to only the needed ones for my purpose)...
>
> So is it best just to write some VB or is there something like that?


XSLT2 sounds like what you want. It's a programming language actually
written in XML syntax. There are several implementations: probably the
most popular is Saxon.

///Peter

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ElementTree.XML(string XML) and ElementTree.fromstring(string XML)not working Kee Nethery Python 12 06-27-2009 06:06 AM
[Announce] Stylus Studio 2007 XML Enterprise Suite Released: XML Pipeline, XML Publishing and Data Conversion API's stylusstudio@gmail.com Java 0 09-26-2006 05:04 PM
[ANN] Stylus Studio 2007 XML Enterprise Suite Released: XML Pipeline, XML Publishing and Data Conversion API's Stylus Studio XML 0 09-26-2006 04:49 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57