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

RE: question w.r.t.: Extensible Markup Language (XML) 1.0 (Thi

  • To: "Harrie Hazewinkel" <harrie@l...>, <xml-dev@l...>
  • Subject: RE: question w.r.t.: Extensible Markup Language (XML) 1.0 (Third Edition)
  • From: "Grand Christophe" <chgrand@s...>
  • Date: Fri, 17 Sep 2004 11:57:18 +0200
  • Thread-index: AcScmURjH187HdORQ3e1aEa/b9rr3AAA2UXQ
  • Thread-topic: question w.r.t.: Extensible Markup Language (XML) 1.0 (Third Edition)

vcalendar xml
Hello Harrie,

I think you have to change your <Meta> to:
<Meta>
<Type>text/x-vcalendar</Type>
<Format>b64</Format>
</Meta>
and then base64-encode your data in the <Data> element.

Regards,

Christophe

-----Message d'origine-----
De : Harrie Hazewinkel [mailto:harrie@l...]
Envoyé : vendredi 17 septembre 2004 11:29
À : xml-dev@l...
Objet :  question w.r.t.: Extensible Markup Language (XML) 1.0
(Third Edition)


HI all,


I have a question with respect to the Extensible Markup Language (XML)
1.0 (Third Edition) standard of "http://www.w3.org/TR/REC-xml".

In this section it specifies the handling of CRLF.

2.11 End-of-Line Handling

XML parsed entities are often stored in computer files which, for 
editing convenience, are organized into lines. These lines are typically 
separated by some combination of the characters CARRIAGE RETURN (#xD) 
and LINE FEED (#xA).

To simplify the tasks of applications, the XML processor MUST behave as 
if it normalized all line breaks in external parsed entities (including 
the document entity) on input, before parsing, by translating both the 
two-character sequence #xD #xA and any #xD that is not followed by #xA 
to a single #xA character.


But how about this piece of XML (part of SyncML),
<Add>
<CmdID>4</CmdID>
<Meta>
<Type>text/x-vcalendar</Type>
</Meta>
<Item>
<Source>
<LocURI>1095163651-912@i...</LocURI>
</Source>
<Data>BEGIN:VEVENT^M
SUMMARY:group meeting^M
CLASS:PUBLIC^M
LOCATION:outer space^M
DESCRIPTION:~~~~~~~~~~~~~~~~~~~~\r\nOrganizer: Harrie^M
  Hazewinkel\r\nAttendees: \r\nHarrie Hazewinkel +\r\nAntonio Amadori^M
  ?\r\nGastone Amadori  ?\r\n~~~~~~~~~~~~~~~~~~~~\r\nI like to keep^M
  inviting you. :-)\r\n^M
DTSTAMP:20040914T120731Z^M
ORGANIZER:cap://cap.inet.it/harrie@i...^M
ATTENDEE:cap://cap.inet.it/harrie@i...^M
X-INE-OWNER:YES^M
DTSTART:20040908T090000Z^M
DTEND:20040908T110000Z^M
END:VEVENT^M
</Data>
</Item>
</Add>


The data is here between the <Data> and </Data> tags.
This is a calendar element which by mime type must keep
the CRLF after each line. This is made visible with the '^M'<linefeed>
(representation problem).

Would the lines describing the event also fall
under the section described above? If so XMl changes data and one
cannot get back it, I guess.

Would this not a problem with the current specification?
Any comments,

Harrie


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>


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.