Bah, the people who came up with this software should just die.

notfred

Lifer
Feb 12, 2001
38,241
4
0
I'm using a web application that is supposed to return a buch of data. The applciation gives me the option of getting data in HTML format, or XML format. The people who think they're giving me XML data arefvcking morons.

Screenshot of supposed "XML" output.

Sample of the source of the above document:

<html>
<head>
<title>BASIS+ Tools: Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

Project.Task.Subtask %CA%<br><br>

&amp;lt?xml version="1.0" encoding="UTF-8"?&amp;gt<br>
&amp;ltroot xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:eek:d="urn:schemas-microsoft-com:eek:fficedata"&amp;gt<br>
&amp;ltxsd:schema&amp;gt<br>
&amp;ltxsd:element name="dataroot"&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:choice maxOccurs="unbounded"&amp;gt<br>
&amp;ltxsd:element ref="Basis"/&amp;gt<br>
&amp;lt/xsd:choice&amp;gt<br>
&amp;lt/xsd:complexType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Basis"&amp;gt<br>
&amp;ltxsd:annotation&amp;gt<br>
&amp;ltxsd:appinfo/&amp;gt<br>
&amp;lt/xsd:annotation&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:sequence&amp;gt<br>
&amp;ltxsd:element name="PTS" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="64"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Project" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="11"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Task" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="32"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Title" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="255"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>

That's not XML! It's not even close! It's HTML that when rendered, kind of looks like XML. What fvcking good is that? I hate people! :|
 

Orsorum

Lifer
Dec 26, 2001
27,631
5
81
lol I was waiting for a copy and paste of gentobu's code from the programming challenge thread.
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Had a manager once who was completly sold on XML, even though he had absolutely no clue what it was. He suggested we consider porting our C/C++ project over to XML, because it was going to be really hot. Had to explain to him how XML isn't a programming language.

He was a fscking idiot, but was great for buzzword-bingo.
 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
Some people try to use XML too much. I've had to do extensive work on a site written entirely with XSLT sheets which takes in XML and spits out the HTML. It takes about 5X as long to do anything with it as it would if it had been written initially in ASP. The guy who wrote it regrets having done it all with XSLT.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
I think the promulgators of the XML movement in early 2000 (or was it later?) are largely to blame for such egregious misuse. The idea that XML was the panacean answer to all things was so heavily pushed that everyone tried to use it for all things. People are still doing it today, and the result is a bunch of horribly amorphous XML documents that are more trouble to work with than other structured formats.

Anyway, I'd roll out the HTML DOM reader on that nonsense.
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
i'd be intrested to see whats below what you poasted, as there is alot. That looks like legitimate XML to me, it just has the schema/DTD built in - nothing wrong with that, the data is probably just below that.

edit: did read well enough before, didnt notice it was html rendered as XML :D just looked at the screenshot
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Originally posted by: Kntx
That's a xsd file. Perfectly valid xml.

You're right. I didn't look at his screenshot the first time, because I assumed the post represented the actual data.
 

tikwanleap

Senior member
Oct 9, 1999
922
0
0
Originally posted by: notfred
I'm using a web application that is supposed to return a buch of data. The applciation gives me the option of getting data in HTML format, or XML format. The people who think they're giving me XML data arefvcking morons.

Screenshot of supposed "XML" output.

Sample of the source of the above document:

<html>
<head>
<title>BASIS+ Tools: Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

Project.Task.Subtask %CA%<br><br>

&amp;lt?xml version="1.0" encoding="UTF-8"?&amp;gt<br>
&amp;ltroot xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:eek:d="urn:schemas-microsoft-com:eek:fficedata"&amp;gt<br>
&amp;ltxsd:schema&amp;gt<br>
&amp;ltxsd:element name="dataroot"&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:choice maxOccurs="unbounded"&amp;gt<br>
&amp;ltxsd:element ref="Basis"/&amp;gt<br>
&amp;lt/xsd:choice&amp;gt<br>
&amp;lt/xsd:complexType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Basis"&amp;gt<br>
&amp;ltxsd:annotation&amp;gt<br>
&amp;ltxsd:appinfo/&amp;gt<br>
&amp;lt/xsd:annotation&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:sequence&amp;gt<br>
&amp;ltxsd:element name="PTS" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="64"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Project" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="11"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Task" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="32"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Title" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="255"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>

That's not XML! It's not even close! It's HTML that when rendered, kind of looks like XML. What fvcking good is that? I hate people! :|


Anyone else getting a sense of deja vu? I thought I saw this exact same post before like last year...
 

Zenmervolt

Elite member
Oct 22, 2000
24,514
44
91
Originally posted by: tikwanleap
Anyone else getting a sense of deja vu? I thought I saw this exact same post before like last year...
I'm in someone's sig! Yay! :D :D

ZV
 

PHiuR

Diamond Member
Apr 24, 2001
9,539
2
76
Originally posted by: tikwanleap
Originally posted by: notfred
I'm using a web application that is supposed to return a buch of data. The applciation gives me the option of getting data in HTML format, or XML format. The people who think they're giving me XML data arefvcking morons.

Screenshot of supposed "XML" output.

Sample of the source of the above document:

<html>
<head>
<title>BASIS+ Tools: Report</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>

Project.Task.Subtask %CA%<br><br>

&amp;lt?xml version="1.0" encoding="UTF-8"?&amp;gt<br>
&amp;ltroot xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:eek:d="urn:schemas-microsoft-com:eek:fficedata"&amp;gt<br>
&amp;ltxsd:schema&amp;gt<br>
&amp;ltxsd:element name="dataroot"&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:choice maxOccurs="unbounded"&amp;gt<br>
&amp;ltxsd:element ref="Basis"/&amp;gt<br>
&amp;lt/xsd:choice&amp;gt<br>
&amp;lt/xsd:complexType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Basis"&amp;gt<br>
&amp;ltxsd:annotation&amp;gt<br>
&amp;ltxsd:appinfo/&amp;gt<br>
&amp;lt/xsd:annotation&amp;gt<br>
&amp;ltxsd:complexType&amp;gt<br>
&amp;ltxsd:sequence&amp;gt<br>
&amp;ltxsd:element name="PTS" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="64"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Project" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="11"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Task" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="32"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>
&amp;lt/xsd:simpleType&amp;gt<br>
&amp;lt/xsd:element&amp;gt<br>
&amp;ltxsd:element name="Title" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar"&amp;gt<br>
&amp;ltxsd:simpleType&amp;gt<br>
&amp;ltxsd:restriction base="xsd:string"&amp;gt<br>
&amp;ltxsd:maxLength value="255"/&amp;gt<br>
&amp;lt/xsd:restriction&amp;gt<br>

That's not XML! It's not even close! It's HTML that when rendered, kind of looks like XML. What fvcking good is that? I hate people! :|


Anyone else getting a sense of deja vu? I thought I saw this exact same post before like last year...


thats cause notfred is a bot...