XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Escaped Markup Considered Harmful
Subject: Instead of embedding?
Date: 2003-09-05 06:28:15
From: Richard Pinneau

I don't want to embed markup. But I do need to achieve in-line effects and I'm not *getting* any workaround from this article. Here's the deal:
Ok, I'm a complete newbie to XML - I've been fascinated by its potential, but can't see how to begin practicing with its power for the type of use for the type of RichTextFormat uses that I store in FileMakerPro - at least not without escaping embedded markup - so this article sounded most interesting. However it leaves me crippled and unable to see how to do what I want to accomplish. Maybe somebody can enlighten me.


Suppose I've got a db for which a sample .txt export of a record might look like:


"Smith, Ron A","Understanding XML","2001","I really found this book helpful"


I understand that this could be in a XML db as:


<auth>Smith, Ron A</auth><tit>Understanding XML</tit><dt>2001</dt><mynotes>I REALLY found this book helpful"</mynotes>


I don't want to make the word 'REALLY' into another *FIELD* in a databases (XML or otherwise). I want it to be displayed as italic when it is display (e.g., in a browser).


I'd be sold on XML if someone could show me what is the PROPER way of doing this in XML - and ESPECIALLY how to CONCEPTUALIZE what I'm supposed to be doing with this.


Remember: I don't want *another field* (I'd like to be able to move this back and forth between XML db and MySQL and FMPro) - I want to have a way to STYLIZE, etc. (italic, emphasize, embolden, etc) text WITHIN a FIELD.


Obviously I'm just not "getting" XML, or else those who build XML dbs think that one should not desire to stylize text?
Thanks for enlightening a total newbie.


Previous Message Previous Message   Next Message Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938