RE: [soapbuilders] Element name escaping

The most thorough and current documentation of the algorithm for
escaping element names is in this proposal to the SQL standards
committee:

ftp://sqlstandards.org/SC32/WG3/Progression_Documents/WD/wd-xml-2001-05.
pdf

See sections 4.2.6, 5.1 and 5.4. 

-----Original Message-----
From: Paul Kulchenko [mailto:paulclinger@yahoo.com] 
Sent: Thursday, May 03, 2001 3:24 PM
To: soapbuilders@yahoogroups.com
Subject: [soapbuilders] Element name escaping


Hi, All!

This question is already covered in XML Protocol issues, but there is no
solution offered, so I would like to get opinions here.

Problem: encoding of element with illegal characters in the name ('a c',
space between a and c)

Possible solutions:
1. specific type, like recently discussed Map. 
  - specific for hash/map/struct encoding
  - didn't get much support
  + already implemented by ApacheSOAP and SOAP::Lite

2. element escaping as in [1]. <a c> becomes <a_x0020_c>
  + works for all elements
  - list of issues [2]
  - doesn't supported by any SOAP toolkit

3. name substitution. <a c> becomes <n1 realname="a c"> [3]
  + works for all elements
  + less number of issues than 2.
  - doesn't supported by any SOAP toolkit

I personally like 2, but I couldn't find document Andrew mentioned in
[1], and current webDAV specification doesn't have anything about
character escaping (or I missed it there). So, what's everybody's
opinion on encoding elements with illegal names?
  
Best wishes, Paul.

[1]
http://discuss.develop.com/archives/wa.exe?A2=ind0005&L=soap&D=0&P=29921
[2]
http://discuss.develop.com/archives/wa.exe?A2=ind0005&L=soap&D=0&P=30851
[3]
http://discuss.develop.com/archives/wa.exe?A2=ind0005&L=soap&D=0&P=33153


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

To unsubscribe from this group, send an email to:
soapbuilders-unsubscribe@yahoogroups.com

 

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 

Received on Tuesday, 5 June 2001 15:42:25 UTC