[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: PCDATA
On Wed, 7 May 1997, Peter Murray-Rust wrote: > > >How many PCDATA elements would be expected in the file? > > <?XML VERSION="1.0"?> > > <!DOCTYPE CML> > > <CML> > > <XVAR> > > This is a variable > > </XVAR> > > </CML> I was running NXP with : <?XML VERSION="1.0"?> <!DOCTYPE CML> <CML> <XVAR> A variable </XVAR> </CML> and the result was : <CML> " " <XVAR> " A variable " </XVAR> " " </CML> (\n is passed along to the application since the parser dosn't know what else to do with it.) I also used the example with a simple DTD : <?XML VERSION="1.0"?> <!DOCTYPE CML [ <!ELEMENT CML (XVAR)*> <!ELEMENT XVAR (#PCDATA)> ]> <CML> <XVAR> A variable </XVAR> </CML> and the result was : <CML> <XVAR> " A variable " </XVAR> </CML> -> the whitespace inside CML was recognized to be markup only. Best regards, Norbert H. Mikula ===================================================== = SGML, XML, DSSSL, Intra- & Internet, AI, Java ===================================================== = mailto:nmikula@e... = http://www.edu.uni-klu.ac.at/~nmikula ===================================================== xml-dev: A list for W3C XML Developers Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To unsubscribe, send to majordomo@i... the following message; unsubscribe xml-dev List coordinator, Henry Rzepa (rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|