[JDEV] Quotes in XML

Peter Saint-Andre stpeter at jabber.org
Sun Jun 3 17:53:20 CDT 2001


The XML Spec (http://www.w3.org/TR/REC-xml) yields the following under 
2.3 Common Syntactic Constructs (specifically, the "literals" subsection):

AttValue    ::=    '"' ([^<&"] | Reference)* '"' |  "'" ([^<&'] | 
Reference)* "'"

Notice that " and ' are both acceptable.

Peter

Michal Leinweber wrote:

> Why jabberd uses single quotes for attribute values in XML packets ????
> 
> In XML specification there is only double-quotes possible .... :
> 
> 	AttValue    ::=    '"' ([^<&"] | Reference)* '"'  
> 
> Why? Why?
> 
> 	McLEI
> 
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 
> .
> 
> 






More information about the JDev mailing list