From: Peter F. <pet...@zv...> - 2001-05-04 15:26:04
|
Tom, Your correct that it is valid XML . Entities are allowed in attributes, though I'd personally steer clear of them. One of the reasons I do (apart from never having needed to use them ) is that TclXML doesnt support them yet 8-). Its not a bug, its a _missing_ feature .... At the moment I dont know when it will added. It depends on how much demand for it there is and how much time we can make to work on it. Some paying clients have our almost undivided attention at the moment 8-). And the tclxml list has been awfully quite , it seems there's not much interest . It would be nice to know if anyone's using it seriously - it cant be that good that no-one finds fault or lack with it 8-). Peter Todd Bradley wrote > > The semicolon is necessary. "&" is what's called > a "predefined entity" and is the XML of representing > the "&" character. The other four predefined entities > are: > > < which means < > > which means > > ' which means ' > " which means " > > So, I THINK this is valid XML, but TclXML doesn't like > it at all! > > Todd. > > > -----Original Message----- > > From: James C. Moore [mailto:jm...@qn...] > > Sent: Thursday, May 03, 2001 4:17 PM > > To: Todd Bradley; 'tcl...@li...' > > Subject: Re: [Tclxml-users] why won't TclXML parse this? > > > > > > I'm pretty sure you are not allowed to use semicolons. My > > xml is a little > > rusty, though. > > > > > I'm by no means an XML expert, so this may be a stupid > > > question, but I was wondering why the TclXML parser > > > chokes on something like this: > > > > > > <foo bar='Black & White'/> > > > > > > The & is giving ParseCommand fits. If I take out > > > the & then things work fine. > > > > > > The trace I'm getting looks like this: > > > > > > {invalid attribute list} around line 0 > > > while executing > > > "::sgml::Error {invalid attribute list} around line 0" > > > ("uplevel" body line 1) > > > invoked from within > > > "uplevel #0 $options(-errorcommand) [list $attr around line > > $state(line)]" > > > (procedure "ParseEvent:ElementOpen" line 21) > > > invoked from within > > > "ParseEvent:ElementOpen $tag $param options -empty 1" > > > ("*,0,,/" arm line 5) > > > invoked from within > > > "switch -glob -- [string length $tag],[regexp {^\?|!.*} > > $tag],$close,$empty > > > { > > > > > > 0,0,, { > > > # Ignore empty tag - dealt with non-normal > > mode above > > > ..." > > > (procedure "::sgml::parseEvent" line 118) > > > > > > > > > > > > Possibly relevant version numbers from xml.tcl: > > > > > > package provide xml 1.9 > > > > > > package require sgml 1.7 > > > > > > > > > -- Peter Farmer | Custom XML software | Internet Engineering Zveno Pty Ltd | Website XML Solutions | Training & Seminars http://www.zveno.com/ | Open Source Tools | - XML XSL Tcl Pet...@zv... +------------------------+--------------------- Ph. +61 8 92434146 | Mobile +61 417 906 851 | Fax +61 2 6242 4099 |