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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-20-2019, 01:30 PM   #1
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
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?
__________________

Custom Coding | Videochat Solutions | Age Verification | IT Help & Support
www.2Much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2019, 01:58 PM   #2
machinegunkelly
Confirmed User
 
machinegunkelly's Avatar
 
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.
machinegunkelly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2019, 02:33 PM   #3
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384
Indeed. The browser shows it like that.
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-20-2019, 11:25 PM   #4
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 49,249
Quote:
Originally Posted by machinegunkelly View Post
Are you sure you're seeing <something> and not <something/> as a self closing tag ?
XML Spec converts <something></something> to <something/>
Yes.

Quote:
Originally Posted by machinegunkelly View Post
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 )
Thanks for the suggestion. I tried a space, but it did not work.


Quote:
Originally Posted by CyberSEO View Post
Indeed. The browser shows it like that.
Do you mean it is SUPPOSED to show it like that? It is normal?
__________________

Custom Coding | Videochat Solutions | Age Verification | IT Help & Support
www.2Much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2019, 01:05 AM   #5
myleene
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:
Is it illegal to have no character between arguments in .xml?
It's not illegal. But your application may not handle that correctly.
myleene is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2019, 02:38 AM   #6
PornDiscounts-V
Confirmed User
 
PornDiscounts-V's Avatar
 
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.
__________________
Blog Posts - Contextual Links - Hardlinks on 600+ Blog Network
* Handwritten * 180 C Class IPs * Permanent! * Many Niches! * Bulk Discounts! GFYPosts /at/ J2Media.net
PornDiscounts-V is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2019, 02:45 AM   #7
zerovic
Confirmed User
 
zerovic's Avatar
 
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
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-21-2019, 04:31 AM   #8
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
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.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2019, 07:08 AM   #9
zerovic
Confirmed User
 
zerovic's Avatar
 
Industry Role:
Join Date: Apr 2010
Posts: 1,106
Quote:
Originally Posted by k0nr4d View Post
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.
Exactly.
zerovic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
browser, .xml, character, xml, file, closer, insert, arguments, correctly, illegal, reads, parameter, stuck, gurus, plain, application, question, day, notepad, editor, check



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.