|
-
Jul 16th, 2006, 01:35 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] [XML] Using < and > in XML tags?
Is it possible to use < and > in XML tags?
Like this: <tag><blah></tag>, so that when I read 'tag', the value of '<blah>' will be returned.
Thanks.
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
Jul 16th, 2006, 01:46 PM
#2
Re: [XML] Using < and > in XML tags?
Yes but change <blah> to <blah>
-
Jul 16th, 2006, 02:05 PM
#3
Re: [XML] Using < and > in XML tags?
Not quite like that.... you have to encode it first.... so that the < becomes < and the > becomes > ... once you have that.... you then need to encode the & so that XML parsers will validate it properly... so < and > become, &lt; and &gt; ..... then you can stick your data into the tags.... nutters I know, but that's the short of it.
-tg
-
Jul 16th, 2006, 02:15 PM
#4
Thread Starter
Fanatic Member
Re: [XML] Using < and > in XML tags?
Can you give me a push in the right direction on 'encoding characters'?
As my knowledge in XML is not quite up to it.
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
Jul 16th, 2006, 03:29 PM
#5
Re: [XML] Using < and > in XML tags?
They just did. To XML-encode a string, just change every < to < and every & to &. You can also change > to >, but that's not actually necessary.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 16th, 2006, 03:34 PM
#6
Thread Starter
Fanatic Member
Re: [XML] Using < and > in XML tags?
Ah, that's easy. I thought it required some sort of coding, which confused me extra as I was always thaught that XML is not for actual programming, only for file structuring. 
Thanks
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|