Schema of xml

Bill Cunningham

Usenet Archive
Joined
Jun 21, 2003
Messages
1,946
Reaction score
0
I know xml stores and transmits data. But I wrote a short piece of code that the browser complained about.

<?xml version="1.0"?>

<gov>judicial</gov>
<j> sandra o'conner </j>

It didn't know what the tags meant. the xml syntax looks good to me. How do I provide the document with the meaning of the tags? CCS, I don't know how to start there. Xpath. I've heard of.

Bill
 

Johannes Koch

Usenet Archive
Joined
Nov 14, 2000
Messages
801
Reaction score
0
Bill said:
I know xml stores and transmits data. But I wrote a short piece of code that the browser complained about.

<?xml version="1.0"?>

<gov>judicial</gov>
<j> sandra o'conner </j>

It's not well-formed. YOu must have exactly one root element.
 

Patrick TJ McPhee

Usenet Archive
Joined
Apr 2, 2000
Messages
269
Reaction score
0
% <?xml version="1.0"?>
%
% <gov>judicial</gov>
% <j> sandra o'conner </j>

% It didn't know what the tags meant. the xml syntax looks good to me.

It's not good.

% How do
% I provide the document with the meaning of the tags? CCS, I don't know how % to start there. Xpath. I've heard of.

Once you sort out the format of the data, you need to write a style sheet if you want it to be displayed reasonably. If the data is suitable, you could use CSS for this, otherwise you need to use XSLT to convert the data into either html or some other XML format which is suitable for formatting using CSS.

You get started by finding a tutorial somewhere and reading it.
 

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,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top