468,765 Members | 1,153 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

syntax: " or ' ?? (<?xml version="1.0")

Hi,

I have a simple question regardign the syntax: do I have to need double
quotation marks or single qoutation marks in my XML?
For exemple:

<?xml version="1.0"
or
<?xml version='1.0'

the first one seems the 'official' way to me, but because I need to make
XML-strings in some application I'd better use there the single quotation
marks. I tested it, and it's recognized as an XML-document, but I still
wonder if it is 'legal' or not?

Thanks a lot,

Pieter
Nov 12 '05 #1
2 1502
* DraguVaso wrote in microsoft.public.dotnet.xml:
I have a simple question regardign the syntax: do I have to need double
quotation marks or single qoutation marks in my XML?
Either is allowed.
the first one seems the 'official' way to me, but because I need to make
XML-strings in some application I'd better use there the single quotation
marks. I tested it, and it's recognized as an XML-document, but I still
wonder if it is 'legal' or not?


See http://www.w3.org/TR/REC-xml/#NT-XMLDecl
Nov 12 '05 #2
Thanks!

"Bjoern Hoehrmann" <bj****@hoehrmann.de> wrote in message
news:40****************@news.bjoern.hoehrmann.de.. .
* DraguVaso wrote in microsoft.public.dotnet.xml:
I have a simple question regardign the syntax: do I have to need double
quotation marks or single qoutation marks in my XML?


Either is allowed.
the first one seems the 'official' way to me, but because I need to make
XML-strings in some application I'd better use there the single quotation
marks. I tested it, and it's recognized as an XML-document, but I still
wonder if it is 'legal' or not?


See http://www.w3.org/TR/REC-xml/#NT-XMLDecl

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Eric A. Forgy | last post: by
2 posts views Thread by S??rgio Nunes | last post: by
1 post views Thread by Christian Schmidbauer | last post: by
7 posts views Thread by Diandian Zhang | last post: by
6 posts views Thread by Guagua | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.