Note that there are some explanatory texts on larger screens.

plurals
  1. POStoring XML Files in Database
    primarykey
    data
    text
    <p>I have to create a desktop application in Java 6. Program should be able to communicate with other system using XML files (sending/receiving). Every single XML file is connected with its XSD, tags describing its content, username and status of the document. Application should provide such functionality as searching, modyfying etc. XML content.</p> <p>The question is: how should I store all these information retaining logical connections?</p> <p>I came up with an idea to store it using XML database - BaseX. In other words, storing XML files with information connected to them in one big XML (database) file.</p> <p>Sample database:</p> <p><code>&lt;?XML VERSION="1.0"?&gt;</code><br> <code>&lt;mySampleRecord id="1"&gt;</code><br> <code>&lt;XMLcontent&gt; // Content of XML file (...) &lt;/XMLcontent&gt;</code><br> <code>&lt;XMLschema&gt; // Content of XSD file (...) &lt;/XMLschema&gt;</code><br> <code>&lt;tags&gt;j2ee java xml&lt;/tags&gt;</code><br> <code>&lt;username&gt;File Owner&lt;/username&gt;</code><br> <code>&lt;status&gt;received&lt;/status&gt;</code><br> <code>&lt;/mySampleRecord&gt;</code><br> <code>&lt;mySampleRecord id="2"&gt;</code><br> <code>&lt;XMLcontent&gt; // Content of XML file (...) &lt;/XMLcontent&gt;</code><br> <code>&lt;XMLschema&gt; // Content of XSD file (...) &lt;/XMLschema&gt;</code><br> <code>&lt;tags&gt;doc xls mdb&lt;/tags&gt;</code><br> <code>&lt;username&gt;Admin&lt;/username&gt;</code><br> <code>&lt;status&gt;sent&lt;/status&gt;</code><br> <code>&lt;/mySampleRecord&gt;</code> </p> <p>I was also wondering if it's possible BaseX to read <code>&lt;XMLContent&gt;</code> node and then treat its content as XML enabling me to perform XQuery operations.</p> <p>Hope its understandable ;)</p> <p>Thanks for any hints and suggestions.</p>
    singulars
    1. This table or related slice is empty.
    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