![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 49,249
|
Question for XML Gurus
Help! I'm stuck.
I have an xml file that contains a parameter that looks like this <something></something> I see this plain as day in the notepad editor. But my application isn't working and when I check the .xml file in a browser, I see only this <something> with no closer. </something> portion is missing. BUT, if I insert any character between them like this: <something>1</something> then the browser reads it correctly. Is it illegal to have no character between arguments in .xml?
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jun 2003
Posts: 3,284
|
Are you sure you're seeing <something> and not <something/> as a self closing tag ?
XML Spec converts <something></something> to <something/> A simple space in the element should get you around this error. ( I can't be much help after this, just something I've run into before )
__________________
dead. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So fuckin' bored
Industry Role:
Join Date: Jun 2003
Posts: 32,384
|
Indeed. The browser shows it like that.
__________________
Obey the Cowgod |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | ||
Videochat Solutions
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 49,249
|
Quote:
Quote:
Do you mean it is SUPPOSED to show it like that? It is normal?
__________________
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Oct 2013
Location: Canada
Posts: 893
|
XML files can contain elements or attributes.
Which kind of item is it? I believe this may help: https://stackoverflow.com/questions/...l-xml-elements Your application may actually handle null values differently. If that doesn't work, I would refer to the docs of the application to confirm how it handles "empty" or "null" values. It's unclear which one you wish to handle in your first post. Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Oct 2003
Location: L.A.
Posts: 5,744
|
Might depend on your parser... Is it asking for something to be in between and a \s (whitespace character) isn't good enough to return true?
Might be that it is asking, true or false? and only "something" returns true.
__________________
![]() ![]() * Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Apr 2010
Posts: 1,106
|
Hi,
there's not much I can do without seeing the actual xml.. can you share the xml we are talking about? Cheers, z |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
It's the actual contents of the XML that matter, not what your browser displays. What you see under "view source" when viewing xml in browser is what really matters.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Apr 2010
Posts: 1,106
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |