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

RE: xml langage that describe log files

  • From: "DuCharme, Robert" <Robert.DuCharme@m...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 20 Jun 2000 13:13:51 -0400

append file xml log
One issue with XML and log files is that people usually want to append log
events to their log files, but XML well-formedness requirements mean that
the entire file must be enclosed by a single container element. This could
mean, for example, inserting a new logEvent element before the logEvents
end-tag below instead of doing a simple append:

  <logEvents>
    <logEvent id="L1".../>
    <logEvent id="L2".../>
    <logEvent id="L3".../>
  </logEvents>

Fortunately, external general entities let you still implement this using
simple appends. If you add your log entries to the file logentries.txt in a
format like this,

  <logEvent id="L1".../>
  <logEvent id="L2".../>
  <logEvent id="L3".../>

then you could use the following well-formed document to process your log as
XML:

  <!DOCTYPE logEvents [
  <!-- logEvents and logEvent element type and attribute list declarations
if  you
       want it to be valid XML -->
  <!ENTITY logFile SYSTEM "logentries.txt">
  ]>
  <logEvents>&logFile;</logEvents>


Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.