[livesupport-dev] XML validation?
  • This is a multipart message in MIME format.
    --=_alternative 0040023FC1256FB7_=
    Content-Type: text/plain; charset="us-ascii"

    Hi all,

    I was looking at the HTML UI's option to view the raw XML metadata being
    sent to StorageServer, and it seems to be working well, stripping ID3
    values and placing them in their correct LS/DC tags. Here's a sample:



    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:xbmf="http://www.streamonthefly.org/xbmf"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    we will ska you
    00:04:07.036438
    bittersoundfoundation
    Unknown
    File
    www.bitter.cream.org
    1970-01-01
    Unknown
    www.bitter.cream.org
    125



    The first question I had was why we're invoking Stream on the Fly
    namespaces and XBMF, and Sebastian answered that this is an old script
    that he will update. But my second question goes a little deeper: I
    thought the Storage Server was validating the XML sent to it; if so,
    shouldn't it return an error if it's calling not the LS tags but XBMF?

    doug


    --=_alternative 0040023FC1256FB7_=
    Content-Type: text/html; charset="us-ascii"



    Hi all,



    I was looking at the HTML UI's option to view the raw XML metadata being sent to StorageServer, and it seems to be working well, stripping ID3 values and placing them in their correct LS/DC tags. Here's a sample:



    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <audioclip>

        <metadata xmlns="http://www.streamonthefly.org/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xbmf="http://www.streamonthefly.org/xbmf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <dc:title>we will ska you</dc:title>

            <dcterms:extent>00:04:07.036438</dcterms:extent>

            <dc:creator>bittersoundfoundation</dc:creator>

            <ls:genre>Unknown</ls:genre>

            <dc:format>File</dc:format>

            <dc:source>www.bitter.cream.org</dc:source>

            <ls:year>1970-01-01</ls:year>

            <dc:type>Unknown</dc:type>

            <dc:description>www.bitter.cream.org</dc:description>

            <ls:bpm>125</ls:bpm>

        </metadata>

    </audioclip>



    The first question I had was why we're invoking Stream on the Fly namespaces and XBMF, and Sebastian answered that this is an old script that he will update. But my second question goes a little deeper: I thought the Storage Server was validating the XML sent to it; if so, shouldn't it return an error if it's calling not the LS tags but XBMF?



    doug




    --=_alternative 0040023FC1256FB7_=--

    ------------------------------------------
    Posted to Phorum via PhorumMail