Java and parsing xsd to build a user interface

dutchboy

Usenet Archive
Joined
Jan 7, 2005
Messages
1
Reaction score
0
Hi all,

I see that some websites have small images leading the URL. How do you code that? I have looked at the page source, but cannot find it.

TiA,
 

TIANA

Usenet Archive
Joined
Dec 7, 2004
Messages
4
Reaction score
0
Hi guys,
unfortunately i'm a newbee to java and xml and xsd...
part of my xsd looks like this:
<xs:simpleType name="val">
<xs:restriction base="xs:string">
<xs:enumeration value="aa"></xs:enumeration>
<xs:enumeration value="bb"></xs:enumeration>
<xs:enumeration value="cc"></xs:enumeration>
</xs:restriction>
</xs:simpleType>

could anyone give me a hint, how to parse my xsd in java to fill a combobox out of the values in the enumeration tags? I guess I have to work around with jdom?!? I'm working with java 1.4.1.. would be glad for any help or hint thanks in advance tiana
 

Tjerk Wolterink

Usenet Archive
Joined
Sep 18, 2004
Messages
218
Reaction score
0
TIANA said:
Hi guys,
unfortunately i'm a newbee to java and xml and xsd...
part of my xsd looks like this:
<xs:simpleType name="val">
<xs:restriction base="xs:string">
<xs:enumeration value="aa"></xs:enumeration>
<xs:enumeration value="bb"></xs:enumeration>
<xs:enumeration value="cc"></xs:enumeration>
</xs:restriction>
</xs:simpleType>

could anyone give me a hint, how to parse my xsd in java to fill a combobox out of the values in the enumeration tags? I guess I have to work around with jdom?!? I'm working with java 1.4.1.. would be glad for any help or hint thanks in advance tiana

Your right, you have to use some kind of xml reader, that can be a dom or sax, just use what you think is suitable for the situation. If you only have to read the values you can use SAX, but i find sax somewhat strange to use, jdom is more logical i think; only it consumes more memmory and is slower.

If you dont know how to use JDom just read the api's.
 

www.1-script.com

Usenet Archive
Joined
Jan 5, 2005
Messages
6
Reaction score
0
wrote:


I see that some websites have small images leading the URL. How do you code that? I have looked at the page source, but cannot find it.


Place an icon file called "favicon.ico" into the root directory of your site. Then add <link rel="shortcut icon" href="/favicon.ico"> in the head section of your HTML files.

Good luck!

Sincerely,
Dmitri
http://www.1-script.com/1_search/
Get search engine for your site
http://www.1-script.com/install/
Check out my CGI scripts installation offer

##-----------------------------------------------##
Article posted with Web Developer's USENET Archive
http://www.1-script.com/forums
no-spam read and post WWW interface to your favorite newsgroup - comp.infosystems.www.authoring.html - 7531 messages and counting! ##-----------------------------------------------##
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top