473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Type definition in XML page with XML Schema

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"
xmlns:xsi="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>
<t2:profili></t2:profili>
</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>
<t2:profili></t2:profili>
</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
Jul 20 '05 #1
0 1477

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when...
0
by: Binesh Bannerjee | last post by:
Hi... I've asked before about making an element in a schema be able to use xhtml... I've attached my schema definition below... What I'm curious about, is whether there's a means to add a length...
1
by: Andres | last post by:
Hi every body, I am having a problem and I need your help, please I am using a XSD file; it has several nodes that have the following definition: <element name="guarantyPercent" type="decimal"...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
2
by: bjhartin | last post by:
Hello all, I am having a problem with extending complex types. I have a simple base schema (FooBar.xsd) which defines XML documents of the following form: <Foo FooAttribute1="aaa"> <Bar...
0
by: peterpeter | last post by:
Hi. There is a XML schema problem that I have with key/keyref: I have a complex type "AExtended" which inherits from a base type "ABase". Both are allowed to be instantiated under the "Root"...
6
by: RickH | last post by:
Hello, I would like to create a user XSD data type that inherits from the w3 standard data type called ID to make sure a certain repeated element always contains distinct values. The problem is...
2
by: olympus_mons | last post by:
Hi, I'm just discovering the power of xsd.exe, so maybe I'm doing something wrong. schema files describing requests and responses. So there is an extra xsd file for each response and each...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.