Welcome!

Industrial IoT Authors: William Schmarzo, Elizabeth White, Stackify Blog, Yeshim Deniz, SmartBear Blog

RSS Feed Item

[Unsafe/unwise XSD structures] Mapping XML into data structures ina prog

Hi Folks,

Is this a reasonable recommendation with regards to creating XML Schemas that will be used by data binding tools?

1. If you want your users to be able to be able to use any data binding tool then you should avoid using any of the elements, attributes, and data types listed below. 
 
2. It's likely that your users will use only certain data binding tools. Then you need to seek out their limitations and avoid using the XML Schema constructs they don't support. For example, if your users only use the Codalogic data binding tool (XML to C++) then:

Don't use these XML Schema elements:

<appinfo> 
<key>
<keyref>
<notation>
<unique>

Don't use this XML Schema attribute:

@xpath

Don't use these XML Schema datatypes:

ENTITIES
ENTITY
NOTATION

3. If you stick with an all-XML solution then you needn't worry about this issue as the XML languages handle all the XML Schema constructs.
 
/Roger 

-----Original Message-----
From: Costello, Roger L. 
Sent: Thursday, December 04, 2008 9:08 AM
To: 'xml-dev@l...'
Subject: RE:  Feasibility of "do all application coding in the XML languages"?



Rick Jelliffe wrote:

> "what kinds of XSD structures are unwise or unsafe?"

> http://www.w3.org/TR/xmlschema-patterns/
> 
> The gist is in Appendix F

Thanks Rick! 

Let me see if I understand correctly:

Want to create an XML Schema that is broadly adopted?

Some of your users will use data binding tools to map the XML Schema constructs into data structures in an imperative programming language?

Then don't use any of the XML Schema constructs listed below.

Don't use these XML Schema elements:

<all>
<anyAttribute>
<appinfo>
<attributeGroup>
<choice>
<fractionDigits>
<group>
<key>
<keyref>
<length>
<list>
<maxExclusive>
<maxInclusive>
<maxLength>
<notation>
<pattern>
<redefine>
<simpleContent>
<totalDigits>
<union>
<unique>
<whitespace> 

Don't use these XML Schema attribute:

@block
@blockDefault
@default
@final
@finalDefault
@fixed
@itemType
@memberTypes
@processContents
@substitutionGroup
@xpath

Don't use these XML Schema datatypes:

ENTITIES
ENTITY
ID
IDREF
IDREFS
NMTOKEN
NMTOKENS
NOTATION
date
decimal
duration
float
gDay
gMonth
gMonthDay
gYear
gYearMonth
hexBinary
integer
language
negativeInteger
unsignedByte
unsignedInt
unsignedLong
unsignedShort

Do I correctly understand the state of affairs with regard to using data binding tools with XML Schema?

/Roger

Read the original blog entry...

IoT & Smart Cities Stories
Bill Schmarzo, author of "Big Data: Understanding How Data Powers Big Business" and "Big Data MBA: Driving Business Strategies with Data Science," is responsible for setting the strategy and defining the Big Data service offerings and capabilities for EMC Global Services Big Data Practice. As the CTO for the Big Data Practice, he is responsible for working with organizations to help them identify where and how to start their big data journeys. He's written several white papers, is an avid blogge...
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...
If a machine can invent, does this mean the end of the patent system as we know it? The patent system, both in the US and Europe, allows companies to protect their inventions and helps foster innovation. However, Artificial Intelligence (AI) could be set to disrupt the patent system as we know it. This talk will examine how AI may change the patent landscape in the years to come. Furthermore, ways in which companies can best protect their AI related inventions will be examined from both a US and...
Enterprises have taken advantage of IoT to achieve important revenue and cost advantages. What is less apparent is how incumbent enterprises operating at scale have, following success with IoT, built analytic, operations management and software development capabilities - ranging from autonomous vehicles to manageable robotics installations. They have embraced these capabilities as if they were Silicon Valley startups.
Chris Matthieu is the President & CEO of Computes, inc. He brings 30 years of experience in development and launches of disruptive technologies to create new market opportunities as well as enhance enterprise product portfolios with emerging technologies. His most recent venture was Octoblu, a cross-protocol Internet of Things (IoT) mesh network platform, acquired by Citrix. Prior to co-founding Octoblu, Chris was founder of Nodester, an open-source Node.JS PaaS which was acquired by AppFog and ...
The deluge of IoT sensor data collected from connected devices and the powerful AI required to make that data actionable are giving rise to a hybrid ecosystem in which cloud, on-prem and edge processes become interweaved. Attendees will learn how emerging composable infrastructure solutions deliver the adaptive architecture needed to manage this new data reality. Machine learning algorithms can better anticipate data storms and automate resources to support surges, including fully scalable GPU-c...
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.
Whenever a new technology hits the high points of hype, everyone starts talking about it like it will solve all their business problems. Blockchain is one of those technologies. According to Gartner's latest report on the hype cycle of emerging technologies, blockchain has just passed the peak of their hype cycle curve. If you read the news articles about it, one would think it has taken over the technology world. No disruptive technology is without its challenges and potential impediments t...