XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 4th, 2002, 01:12 PM
hottemp hottemp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 2 hottemp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problem with parsing xml

ok, i've got a small problem with my cms. i'm generating code out off a database (last x news/articles). following the xml-output. the problem is, that as soon as i'll open the file in ie or ns, the browser tells me that the file can't be parsed because of some missing data. but where's my mistake?

Code:
<?xml version="1.0"?><rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://my.netscape.com/rdf/simple/0.9/">

<channel>
	<title>Contentpapst - Webnews</title>
	<link>URL</link>
	<description>...</description>
	<language>de</language>
	<copyright>Copyright 2002, sandoba.de medien agentur</copyright>
	<email>contact@sandoba.de</email>
</channel>

<item>
	<title>es ist bald wieder weihnachten!</title>
	<link>URL</link>
	<description>...</description>
</item>

</rdf:RDF>


Thank you for your help!!!

Reply With Quote
  #2  
Old August 5th, 2002, 11:09 AM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
have you tried including a DTD or Schema??

Reply With Quote
  #3  
Old August 5th, 2002, 11:57 AM
hottemp hottemp is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 2 hottemp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sorry, don't know what you mean with dtd. can you please explain it short'n'simple?

Reply With Quote
  #4  
Old August 5th, 2002, 09:44 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Document Type Definition...

Basically, it defines the structure of your XML document. It tells the XML parser exactly which elements and attributes are allowed in your document and in what order...

Here's an introduction:
http://www.devshed.com/Server_Side/...sign/page1.html

Schemas accomplish the same task, but are slightly friendlier.

Here's an introduction on that:
http://www.devshed.com/Server_Side/...hema/page1.html


Check it out, if it doesn't solve your problem, it's still important to know.



===============
justin->dago
===============

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > problem with parsing xml


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway