Are line breaks in XML attribute values allowed?

前端 未结 4 944
遥遥无期
遥遥无期 2020-11-27 05:14

I realise that it\'s not elegant or desired, but is it allowed (in well-formed XML) for an attribute value in an XML element to span multiple lines?

e.g.

<         


        
4条回答
  •  一整个雨季
    2020-11-27 05:52

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

    Seems to say everything except <, &, and your delimiter (' or ") are OK. So newline should be, too.

提交回复
热议问题