473,229 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,229 software developers and data experts.

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 1631
* 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric A. Forgy | last post by:
Hello, I am just learning Java and am trying to write a method that does something like //=========================================== public Static List find(double array,double val,String...
2
by: S??rgio Nunes | last post by:
Hi, I'm applying a XSL transformation to a XML document. I would like to know if it's possible to include <?..?> in the output header. Example: ===== a.xml: =====
1
by: Christian Schmidbauer | last post by:
Hello! I prepare my XML document like this way: ------------------------------------------------------- PrintWriter writer; Document domDocument; Element domElement; // Root tag
7
by: Diandian Zhang | last post by:
Does anyone have an idea, how to do it? Thanks in advance!
6
by: Guagua | last post by:
I have lots of expression like "a <?= b" in my original code. However I switch to another compiler from gcc that doesn't support operator "<?=". How could I define the operator so that the...
2
by: andrew007 | last post by:
I do xml / xslt transformation using asp.net but I found any value (w/xml format) in xml node html-encoded to &lt and &gt format if it's > or < tag. Since I have sub xml data in a parent xml node...
10
by: Jon Noring | last post by:
Out of curiosity, may a CDATA section appear within an attribute value with datatype CDATA? And if so, how about other attribute value datatypes which accept the XML markup characters? To me,...
3
by: Steven.Xu | last post by:
hi everybody, i am useing some classes which in System.Xml to deal with xml document. what can i do if the document include "<" or ">"? Thanks.
1
by: ismailc | last post by:
Hi, I need help please. Update system to to new version & moved on to .Net2 But now my code that worked in my .Net1 xslt does not work. .Net1 fine: <xsl:stylesheet...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.