Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > what kind of tag is this

Reply
Thread Tools

what kind of tag is this

 
 
wltiii
Guest
Posts: n/a
 
      11-01-2007
My knowledge of XML is not as strong as I would like. I have googled
for an answer to this, but cannot seem to find one. When looking at
xml generated by saving an excel spreadsheet, the first two tags are:

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>

I understand that the first tag is know as declaration tag. If that is
wrong, please correct me. What I really want to know, though, and what
I cannot seem to find an answer for, is the type of tag of the second
line. Is this an example of a processing instruction? Is it non-
standard xml? What would it be called?

Your help is truly appreciated!

bill

 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      11-01-2007
In article <. com>,
wltiii <> wrote:

><?xml version="1.0"?>


This is the XML declaration. It has the same syntax as a processing
instruction, but technically it isn't one.

><?mso-application progid="Excel.Sheet"?>


This is a processing instruction. Its purpose is to communicate
information about the intended processing of the document. Presumably
this one means that it's meant to be processed by Microsoft Excel.

The syntax of a processing instruction is

<?name ... ?>

The ... can be any text, but it's common to make that text have the
form of attribute-value pairs, as in your example.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
 
Reply With Quote
 
 
 
 
wltiii
Guest
Posts: n/a
 
      11-01-2007
On Nov 1, 10:57 am, rich...@cogsci.ed.ac.uk (Richard Tobin) wrote:
> In article <1193932571.076486.161...@z9g2000hsf.googlegroups. com>,
>
> wltiii <goo...@changent.com> wrote:
> ><?xml version="1.0"?>

>
> This is the XML declaration. It has the same syntax as a processing
> instruction, but technically it isn't one.
>
> ><?mso-application progid="Excel.Sheet"?>

>
> This is a processing instruction. Its purpose is to communicate
> information about the intended processing of the document. Presumably
> this one means that it's meant to be processed by Microsoft Excel.
>
> The syntax of a processing instruction is
>
> <?name ... ?>
>
> The ... can be any text, but it's common to make that text have the
> form of attribute-value pairs, as in your example.
>
> -- Richard
> --
> "Consideration shall be given to the need for as many as 32 characters
> in some alphabets" - X3.4, 1963.


Thanks much!

 
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
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
how to write jsp custom tag that can have all kind of jsp elements(not only other tags but also srciplets) in his body Lukasz Indyk Java 1 09-22-2004 12:43 PM
To vlan tag or not to tag? budyerr Cisco 1 07-08-2004 03:45 AM
Search a keyword but but only on one kind of tag Marc Pichouron Javascript 0 01-08-2004 08:40 AM
How to embed the <jsp:plugin> tag into a tag handler class...HELP !! jstack Java 1 07-04-2003 06:58 PM



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