Better HN
topnewbestaskshowjobs
Log inSign up

sven-n

4 karma · joined Mar 7, 2014 (12y ago) · 3 submissions

Submissions

1.

Handling packet structures in .NET – a new way?(munique.net ↗)

2 points · by sven-n · 7y ago · discuss

comment 12y ago · link · parent

Well, I don't say there are not better ways, but I don't know any. I've used XSLT a lot. It requires different thinking, if you are used to procedural programming. If you deeply understand how it works, it's pretty straightforward.

comment 12y ago · link · parent

I guess the author didn't get the purpose of XML. It doesn't have the goal to use the least amount of metadata/tags as possible. If you need that, just compress it. Whatever, XML offers a wide range of tools, such as:

- Data in XML can be transformed into almost any other format using XSLT.

- It can be validated using XSD.

- It can be searched using XPath.

This makes it a perfect data exchange format.