File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
Want to write schema and xml in file
Joined: May 17, 2005
Jan 28, 2010 01:48:45
I can able to write DTD and XML in one file. Please find the below example.
<!DOCTYPE note [
><!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
<body>Don't forget me this weekend</body>
Now my doubt is can we write Schema and XML also in the same fashion without referring xsd file at the top.
If Yes can any one provide one example.
Thanks in Advance
Thanks and Regards,
Joined: Oct 14, 2005
Jan 28, 2010 09:24:27
I agree. Here's the link:
subject: Want to write schema and xml in file
DTD and XML
CDATA and PCDATA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015