[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] What is Xml ?
Hi Richard,the authorative source would be http://www.w3.org/TR/2008/REC-xml-20081126/ (XML-1.0).
Hope this helps, Torsten On 30.07.2012 14:51, Kerry, Richard wrote:
Stefan, Thanks for that, but I know most of it already. The issue is that if I'm to get the supplier to change their software or docs I'll need to be able refer to an authoritative source. Appreciatlvely, Richard.-----Original Message----- From: Stefan Hinz [mailto:stefan.hinz@oracle.com] Sent: 30 July 2012 13:45 To: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] What is Xml ? Hi Richard, > Please can someone direct me to an authoritative explanation of whatconstitutes a valid XML file ?Let me try with expert knowledge freshly gained from Wikipedia (http://en.wikipedia.org/wiki/XML#Well-formedness_and_error-handling). For your below document, this means: * The<?xml?> prolog is optional. * There's no single "root" element that contains all the other elements. Therefore, the XML isn't well-formed, and thus not valid. HTH. Cheers, StefanI've been provided with some "XML" files which are a bit like this : <?xml?> <category id="information"> <section id="general"> <element id="fileinfo" /> </section> </category> <category id="device"> <section id="Status"> <element id="1" /> <element id="2" /> </section> </category> They are described as "XML", together with a note that "...file can becreated using any XML editor providing the format and tagsrequired areused", though I get various errors from emacs+nxml-mode,XmlMind and Serna.I think that they are not well-formed, on account of havingtwo "rootnodes". I'm also a bit surprised by the lack of the usual version,encoding andstandalone attributes in the xml PI, though I suspect theyare actuallyoptional. And I've just found that it starts with (hex) ef bb bf,before the "<?"- is that a byte-order mark ? Or just another non-standardness ? I will need to pass this back to the originators so thatthey can either :1. Change their software to produce/use real XML. or: 2. Change their documentation to refer to "XML-like" or similar. In the meantime I'll need to do some sort of processing toget it into aform that I can process. Appreciatively, Richard. Blue line *Richard Kerry* BNCS Engineer T: +44 (0)20 82259063 M: +44 (0)7812 325518 Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ richard.kerry@atos.net<mailto:richard.kerry@atos.net> uk.atos.net<http://uk.atos.net/en-uk/> Atos logo This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If youreceive thise-mail in error, please notify the sender immediately anddestroy it. Asits integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-freenetwork, the senderdoes not warrant that this transmission is virus-free andwill not beliable for any damages resulting from any virus transmitted.-- Cheers, Stefan Hinz<stefan.hinz@oracle.com>, MySQL Documentation Manager Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc ORACLE Deutschland B.V.& Co. KG Registered Office: Riesstr. 25, 80992 Muenchen, Germany Commercial Register: Local Court Of Munich, HRA 95603 Managing Director: Jürgen Kunz General Partner: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697 Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
-- Torsten Stolpmann Managing Director verit Informationssysteme GmbH Europaallee 10 67657 Kaiserslautern Germany Email: stolpmann@verit.de Phone: +49 631 520 840 00 Fax: +49 631 520 840 01 Web: http://www.verit.de/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]