[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Another way to present XML data

  • From: David Carlisle <d.p.carlisle@gmail.com>
  • To: jf.larvoire@free.fr
  • Date: Wed, 13 Sep 2017 14:16:44 +0100

Re:  Another way to present XML data
sml.tcl passes that test easily :-)

C:\JFL\Temp>"echo.exe" "<p><u>underlined</u> <i>italic</i></p>"
<p><u>underlined</u> <i>italic</i></p>

C:\JFL\Temp>"echo.exe" "<p><u>underlined</u> <i>italic</i></p>" | sml
p {u underlined ;i italic}

Yes in a few quick tests that I tried, it did seem to round trip,
however to be honest I could not find any xml in the (thousands) of
xml files I have to hand where the sml would be easier to edit than
the xml.

given a syntax like

<p><u>underlined</u> <i>italic</i></p>

I can easily move from one element to the next, rename or comment out
whole elements etc, and given a schema get auto completion on the
allowed elements at any point and red text if I mistype an element

To edit a large file using a syntax like

p {u underlined ;i italic}

would be scary, essentially the whole thing would be seen by any
editor I have as an unstructured string and I'd be responsible for
getting all the {} and ; in the right places.

If I had to produce such a syntax I would much prefer to edit a source
in xml and generate that syntax at the end (same true of json)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.