xml-1.1

XSL: Include some ASCII control chars when method=“text”

橙三吉。 提交于 2019-11-28 05:44:15
问题 I've got an XSL template that outputs text as opposed to XML. In this text, I need to include ASCII character 0x10 in certain position. I understand this character is not allowed in an XML document, but I'm going to output text, so why am I not allowed to use it anyway? I also understand it will not be possible to put this character literally into the template, neither within a CDATA section nor as  . But why does on-the-fly generation not work either? I tried, for instance, to define a

How can I parse XML that confirms to the 1.1 spec using Java and Xerces?

£可爱£侵袭症+ 提交于 2019-11-28 01:33:19
问题 I'm trying to parse a String which contains XML content which conforms to the XML 1.1 spec. The XML contains character references which are not allowed in the XML 1.0 spec but which are allowed in the XML 1.1 spec (character references which translate to Unicode characters in the range U+0001–U+001F). According the Xerces2 website, the Xerces2 parser supports parsing XML 1.1 documents. However, I cannot figure out how to tell it the XML we are trying to parse contains 1.1-compliant XML. I'm

Does .Net 4.5 support XML 1.1 yet (for characters invalid in XML 1.0)?

浪尽此生 提交于 2019-11-27 08:15:55
This is in the context of Web Services (client end). I need to interface with a back-end system (Java) and it is a requirement to transmit some control characters in the &#14; and &#31; range. I'm well aware that XML 1.0 doesn't support this, but am interested to know if the .NET 4 platform or .NET 4.5 web services framework support conversations in XML 1.1. Jon Skeet No, it doesn't look like XmlReader (the core of much of the XML support in .NET) supports 1.1: using System; using System.IO; using System.Xml; class Program { static void Main(string[] args) { string xml = "<?xml version=\"1.1\"