<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 24 May 2013 02:50:14 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: Generating XML schemas from XML data]]></title>
      <guid>http://www.phpdeveloper.org/news/16117</guid>
      <link>http://www.phpdeveloper.org/news/16117</link>
      <description><![CDATA[<p>
In a new post to his blog <i>Kore Nordmann</i> <a href="http://kore-nordmann.de/blog/0104_generating_xml_schemas_from_xml.html">talks about a tool he's developed</a> that will "learn" XML schemas based on a document it's given. The tool, the <a href="https://github.com/kore/XML-Schema-learner">XML-schema-learner</a>, makes it as simple as a one-line command to generate the DTD file and transform it into a schema.
</p>
<blockquote>
You can get the "<a href="https://github.com/kore/XML-Schema-learner">XML schema learner</a>" from my Github account: <a href="https://github.com/kore/XML-Schema-learner">https://github.com/kore/XML-Schema-learner</a>. Just clone it, and you can run the tests, or use the learn command to infer XML schemas from XML data.
</blockquote>
<p>
He includes an example XML definition and the resulting DTD that the tool generates from it, defining each of the elements and attributes each can have. The tool can then take this DTD file and generate an XSD file, creating complex and simple types that match the original data.
</p>]]></description>
      <pubDate>Tue, 29 Mar 2011 12:16:05 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stefan Koopmanschap's Blog: Formatting valid xs:dateTime fields with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/13190</guid>
      <link>http://www.phpdeveloper.org/news/13190</link>
      <description><![CDATA[<p>
<i>Stefan Koopmanschap</i> had a problem - the formatting on his dateTime fields (the XSD type) wasn't cooperating and couldn't be validated. He <a href="http://www.leftontheweb.com/message/Formatting_valid_xsdateTime_fields_with_PHP">asked the question</a> of the community of how to correct this and was given a short and easy answer from <i>David Zuelke</i> using <a href="http://php.net/date">date</a>.
</p>
<blockquote>
Recently I had to compose some XML documents that needed to be validated with XSDs. All fine of course, but I had some problem with two date/time fields that according to the XSD were supposed to be xs:dateTime fields. Googling around I found a lot of references to the ISO8601 format, so I decided to format my date using the DATE_ISO8601 constant. That did not work though.
</blockquote>
<p>
<i>David</i>'s suggestion was to use "date('c')" (the full ISO 8601 date) instead of the DATE_ISO8601 constant. The trouble is caused by a missing colon in the second choice's output.
</p>]]></description>
      <pubDate>Wed, 09 Sep 2009 09:19:15 -0500</pubDate>
    </item>
  </channel>
</rss>
