Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Type definition in XML page with XML Schema

Reply
Thread Tools

Type definition in XML page with XML Schema

 
 
chobin
Guest
Posts: n/a
 
      12-10-2003
Hi all.
I've a terrible question.
I've to build one XML page (based on a xml schema) that implements a
dynamic database. In particular, I would declare something like this:

<?xml version="1.0" encoding="UTF-8"?>
<virtuose xmlns="http://www.virtuose.it/ns/virtuose"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.virtuose.it/ns/virtuose
F:\Tesi\virtuose_1.1.xsd">

<conferenza allowedMessagesTypes="t1" cid="c1" system="true">
<nome>tipimsg</nome>
<hook></hook>
<messages>
<message mid="t1" uid="u1" type="t1"></message>
<message mid="t2" uid="u1" type="t1">
<t2:schema>
<t2:element name="utente">
<t2:complexType>
<t2:sequence>
<t2:element name="autenticazione">
<t2:complexType>
<t2:sequence>
<t2:element name="login" type="string"/>
<t2:element name="password" type="string"/>
<t2:element name="configurazione" type="stringa"/>
</t2:sequence>
</t2:complexType>
</t2:element>
<t2:element name="anagrafica">
<t2:complexType>
<t2:sequence>
<t2:element name="nome" type="string"/>
<t2:element name="cognome" type="string"/>
<t2:element name="codfisc" type="string"/>
<t2:element name="via" type="string"/>
<t2:element name="comune" type="string"/>
<t2:element name="provincia" type="string"/>
<t2:element name="cap" type="string"/>
<t2:element name="telefono" type="string"/>
<t2:element name="fax" type="string"/>
<t2:element name="cellulare" type="string"/>
<t2:element name="email" type="string"/>
</t2:sequence>
</t2:complexType>
</t2:element>
<t2:element name="profili">
<t2:attribute name="pids" type="IDREF" use="required"/>
</t2:element>
</t2:sequence>
</t2:complexType>
</t2:element>
</t2:schema>
</message>
</messages>
</conferenza>
<conferenza allowedMessagesTypes="t2" cid="c2" system="true">
<nome>utenti</nome>
<hook></hook>
<messages>
<message mid="u1" uid="u1" type="t2">
<t2:utente>
<t2:login>ciccio</t2:login>
<t2rofili></t2rofili>
</t2:utente>
</message>
</messages>
</conferenza>
</virtuose>


So, I've to declare on section <message mid="t2" uid="u1" type="t1">
the type of section

<message mid="u1" uid="u1" type="t2">
<t2:utente>
<t2:login>ciccio</t2:login>
<t2rofili></t2rofili>
</t2:utente>
</message>

but I haven't found in witch way I could include in a XML page a type
declaration made with schema.

I hope my message is not too difficult to read...
I'm sorry but I'm an italian student.

Thank you very much
Cheers

Chobin
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time template list definition / Run-time variable type definition Pierre Yves C++ 2 01-10-2008 02:52 PM
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Schema - Definition for checking part of schema ? Abhinav XML 6 08-16-2004 06:24 PM



Advertisments