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

How to decrypt password on hibernate
How to create an unique ID in java
How would I use Java reflection in this case?
Average of a certain part of an array
Schedule jasper report using quartz scheduler
How to split the character list when certain character is reached and store it as a string in java
Sping-Shiro Integration — HTML page
Extract contents of Zip file downloaded using a HTTP GET request
Unexpected response code 429 when using Volley in Android?
Displaying multiple languages in single xsl file
NumberFormatException on parsing JTextField input
Byte[] sent across SocketChannel but not received
read from file as parallel arrays in java
why different key with duplicated value disappear when transfer hashmap to treemap
Check if two ArrayLists accept the same class (same generic)
Is interfaces just compile time dependency?

Categories

HOME
deezer
kde
reserved
mfc
cvs
sqlite-net-extensions
setup-deployment
malloc
c#-2.0
in-app-purchase
portia
android-youtube-api
cross-validation
modx-revolution
export-to-csv
gz
windows-phone-7
messages
iron-router
netflix
ghc
after-effects
graphlab
facebook-page
pythonanywhere
jqwidget
google-pagespeed
jtextfield
grails3
conemu
amazonsellercentral
sylius
language-agnostic
jndi
trading
firebase-crash-reporting
facet
selectedindexchanged
kannel
buck
file-rename
bosh
usbserial
sequential
picasso
scaffold
web-mining
hot-module-replacement
multilingual
theano.scan
hue
lumberjack
user-controls
arena-simulation
node-sass
wptoolkit
scorm
wso2carbon
dotcover
komodoedit
theming
typescript1.8
fancybox-2
media-player
sqlbulkcopy
iso8601
visual-c++-2008
static-ip-address
google-feed-api
sts-springsourcetoolsuite
dstu2-fhir
login-control
py2app
django-debug-toolbar
jwplayer7
holder.js
qcustomplot
master-slave
fadeout
design-by-contract
ptrace
tform
independentsoft
maven-tomcat-plugin
collapse
cyclomatic-complexity
mutation-observers
unity5.2.3
notify
c++03
clicktag
codeigniter-routing
googlemock
document-classification
bitcoinj
dml
valueconverter
comexception
industrial
prettify
c18
ms-project-server-2010
runtime.exec
listings
quartz-graphics
ruby-datamapper
bulkloader
qt-faststart
mylyn
spring-validator
ocunit
pvrtc
trusted
quickdialog
word-processor
labwindows
bubble-chart
custom-backend
mercurial-server
gnustep
f#-powerpack
lpeg
visitor-statistic
dmx512
jquery-ui-droppable
ti-dsp
zend-decorators
sector
spec#

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App