Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to automatically create table and structure for a database using XML in Cakephp
    primarykey
    data
    text
    <p>Is there a way we can dynamically create table and structure for a database using Xml?</p> <p>So that columns are generated using Xml as a reference.</p> <p>Is something like that available in Cakephp?</p> <p>Below is the sample XML that I intend to use: (I did not copy paste all of them as it is rather large)</p> <pre><code>&lt;/dsr_data_agg_stats&gt; &lt;state code="ACT"&gt; &lt;post_code code="2600"&gt; &lt;locality name="DEAKIN"&gt; &lt;dwelling_type code="H"&gt; &lt;typical_value rank="3341/3697"&gt;831000&lt;/typical_value&gt; &lt;dom score="1" rank="454/5673"&gt;56&lt;/dom&gt; &lt;discount score="0" rank="779/5673"&gt;5%&lt;/discount&gt; &lt;acr score="-1" rank="914/5531"&gt;59%&lt;/acr&gt; &lt;renters score="0" rank="5131/5627"&gt;42%&lt;/renters&gt; &lt;vacancy score="1" rank="4714/5673"&gt;2.61%&lt;/vacancy&gt; &lt;yield score="-1" rank="678/3697"&gt;3.69%&lt;/yield&gt; &lt;som score="1" rank="3915/5144"&gt;2.08%&lt;/som&gt; &lt;search_dsr score="-3" rank="3578/4009"&gt;4.9&lt;/search_dsr&gt; &lt;dsr rank="3121/5673"&gt;23&lt;/dsr&gt; &lt;sr rank="2552/5673"&gt;5.8&lt;/sr&gt; &lt;/dwelling_type&gt; &lt;/locality&gt; &lt;locality name="YARRALUMLA"&gt; &lt;dwelling_type code="H"&gt; &lt;typical_value rank="3438/3697"&gt;931250&lt;/typical_value&gt; &lt;dom score="1" rank="454/5673"&gt;56&lt;/dom&gt; &lt;discount score="0" rank="779/5673"&gt;5%&lt;/discount&gt; &lt;acr score="-2" rank="1999/5531"&gt;42%&lt;/acr&gt; &lt;renters score="0" rank="5131/5627"&gt;42%&lt;/renters&gt; &lt;vacancy score="1" rank="4714/5673"&gt;2.61%&lt;/vacancy&gt; &lt;yield score="1" rank="678/3697"&gt;4.76%&lt;/yield&gt; &lt;som score="0" rank="4333/5144"&gt;3.03%&lt;/som&gt; &lt;search_dsr score="-3" rank="3277/4009"&gt;7&lt;/search_dsr&gt; &lt;dsr rank="3121/5673"&gt;23&lt;/dsr&gt; &lt;sr rank="2552/5673"&gt;5.8&lt;/sr&gt; &lt;/dwelling_type&gt; </code></pre> <p>...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload