Feeds

Build business-ready XML Schema with JDeveloper

Communicate clearly

  • alert
  • submit to reddit

The Power of One Brief: Top reasons to choose HP BladeSystem

page break

A schema component may also be added by selecting a node in Design View and selecting a component in the Component Palette. A component may also be added from the Component Palette to a Design view component by selecting the component in the Component Palette and dragging the component to the Design view component and dropping the component. An element will be added to <schema> element. Set element name to catalog, and element type to catalogType in the Property Inspector.

Element name and type may also be specified by right-clicking on the element node and selecting Properties. In the element properties window specify element name and, in Advanced Properties, specify element type. In Advanced Properties abstract, block, default, final, fixed, id, nillable, and substitutionGroup values may also be specified. To delete exampleElement element, right-click on exampleElement node and select Delete. Next, add a complextType component to <schema> node from the Component Palette.

Set complexType name to catalogType. Add a sequence component to catalogType and add an element to the sequence. Set attribute ref to journal in the element node. Attribute name should not be set for an element if ref attribute is set. Specifying elements using the ref attribute has the advantage that XML documents may be instantiated from an XML Schema fragment.

When elements in a complexType component are specified using the ref attribute a corresponding global elements are also specified. When instantiating an XML document from the XML Schema any of the global elements may be selected as the root element. Also, set attribute minOccurs to 0, and maxOccurs to unbounded in the journal node. Next, add journal element to schema node.

Now, add a complexType component journalType to schema node. Add a sequence component to the journalType node and add an article element to the sequence. In the Property Inspector, set attribute ref to article, minOccurs to 0 and maxOccurs to unbounded.

Adding an xsd:element XML Schema Component to xsd:schema Element

When that's done, add attributes title, publisher, and edition to journalType. To add an attribute, select journalType node and select attribute in the component palette. Set attribute name to title, and type to xsd:string. Similarly, add attributes publisher and edition to journalType.

Add article element to schema node and set element type to articleType. Having added an element of type articleType, add a complexType component articleType. Next, add a sequence to articleType, add an element node to the sequence node, set element name to title, and type to xsd:string. Similarly, add element author of type xsd:string to the sequence.

Seven Steps to Software Security

More from The Register

next story
KDE releases ice-cream coloured Plasma 5 just in time for summer
Melty but refreshing - popular rival to Mint's Cinnamon's still a work in progress
NO MORE ALL CAPS and other pleasures of Visual Studio 14
Unpicking a packed preview that breaks down ASP.NET
Secure microkernel that uses maths to be 'bug free' goes open source
Hacker-repelling, drone-protecting code will soon be yours to tweak as you see fit
Cheer up, Nokia fans. It can start making mobes again in 18 months
The real winner of the Nokia sale is *drumroll* ... Nokia
Put down that Oracle database patch: It could cost $23,000 per CPU
On-by-default INMEMORY tech a boon for developers ... as long as they can afford it
Another day, another Firefox: Version 31 is upon us ALREADY
Web devs, Mozilla really wants you to like this one
Google shows off new Chrome OS look
Athena springs full-grown from Chromium project's head
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
How modern custom applications can spur business growth
Learn how to create, deploy and manage custom applications without consuming or expanding the need for scarce, expensive IT resources.
Securing Web Applications Made Simple and Scalable
Learn how automated security testing can provide a simple and scalable way to protect your web applications.