<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE collaborationauthorlist SYSTEM "authors.dtd">
<collaborationauthorlist
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:cal="http://www.slac.stanford.edu/spires/hepnames/authors_xml/">
but currently the <collaborationauthorlist> tag needs to start on the first line for the content to be detected as author.xml. It would be good to extend support for this kind of documents, by searching for the tag among the first few (3?) lines. Alternatively, the browser's XML parsing capabilities could be used to robustly determine the name of the root tag, as demonstrated in https://developer.mozilla.org/en-US/docs/Web/XML/Parsing_and_serializing_XML#parsing_strings_into_dom_trees
author.xml files often start like this:
but currently the
<collaborationauthorlist>
tag needs to start on the first line for the content to be detected as author.xml. It would be good to extend support for this kind of documents, by searching for the tag among the first few (3?) lines. Alternatively, the browser's XML parsing capabilities could be used to robustly determine the name of the root tag, as demonstrated in https://developer.mozilla.org/en-US/docs/Web/XML/Parsing_and_serializing_XML#parsing_strings_into_dom_trees