|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [off-topic] xtext -- encoding declarations for text
>> Also, the fact that the first few characters depend on the application
>> will make it hard to write general transcoders.
>I had thought that too, but on thinking about it more I cannot see any
>additional complexity compared with the XML Appendix F. The details
>of the algorithm are different but still it is the same three steps
[...]
> * else look for EBCDIC/ASCII signature (use string "[^a-zA-Z01-9]{1-4}xtext\b"
> rather than "<?xml\b"
For XML, it's only necessary to look at the first four bytes to cover
Unicode encodings, ascii supersets and ebcdic. In the xtext case, you
will have to compare a string at several different positions or apply
a regular expression. Certainly doable, but certainly more complex too!
-- Richard
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart


![Re: [off-topic] xtext -- encoding declarations for text](/images/get_stylus.gif)





