The Artima Developer Community
Sponsored Link

Java Answers Forum
Java to load XML doc using DOM

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Shamir Tor

Posts: 1
Nickname: shagi
Registered: Apr, 2002

Java to load XML doc using DOM Posted: Apr 1, 2002 4:49 AM
Reply to this message Reply
Advertisement
This my XML doc contain DTD.
How can I draw 2 circles & 2 rectangles with text inside them:
<?xml version = "1.0"?>

<!DOCTYPE figure [
<!ELEMENT figure ( rectangle*, circle* )>
<!ELEMENT rectangle ( #PCDATA )>
<!ATTLIST rectangle x CDATA #REQUIRED
y CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED>
<!ELEMENT circle ( #PCDATA )>
<!ATTLIST circle x CDATA #REQUIRED
y CDATA #REQUIRED
radius CDATA #REQUIRED>
]>

<figure>
<rectangle x = "250" y = "250" width = "150" height = "100">
Hi!
</rectangle>
<rectangle x = "450" y = "100" width = "100" height = "75">
Peace!
</rectangle>

<circle x = "50" y = "100" radius = "5">
Bye!
</circle>
<circle x = "250" y = "100" radius = "8">
Rest!
</circle>
</figure>

Topic: i need practical info of the GRI & the GRI_RRP implementation plz Previous Topic   Next Topic Topic: Reading cookies from applets

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use