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

Re: 2SimpleXML


Re:  2SimpleXML
Hi Scott,

Le vendredi 10 février 2006 à 11:49 -0800, Redefined Horizons a écrit :
> I don't want to set off another debate about subsets of XML, but I
> wanted to post this for others benefit. :]
> 
> I have put up a rough draft of my specification for 2SimpleXML. Other
> developers that are interested in using a simpler subset of XML might
> want to take a look at it. I will be using 2SimpleXML in some
> application development on one of my other projects, so I will be
> maintaining the specification for the foreseeable future.
> 
> If others are interested in creating a more "official" version of the
> specification that they can reference, I would be willing to do so.
> (Although I'm not sure how this would be accomplished.)
> 
> I am open to constructive criticism and suggestions on the spec from
> this group. I actually need help with a couple of things:
> 
> [1] Do I need to specify that documents in 2SimpleXML should be in a
> standard character set, as they did for MinimalXML? If so which
> charcter set should I use? I'm guessing it would be Unicode of one
> sort or another...


Yes, it seems wise to push for utf-8 and utf-16 encodings since they are
the most interoperable...

> [2] I would like to provide a way to escape the "<" and ">" characters
> in the content of a 2SimpleXML element. I was thinking I would just
> use the "\" character as my escape character. In this case the
> following would be possible:
> 
> <sample> The "test" element in this line would not be recognized by a
> 2SimpleXML parser. /<test\>Testing\<\/test/><\sample>
> 
> Is there a better way to do this?

That depends if you want to define a real subset of XML, i.e. if a
2SimpleXML document needs to be a well formed document.

The benefit if you do so is that you'll be able to process 2SimpleXML
documents through any XML tool.

If you want to keep this compatibility, you can't accept "/<" which
isn't well formed.

Why not keep the XML way to escape these characters (&lt; and &gt;)?

Eric 

-- 
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

Ceci est une partie de message=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


  • References:
    • 2SimpleXML
      • From: Redefined Horizons <redefined.horizons@g...>

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.