>> + every metadata in XML with a correct, well commented and versioned DTD to ease 
>3rd party client (and daemon) development!
>> 
>> 
>Freenet is an XML-free(tm) project.  Many times people have tried to
>get us to use XML for this and that, and each time, the complexity of
>XML parsers keeps us from going anywhere near using it.

you don't have to use a far too complex xml parser like xerces or the one that ships 
with sun's java
it's no problem to write a specialized, small and fast xml parser for this project 
only, you just drop things linke xlink, xpointer, namespaces and stuff, make an 
easily machine-readable dtd and use a function like String header = 
getBetween("<header">,"</header>") or customize it to getBetweenTag("header"), 
then you can make a for(Enumeration 
subnodes=getSubNodeEnumerationBetweenTag("header");) and eat all subnodes right away. 
simple.
you can even drop support for node attributes, anything can be described fine with 
just nude elements, and it is much more readable.
having designed a dtd, too, you can easily port your protocol to other projects as 
well, without demangling the source or digging into some specs....


____________________________________________________________

The information transmitted is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action in 
reliance upon, this information by persons or entities other than the intended 
recipient is prohibited. If you received this in error, please contact the sender and 
delete the material from any computer.






_______________________________________________
support mailing list
[EMAIL PROTECTED]
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/support

Reply via email to