Go to Post FIRST teams do not allow other FIRST teams to fail. - [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-09-2003, 16:26
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
XML And Link

Does anyone know how to use links in an XML file, or how to link XML data at all?

Let's say i got an XML file w/ the following data:
PHP Code:
<news>
 <
by>me</by>
</
news
And I want to link me to an e-mail:

PHP Code:
<a href="mailto:my-email@here.com">me</a
Does anyone know how to do link the data in <by> in the XML file?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #2   Spotlight this post!  
Unread 22-09-2003, 18:49
Trashed20's Avatar
Trashed20 Trashed20 is offline
Boom, Shawalala Boom!
#0862 (PCEP Lighting)
 
Join Date: Jan 2002
Location: Canton, MI
Posts: 528
Trashed20 will become famous soon enough
Send a message via AIM to Trashed20
well, its all in how you parse it. Usually you assign certain activities or text to each tag, for example, the by tag could have the site make a mysql query where the username is the given value, then reutrn <a href="mailto:$row[email]">$user</a>

Where are you planning on doing this and with what?
__________________
Where has all the fun gone?
  #3   Spotlight this post!  
Unread 22-09-2003, 21:06
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Trashed20
well, its all in how you parse it. Usually you assign certain activities or text to each tag, for example, the by tag could have the site make a mysql query where the username is the given value, then reutrn <a href="mailto:$row[email]">$user</a>

Where are you planning on doing this and with what?
This isn't dealing w/ PHP, I can only use ASP on my Brinkster account.

I'm planning on doing this on my news for my poetry site.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #4   Spotlight this post!  
Unread 22-09-2003, 21:27
Trashed20's Avatar
Trashed20 Trashed20 is offline
Boom, Shawalala Boom!
#0862 (PCEP Lighting)
 
Join Date: Jan 2002
Location: Canton, MI
Posts: 528
Trashed20 will become famous soon enough
Send a message via AIM to Trashed20
ok, for asp it would be the same type of thing. I'm sure it has some built in XML parsing functions since microsoft loves the stuff. You could also do an access or any other query. Or, you could add another field like

<news>
<email>hello@w00t.com</email>
<by> Whoever </by>
</news>

or

<news>
<by email="hello@w00t.com">Me</by>
</news>



It all depends on how you want the data to be delivered. I think for something like this it would be easier to have it in the XML instead of a query, but thats my preference.

Linking it is the easy part, getting something to parse it is a completly different story. Search the MSDN library and google to find an XML parser of some sort. Once you have the data into variables in your scripts, the rest is easy. My knowledge on ASP is very limited, so im just trying to point you in the general dirrection. Hope it helped.
__________________
Where has all the fun gone?
  #5   Spotlight this post!  
Unread 22-09-2003, 23:36
HFWang's Avatar
HFWang HFWang is offline
Registered User
AKA: DarkWulf
#0115
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Cupertino
Posts: 177
HFWang will become famous soon enough
Send a message via ICQ to HFWang Send a message via AIM to HFWang
in the actual xml file itself, i do not believe you can make links to other stuff.

actually, i wanted to say something about cdata tags, or something. but i so rarely use xml... so... meh.
__________________
rawr
  #6   Spotlight this post!  
Unread 23-09-2003, 08:37
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by HFWang
in the actual xml file itself, i do not believe you can make links to other stuff.

actually, i wanted to say something about cdata tags, or something. but i so rarely use xml... so... meh.
You're right, you can't link in the actual XML file, that's why I'm trying to link in my ASP page.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #7   Spotlight this post!  
Unread 23-09-2003, 18:02
HFWang's Avatar
HFWang HFWang is offline
Registered User
AKA: DarkWulf
#0115
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Cupertino
Posts: 177
HFWang will become famous soon enough
Send a message via ICQ to HFWang Send a message via AIM to HFWang
Just curious, why do people want to use XML as a datastorage mechanism?

I can understand how it is useful when moving from one format to another, but why keep it in XML? Its usually big/bulky, and its easier to just use a database, or save it in a propietary format on disk...
__________________
rawr
  #8   Spotlight this post!  
Unread 23-09-2003, 18:47
Trashed20's Avatar
Trashed20 Trashed20 is offline
Boom, Shawalala Boom!
#0862 (PCEP Lighting)
 
Join Date: Jan 2002
Location: Canton, MI
Posts: 528
Trashed20 will become famous soon enough
Send a message via AIM to Trashed20
XML is supposedly supposed to be a standard format that can be read on ALL platforms. It also is usually used when you don't want someone to have access to the database, but you want them to have some data. An example of this would be an RSS formatted XML feed from a news site. You can get the info from the site, and then do whatever what you want with it. I'm not exxactly sure what Raven is trying to do, as he is very vauge with what he want to do so its pretty hard to help him. It sounds like he want to parse an XML feed, possibly from Listen-to, but maybe not. I dunno. I hate dealing with XML, but i did make a php parser for it. Whatever.
__________________
Where has all the fun gone?
  #9   Spotlight this post!  
Unread 23-09-2003, 18:56
HFWang's Avatar
HFWang HFWang is offline
Registered User
AKA: DarkWulf
#0115
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Cupertino
Posts: 177
HFWang will become famous soon enough
Send a message via ICQ to HFWang Send a message via AIM to HFWang
PHP comes with an XML parser

though its rare to find servers with the more recent one...
__________________
rawr
  #10   Spotlight this post!  
Unread 23-09-2003, 18:59
Trashed20's Avatar
Trashed20 Trashed20 is offline
Boom, Shawalala Boom!
#0862 (PCEP Lighting)
 
Join Date: Jan 2002
Location: Canton, MI
Posts: 528
Trashed20 will become famous soon enough
Send a message via AIM to Trashed20
just because it has a parser, doesn't mean it works right out of the can. I used the functions. It helps identifying tags, but there are tons of little kinks. Plus, if you want to parse the data into variables, it becomes a little harder. Its just not fun to work with.

try looking at the finctions and getting it to work... they are wonderful.
__________________
Where has all the fun gone?
  #11   Spotlight this post!  
Unread 23-09-2003, 21:03
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Trashed20
...I'm not exxactly sure what Raven is trying to do, as he is very vauge with what he want to do so its pretty hard to help him. It sounds like he want to parse an XML feed, possibly from Listen-to, but maybe not. I dunno. I hate dealing with XML, but i did make a php parser for it. Whatever.
What I'm trying to do is just make a BASIC news system (news is in a XML file, w/ a email link, and output the data [including the link] on the page).

I've already talked to Brandon about the L-T thing, and he said he's not really gonna do a RSS system for it.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
  #12   Spotlight this post!  
Unread 24-09-2003, 01:06
HFWang's Avatar
HFWang HFWang is offline
Registered User
AKA: DarkWulf
#0115
Team Role: Webmaster
 
Join Date: Jan 2003
Location: Cupertino
Posts: 177
HFWang will become famous soon enough
Send a message via ICQ to HFWang Send a message via AIM to HFWang
Why not just use a DB?

Save the trouble of writing stuff to the filesystem!
__________________
rawr
  #13   Spotlight this post!  
Unread 24-09-2003, 09:33
Trashed20's Avatar
Trashed20 Trashed20 is offline
Boom, Shawalala Boom!
#0862 (PCEP Lighting)
 
Join Date: Jan 2002
Location: Canton, MI
Posts: 528
Trashed20 will become famous soon enough
Send a message via AIM to Trashed20
I'm goign to assume that he doesn't have database support on his brinkster account, so he wants to upload or create XML serverside so he has some sort of news system.
__________________
Where has all the fun gone?
  #14   Spotlight this post!  
Unread 26-09-2003, 17:24
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by Trashed20
I'm goign to assume that he doesn't have database support on his brinkster account, so he wants to upload or create XML serverside so he has some sort of news system.
Actually I do have Access 2000 DB support, but there's two reasons why I am not using that:

1. I hate access' db's because they use up a lot more space than needed
2. I don't have Access 2000 on my computer anymore.
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
Closed Thread


Thread Tools
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
Forum Jump


All times are GMT -5. The time now is 01:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi