LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2011, 04:46 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
Is this a valid xml file? Seems a block is not properly terminated.


Kernel 2.6.21.5, slackware 12.0.

Hi:

Would you have a look at the attached file? I have inserted blank lines to separate it into blocks (call them entries if you like) according to my criterium. The "commentaries" are mine. Do not be afraid. They only indicate the beginning of each block and point out the position of the error I think there is in this file.

If you think the this post to be rather theoretical, I depend on the syntactic correction of the text in the file to be able to run certain appl at a mouse click. Any hint will be welcome.
Attached Files
File Type: txt mimeTypes.rdf.txt (1.4 KB, 11 views)

Last edited by stf92; 06-12-2011 at 04:50 PM.
 
Old 06-12-2011, 06:05 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

do you mean that 'BLOCK 1'
Code:
#BLOCK 1       
  <RDF:Description RDF:about="urn:mimetype:externalApplication:application/pdf"
                   NC:prettyName="kpdf"
                   NC:path="/usr/bin/kpdf" /> 
#Where is the </RDF:Description> line closing this block?
is missing an end-tag? Because it is not. 'BLOCK 1' is a so called empty-element tag. Notice the bold, red part.
Read more about the XML format:
http://en.wikipedia.org/wiki/XML
 
Old 06-12-2011, 06:26 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
Thanks crts, for having explained the point to me. And thanks for the link. I suppose you would not tell me the origin of your pseudonym, would you?
 
Old 06-12-2011, 06:47 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by stf92 View Post
Thanks crts, for having explained the point to me. And thanks for the link.
You're welcome.
Quote:
I suppose you would not tell me the origin of your pseudonym, would you?
Well, I can tell you that it has nothing to with Cathode Ray TubeS - as one member suspected . It's rather random.
 
Old 06-12-2011, 07:19 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
At the present time young people would never make a question like that, as they've probably never seen one of those old artifacts. Yeah, the word CRT brings echoes of a past era, that of the pioneers.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP function to check if string is valid xml? j-ray Programming 6 12-19-2009 07:46 AM
fd0 not a valid block device jdtiede Linux - Software 5 04-09-2004 07:25 AM
CDROM: not a valid block device? Linux~Powered Linux - Software 5 01-26-2004 12:50 PM
not a valid block device..... where do I find it? rkhartley Linux - Newbie 6 12-11-2003 10:02 PM
cdrom not a valid block device moon69 Linux - General 2 01-18-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration