Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Schema of xml

Reply
Thread Tools

Schema of xml

 
 
Bill Cunningham
Guest
Posts: n/a
 
      01-22-2004
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





-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
 
 
 
Johannes Koch
Guest
Posts: n/a
 
      01-22-2004
Bill Cunningham wrote:
> 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.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
 
Reply With Quote
 
 
 
 
Patrick TJ McPhee
Guest
Posts: n/a
 
      01-22-2004
In article <400f4f46$>,
Bill Cunningham <> wrote:

% <?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.
--

Patrick TJ McPhee
East York Canada

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema huntingseasonson@gmail.com Perl Misc 5 11-29-2006 12:37 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
XML Schema to XML Schema Conversion Hari Om XML 1 03-02-2004 09:04 PM
XML schema regular expressions question and recommended XML Schema book Fred Smith XML 1 02-05-2004 11:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57