473,372 Members | 1,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

XML for Coders (XFC)

Don't know how many other proposals like that are
circulating on the web - if anybody cares: this is mine :)

If some of you like it, i'll write a SAX parser and a converter!

?processingInstruction( text )

?xml(version="1.0")

elementName(attributeName="text" otherAttributeName='5')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with ';'
// emptyElement;
// emptyElement(attrib="");
"text"
'text: "Hello World!"'
}
// Single-line comment
/*
Multi-line comment
*/

![CDATA([ Some CDATA ])]

!DOCTYPE(greeting SYSTEM "hello.dtd")

!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???

//Simple replacement for external entities:
[URI]

element(attrib="1<2")
{
"No special handling of '<>&%^'!"
}
NameSpace:element(AttributeNamespace:atrib="text") {}

html(xmlns='http://www.w3.org/TR/REC-html40')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href='http://www.bouncingbytes.at'){"here"} }
}
}

Jul 20 '05 #1
10 1827
hehe. looks fancy ;)
but probably only c++-syntax supportes will like it ;)
Jul 20 '05 #2
It's all a bit like terse xml, except that yours is quite verbose for no good
reason that i can determine. You are just swapping one, verbose, syntax for
another.

How about this...

?text

elementName attributeName=text otherAttributeName=5
{
subElementName
"text"
}

html xmlns=http://www.w3.org/TR/REC-html40
{
head
{
title attribute='this needs to be in quotes' {"Page Title"}
}
!comment
body
{
p{ "Go " a href=http://www.bouncingbytes.at {"here"} }
}
}

I'm sure you can see the syntax and it is less 'just looks like C++/Java' that
people might find off putting. The purpose of a new version of xml is, surely,
to provide some improvement for some usage of xml rather than just another syntax.

The purpose of terse xml is just that, be terse without being obscure.

Jul 20 '05 #3
This is *not* XML -- do not use "XML" in the name of your language to avoid
any confusion.
Dimitre Novatchev.

FXSL developer, XML Insider,
http://fxsl.sourceforge.net/ -- the home of FXSL

"Erik Unger" <Er********@gmx.at> wrote in message
news:3f********@e-post.inode.at...
Don't know how many other proposals like that are
circulating on the web - if anybody cares: this is mine :)

If some of you like it, i'll write a SAX parser and a converter!

?processingInstruction( text )

?xml(version="1.0")

elementName(attributeName="text" otherAttributeName='5')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with ';' // emptyElement;
// emptyElement(attrib="");
"text"
'text: "Hello World!"'
}
// Single-line comment
/*
Multi-line comment
*/

![CDATA([ Some CDATA ])]

!DOCTYPE(greeting SYSTEM "hello.dtd")

!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???

//Simple replacement for external entities:
[URI]

element(attrib="1<2")
{
"No special handling of '<>&%^'!"
}
NameSpace:element(AttributeNamespace:atrib="text") {}

html(xmlns='http://www.w3.org/TR/REC-html40')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href='http://www.bouncingbytes.at'){"here"} }
}
}

Jul 20 '05 #4
Dimitre Novatchev wrote:
This is *not* XML -- do not use "XML" in the name of your language to avoid
any confusion.


The syntax is not XML but the semantic is.
So how should i call it ?
Another Alternative Syntax for XML-like Meta Semantic (AASFXLMS) ?
But here XML is still in the name...

-Erik

Jul 20 '05 #5
arachno wrote:
hehe. looks fancy ;)
but probably only c++-syntax supportes will like it ;)


Or Java, C# and all other {}-language coders,
which are a small minority on this planet ;)

-Erik

Jul 20 '05 #6
Peter Hickman wrote:
It's all a bit like terse xml, except that yours is quite verbose for no
good reason that i can determine.
Many coders are used to reading such a C-like syntax!
How about this...

elementName attributeName=text otherAttributeName=5
{
subElementName
"text"
}
Looks nice too. But parentheses around attributes can help
making the syntax more clear (and easier to parse).
The purpose of terse xml is just that, be terse without being obscure.


OK. My goal is a (for humans and especially programmers) more _readable_ syntax,
not a 'better' and/or mor terse syntax.

-Erik

Jul 20 '05 #7
Erik Unger wrote:
Don't know how many other proposals like that are
circulating on the web


Now I know at least the following list:

http://www.pault.com/pault/pxml/xmlalternatives.html

-Erik

Jul 20 '05 #8
Sorry,

I don't have time to discuss this as it is a non-xml topic.

Publish your proposal on the xml-dev list and see what happens :o) They
have a permalink on such proposals.

Hint: Try to find other such proposals and what was said about them on the
list. AFAIK none has succeeded.
Dimitre Novatchev.
FXSL developer, XML Insider,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html

"Erik Unger" <Er********@gmx.at> wrote in message
news:3f********@e-post.inode.at...
Dimitre Novatchev wrote:
This is *not* XML -- do not use "XML" in the name of your language to avoid any confusion.


The syntax is not XML but the semantic is.
So how should i call it ?
Another Alternative Syntax for XML-like Meta Semantic (AASFXLMS) ?
But here XML is still in the name...

-Erik

Jul 20 '05 #9
In article <3f********@e-post.inode.at>, Erik Unger <Er********@gmx.at> wrote:

% The syntax is not XML but the semantic is.

??? XML has no semantics. All it is is syntax.

If you want a terser input syntax for XML, why not use SGML?
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #10
Patrick TJ McPhee wrote:
In article <3f********@e-post.inode.at>, Erik Unger <Er********@gmx.at> wrote:

% The syntax is not XML but the semantic is.

??? XML has no semantics. All it is is syntax.
I know, but how should i call it ?
Meta-Syntax or, Semantic of the syntax... ;)
If you want a terser input syntax for XML, why not use SGML?


You have read the whole thread ?

and stop

-Erik

Jul 20 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Willie Stewart | last post by:
Webmasters: Colance specialise in connecting your ideas with Freelance Professionals to produce your project. Programmers: Providing your Service is made easy through Colance. It is free to sign up...
6
by: JW | last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking on the product does a javascript popup with larger image and detailed description info passed to the javascript...
87
by: ziliath | last post by:
I recently tried out the Google "top coder" contest, as a C++ coder. I noticed immediately that they expected me to know STL. To which I say, what the fuck?! I may be missing something, but at...
0
by: rebel | last post by:
Hey!, Im looking for expierienced C# coders for a client. since the www.zone.com closed the Age of empires2 Client server, the community has tried to make its own client by putting together...
1
by: jonano | last post by:
Hi I search some programmers able to build an OS. here is my project: http://futurism.freepgs.com If you know a good place to ask this question, email me: jonano@gmail.com
0
by: chained | last post by:
Hi, Is there a comparative study of these Gtk+ wrappers, pros and cons of each? What are your opinions about them, if any? thanks.
0
by: avguste | last post by:
Hello My name is Avguste and I am one of the head admins at CheatBusted(http://www.cheatbusted.com). CheatBusted is an anti-cheat community for Americas Army and True Combat Elite.We are also...
1
by: ImCookieness | last post by:
Hi, we are currently a crew of 5, in the making of an new MMORPG. We are currently looking for some coders to the project. Interested? Add me on msn : Cookieness@maxrounds.com Or, mail me...
1
by: Vangati | last post by:
Plusmo is Hiring! Plusmo's mission is to provide the ultimate mobile experience for users by bringing together advanced technologies and easy to use services for mobile phones. Plusmo's...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.