java


can xsd definition of type reference the xml file itself?


I am trying to describe a set of java classes using XML. I need to have an xsd document as robost as possible, so it saves me headaches later on.
Suppose I have a class node inside which I have a set or properties. Each property have a type attribute, the value of this attribute could be a class name in the xml document, or a set of primitive names like "integer" "float" etc.
Can this scenario be defined in a xsd document?
thanks a bunch.
There are a lot of Java->XML mapping solutions.
Without knowing more about your specific needs, I would point you at JAXB, which is part of the JDK.
It can be achieved with ref/refid and key in the xsd.

Related Links

What is the minimal configuration for REST-fully annotated service built on Spring 3 (m3)?
Java Socket Programming - Address already in use (errno=98)
new Date(“05-MAY-09 03.55.50”) is any thing wrong with this ? i am getting illegalArgumentException
Why does PrintStream.close() end up getting called twice?
Java ArrayList and HashMap on-the-fly
Why do we have to increase the Java Heap?
Any good Spring threading with a TaskExecutor examples?
What is wrong with the short circuit logic in this Java code?
Java generics for policy as alternative to passing policy in constructor
Java array: direct access to component in array
How to use JPL (bidirectional Java/Prolog interface) on windows?
Java FileHandler disable log rotation
Tomcat does not recognize my context
NetBeans gui design tool (matisse) seems to use Java 5 instead of Java 6
Make it pretty: processing an array concurrently
GWT vs Flex vs? [closed]

Categories

HOME
mfc
dot
objectgears
youtube-dl
routes
gps
angular-ui-bootstrap
flyway4
node-notifier
adfs
ups
msp430
quartz-scheduler
saxon
aurigma
interop
samoa
lldb
cx-freeze
hammerspoon
vlsi
cas
apache-commons-io
user-interaction
msys2
nameservers
phonegap
google-cloud-endpoints-v2
catel
webtest
vsts-build-task
host
adobe-premiere
qwerty
swisscomdev
libraries
vapor
leading-zero
temporary-files
mapzen
estimote
qcombobox
btrace
flickr-api
rails-routing
hendrix
idisposable
libusb-win32
r-forge
memory-alignment
account-kit
medium.com
static-ip-address
google-feed-api
instant
infix-notation
savon
url-masking
adxstudio-portals
measures
asp.net-4.5
transmitfile
storekit
connect-by
prettytensor
apachebench
suffix-tree
design-by-contract
oauth2client
collapse
tmuxinator
computer-algebra-systems
muse
twirl
bigbluebutton
gui-test-framework
websocket4net
rdl
xojo
castle
openexr
fluentautomation
datagridviewcolumn
dataservice
rabl
pushbackinputstream
factory-method
libstdc++
chrono
qtkit
removeclass
custom-backend
pydot
zpt
gcj
cinema-4d
calling-convention
android-sdk-2.1
lang
icanhaz.js
perfect-hash
fixed-width
ubuntu-9.04
windows-live-messenger
caching-application-block

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App