OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: What is Xml ?


 
Please can someone direct me to an authoritative explanation of what constitutes a valid XML file ?
I'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 be created using any XML editor providing the format and tags required are used", though I get various errors from emacs+nxml-mode, XmlMind and Serna.
I think that they are not well-formed, on account of having two "root nodes".
I'm also a bit surprised by the lack of the usual version, encoding and standalone attributes in the xml PI, though I suspect they are actually optional.
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 that they 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 to get it into a form 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

uk.atos.net

 

 Atos logo

 

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its 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-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]