Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
What is XML - and ....
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Joel  
View profile  
 More options Aug 6 2012, 8:23 pm
Newsgroups: comp.text.xml
From: Michael Joel <no_email_please@void_void.void>
Date: Mon, 06 Aug 2012 20:23:51 -0400
Local: Mon, Aug 6 2012 8:23 pm
Subject: What is XML - and ....
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.

It appears to be a simple mark up language yet, 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, some form of
customer "html"? - but I imagine that you need something that describes
what the tags do.

How does one implement XML?
What is it used for?

Also (not as important)...
I have a large XML file (KJV of The Bible) it has a lot of data in it.
I need to breaking up for use in a mySQL database. My initial idea would
be to us VB to work on the tags. 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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Kesselman  
View profile  
 More options Aug 6 2012, 8:44 pm
Newsgroups: comp.text.xml
From: Joe Kesselman <keshlam.cat.nos...@verizon.net>
Date: Mon, 06 Aug 2012 20:44:29 -0400
Local: Mon, Aug 6 2012 8:44 pm
Subject: Re: What is XML - and ....
XML a standard for raw syntax. It isn't a markup language; it's a shared
base for many markup languages, to facilitate writing tools which can be
reused across many or all of them.

In other words, it occupies much the same niche that SGML did. (HTML is
an SGML-syntax markup language.) You can think of XML as a modernized,
replacement for SGML -- sort of a "RISC" SGML, trimmed down to the
essentials and cleaned up for today's needs.

For your task of importing of the XML version of the Bible, what one
would normally do is grab one of the many XML parsers on the market
which deal with all the details of properly reading and interpreting the
syntax, and present the output either as an event stream (SAX) or an
in-memory data model (DOM). Then all you'd have to write is the code
which interprets the SAX events, or walks the DOM tree, selecting from
that the information you want to copy into your database.

For details beyond that, I'm going to hand you my standard pointer to
IBM's developerWorks site (http://www.ibm.com/developerworks/xml/),
where you will find many tutorials and articles ranging from basic to
expert. At the very least, that will give you enough background to ask
useful questions.

Welcome to the 21st century!

--
Joe Kesselman,
http://www.love-song-productions.com/people/keshlam/index.html

{} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
/\ Stamp out HTML mail!  | "Put down the squeezebox & nobody gets hurt."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Kesselman  
View profile  
 More options Aug 6 2012, 8:48 pm
Newsgroups: comp.text.xml
From: Joe Kesselman <keshlam.cat.nos...@verizon.net>
Date: Mon, 06 Aug 2012 20:48:34 -0400
Local: Mon, Aug 6 2012 8:48 pm
Subject: Re: What is XML - and ....
Oh, one other note: If you want to know more about what the markup in
your XML document actually _means_, you need to find out which XML-based
language was used. There may be comments, or a DTD (Document Type
Description) reference, or a Schema reference, at the top of the
document which will point you in the right direction to find more
information. If you aren't sure, ask whoever/wherever you got that
document from.

(BTW, note that some of the other great religious works of the world are
also available as XML documents; these were early test files for XML tools.)

--
Joe Kesselman,
http://www.love-song-productions.com/people/keshlam/index.html

{} ASCII Ribbon Campaign | "may'ron DaroQbe'chugh vaj bIrIQbej" --
/\ Stamp out HTML mail!  | "Put down the squeezebox & nobody gets hurt."


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mike myers  
View profile  
 More options Aug 8 2012, 9:40 am
Newsgroups: comp.text.xml
From: mike myers <mike67...@yahoo.co.uk>
Date: Wed, 8 Aug 2012 06:40:50 -0700 (PDT)
Local: Wed, Aug 8 2012 9:40 am
Subject: Re: What is XML - and ....

As you said, xml is a markup language, its original purpose was to allow webpages to be displayed in a set way regardless of the brower being used, in much the same way you can use xml to transport data caross systems and to be able to read that data independant of the platform or tied to any system.

You may find this short tutorial on xml useful,

http://www.liquid-technologies.com/xml.aspx

Also if you are going to be working with vb, take a look at liquid xml studio and its code gen function which will spit out vb, c# and c++ code based on your xml or schema.

http://www.liquid-technologies.com/xmldatabinding/xml-schema-to-vb.aspx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Flynn  
View profile  
 More options Sep 15 2012, 10:51 am
Newsgroups: comp.text.xml
From: Peter Flynn <pe...@silmaril.ie>
Date: Sat, 15 Sep 2012 15:51:02 +0100
Local: Sat, Sep 15 2012 10:51 am
Subject: Re: What is XML - and ....
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/publications/standards/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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »