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

Re: SAX-J and the DPH (DJH?)

  • From: Sean Mc Grath <digitome@i...>
  • To: xml-dev@i...
  • Date: Tue, 30 Dec 1997 16:30:48 GMT

sax j
[Sean Mc Grath]
>> He is the guy staring at 10GB of corporate XML docs and just wants
>> to change
>> 
>> <telephone>555-1234</telephone>
>> 
>> into
>> 
>> <telephone>555-4321</telepone>
>> 
>> throughout the whole lot. If he uses SAX-J he blows all the
>> aide-memoires stuffed into his comments? He also blows his CDATA
>> marked sections. Is the DPH destined to always use a fully blown
>> parser to output XML?
>
[Chris Maden]
>Hell, no!  He'd be a fool to use Java for this when
>s/555-1234/555-4321/g will do the trick.  (I suspect that in any
>real-world situation like this, *all* numbers would want to be
>changed, but if not, just include the markup in the sed command.)

My example was a bit simplistic. This transformation is
no more difficult in fully blown SGML that it is in XML.

The fun starts for the D&lang;H when including the markup in the
SED command is not an option due to the hierarchical sensitivity of
the task. e.g. just telephone numbers occuring within 
the appendix elements and skipping those where the client attribute
has the value = "Jones". That sort of thing.

Maybe nothing short of a fully blown XML parser will do for these
situations?


Sean Mc Grath
sean at digitome dot com




xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.