Click here to Skip to main content
15,893,564 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: .net XMLSerializer - multiple namespace problem Pin
SeMartens27-Jan-10 20:25
SeMartens27-Jan-10 20:25 
GeneralRe: .net XMLSerializer - multiple namespace problem Pin
AndyPeacock27-Jan-10 21:58
AndyPeacock27-Jan-10 21:58 
QuestionSOAP C# Tutorial/Example Pin
ffowler26-Jan-10 10:32
ffowler26-Jan-10 10:32 
AnswerRe: SOAP C# Tutorial/Example Pin
SeMartens26-Jan-10 20:43
SeMartens26-Jan-10 20:43 
GeneralRe: SOAP C# Tutorial/Example Pin
ffowler27-Jan-10 2:05
ffowler27-Jan-10 2:05 
Questionadd element unique Id XSLT Pin
mvujica18-Jan-10 5:43
mvujica18-Jan-10 5:43 
AnswerRe: add element unique Id XSLT Pin
mvujica19-Jan-10 5:13
mvujica19-Jan-10 5:13 
QuestionXML file compression Pin
dalbhide bipin18-Jan-10 1:28
dalbhide bipin18-Jan-10 1:28 
Hello Guys
I am new to XML. I have started reading XML few days back.
I have a question. Consider a table calling "Catalog" and has following
column names "book" , "author", "title", "genre", "price", "publish_date"
"description".

XML representation of Catalog Table


<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
<book id="bk102">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-12-16</publish_date>
<description>A former architect battles corporate zombies,
an evil sorceress, and her own childhood to become queen
of the world.</description>
</book>
<catalog>


Compressed format of catalog table

<?xml version="1.0"?>
<Table = "catalog" enum{ book = 1, author = 2, title = 3, genre = 4, price = 5, publish_date = 6, description = 7}> </Table>
<catalog>
<1 id="bk101">
<2>Gambardella, Matthew</2>
<3>XML Developer's Guide</3>
<4>Computer</4>
<5>44.96</5>
<6>2000-10-01</6>
<7>An in-depth look at creating applications
with XML.</7>
</1>
<1 id="bk102">
<2>Ralls, Kim</2>
<3>Midnight Rain</3>
<4>Fantasy</4>
<5>6.96</5>
<6>2000-12-16</6>
<7>A former architect battles corporate zombies,
an evil sorceress, and her own childhood to become queen
of the world.</7>
</1>
<catalog>


So compressed format requires 20% less memory. I know that XML is user readable also. But while transferring huge XML data over the network, compressed format could improve the performance. And at the end (destination) we can decompress the compressed XML data.

So my question is Why cant we use compressed XML???
I have no idea about this. Please let me correct if i am wrong.

Thanks
Bipin Dalbhide
AnswerRe: XML file compression Pin
mvujica18-Jan-10 5:51
mvujica18-Jan-10 5:51 
GeneralRe: XML file compression Pin
dalbhide bipin18-Jan-10 18:18
dalbhide bipin18-Jan-10 18:18 
QuestionI need an ebay program Pin
totolcm13-Jan-10 2:26
totolcm13-Jan-10 2:26 
AnswerRe: I need an ebay program Pin
JustWorking13-Jan-10 2:43
JustWorking13-Jan-10 2:43 
GeneralRe: I need an ebay program Pin
Ashfield14-Jan-10 1:26
Ashfield14-Jan-10 1:26 
JokeRe: I need an ebay program [modified] Pin
The Man from U.N.C.L.E.14-Jan-10 6:43
The Man from U.N.C.L.E.14-Jan-10 6:43 
QuestionUsing unparsed entities in schemas Pin
rusgregor12-Jan-10 21:46
rusgregor12-Jan-10 21:46 
AnswerRe: Using unparsed entities in schemas Pin
Stuart Dootson13-Jan-10 0:26
professionalStuart Dootson13-Jan-10 0:26 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor13-Jan-10 4:18
rusgregor13-Jan-10 4:18 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson13-Jan-10 4:25
professionalStuart Dootson13-Jan-10 4:25 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor14-Jan-10 3:23
rusgregor14-Jan-10 3:23 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson14-Jan-10 4:44
professionalStuart Dootson14-Jan-10 4:44 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor14-Jan-10 21:24
rusgregor14-Jan-10 21:24 
GeneralRe: Using unparsed entities in schemas Pin
Stuart Dootson14-Jan-10 22:00
professionalStuart Dootson14-Jan-10 22:00 
GeneralRe: Using unparsed entities in schemas Pin
rusgregor18-Jan-10 2:09
rusgregor18-Jan-10 2:09 
QuestionXQuery Pin
Lutosław9-Jan-10 23:40
Lutosław9-Jan-10 23:40 
AnswerRe: XQuery Pin
Stuart Dootson12-Jan-10 3:07
professionalStuart Dootson12-Jan-10 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.