Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » XML Generation and element hiding
XML Generation and element hiding [message #597987] Fri, 21 April 2006 09:49
Guillaume Windels is currently offline Guillaume WindelsFriend
Messages: 29
Registered: July 2009
Junior Member

I am looking for a way to simplify this bit of XML Schema. Namely, I
have an element which is not useful ("XXX"), but required ID-wise. The
purpose of this is to generate some XML.

<xsd:complexType name="listeningDataType" ecore:name="listeningData">
<xsd:element minOccurs="1" maxOccurs="unbounded" name="datas"
<!-- Couple of attributes there -->

<xsd:complexType name="datasType" ecore:name="datas">
<xsd:element minOccurs="1" maxOccurs="1" name="dataId"
type="xsd:IDREF" ecore:reference="dataidtype"/>

<xsd:complexType name="outputType" ecore:name="output">
<xsd:element minOccurs="0" maxOccurs="unbounded" name="XXX"
<!-- Couple of attributes there -->

<xsd:complexType name="dataidtype" ecore:name="dataId">
<xsd:element name="dataId" type="xsd:ID"/>

Using this schema, I end up with the following generated XML code (via

<output [.. some attributes...]>
<listeningdata [... some attributes ...]>

As you can guess, I would like to get rid of the XML element "XXX", but
still would like to be able to include 'dataidtype' in 'output'.
Eventually, is there a way not to make it appear during the XML generation?
Any ideas?
Previous Topic:Substitution Group
Next Topic:Inheritance Problem
Goto Forum:

Current Time: Sat Jan 23 01:39:08 GMT 2021

Powered by FUDForum. Page generated in 0.01740 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top