java


How to print XML Schema


i would like to ask, how to print a xml schema. I creating my xsd schema on runtime and for testing i would like to see the generated xml schema. At the moment i working with org.apache.ws.commons.schema.XmlSchema and i doesnt find anything how can print the xml schema.
Did anyone know how to print out (System.out) my XmlSchema??
Try :
XMLOutputter outputter = new XMLOutputter();
try {
String outputString = outputter.outputString(loXMLDoc);
}
loXMLDoc is Dom for XML schema
If you are using XmlSchema 2.0
XmlSchema schema = ...
...
schema.write(System.out)
If you are using XmlSchema 1.x
XmlSchema schema = ...
...
schema.write(System.out, null)
Also, if you want to write to a string
StringWriter schemaWriter = new StringWriter();
schema.write(schemaWriter);
String schemaString = schemaWriter.toString();

Related Links

How to select first item in JPopupMenu?
How can a JComponent notified about the closed event of it's parent J(Internal)Frame?
Test for invertability using Jama.Matrix
How to simplify a null-safe compareTo() implementation?
How can I provide a custom log4j.xml for different ant tasks?
Help with annotations
capturing global keypresses in Java
Is there a way to the hide win32 launch console from a Java program (if possible without JNI)
In a Java thread running as root, how can we apply Unix rights specific to a logged-in user?
Best way to automagically migrate tests from JUnit 3 to JUnit 4?
Deserializing a legacy XML structure in xstream
Is there a SoftHashMap in Java?
How to find two adjacent repeating digits and replace them with a single digit in Java?
Java RS-232 Communication on Windows
How do I turn a String into a InputStreamReader in java?
How to get data out of network packet data in Java

Categories

HOME
sendgrid
minimum-spanning-tree
drivers
google-play
office365api
relay
rsyslog
adb
google-oauth
react-redux
infragistics
fsm
webpack-2
installshield
convolution
mouse
amazon-cloudformation
dacpac
node-pdfkit
modx-revolution
carthage
workload-scheduler
highlight.js
openedx
predix
intentfilter
mmap
captiveportal
smb
fish
dynamic-featured-image
selectedindexchanged
user-interaction
brunch
publish
libssl
ecto
uisplitview
cloud-code
retina-display
occlusion
ssjs
hue
document.write
greenrobot-eventbus
preconditions
password-encryption
qcombobox
errordocument
blogengine.net
gabor-filter
nativeapplication
carrot
slickedit
zendesk-app
mcafee
gnome-shell-extensions
vmware-tools
probability-density
ctest
flash-cs5
simplewebrtc
react-native-listview
qgraphicsview
make-install
revolution-r
freedesktop.org
sdhc
cyclomatic-complexity
jmeter-maven-plugin
mutation-observers
angular-leaflet-directive
dundas
fscommand
google-style-guide
applescript-objc
websocket4net
aapt
rebol3
inbox
dataservice
jplaton
android-screen-support
html-editor
delphi-6
trusted
cisco-jtapi
armcc
appconkit
ohm
oncheckedchanged
android-sdk-2.1
asp.net-profiles
database-management
firefox4
backcolor
boost-smart-ptr
simpletest
yagni
nerddinner
geneva-server
document-conversion

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