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

Re: XML Spy and mixed content

  • To: Norman Walsh <ndw@n...>
  • Subject: Re: XML Spy and mixed content
  • From: Oleg Tkachenko <oleg@t...>
  • Date: Tue, 16 Sep 2003 00:32:35 +0300
  • Cc: xml-dev@l...
  • In-reply-to: <877k49g59h.fsf@n...>
  • Organization: Multiconn Technologies
  • References: <877k49g59h.fsf@n...>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529

xml mixed content
Norman Walsh wrote:

> I've been exchanging some documents with an author using XML Spy. It
> really appears to me that XML Spy is mangling the mixed content. In
> particular, it turns:
> 
>   <p><termdef>blah blah</termdef> de blah blah blah</p>
> 
> into
> 
>   <p>
>          <termdef>blah blah</termdef> de blah blah blah</p>
Looks like result of XML Spy's pretty-printing.

> Anyway, I'm hoping someone out there can satisfy my curiosity. If XML
> Spy loads the DTD and sees that there's mixed content, please tell me
> that it doesn't introduce random *significant* white space into my
> document.
It does instroduce \n\t after <p> start tag in the above document when 
pretty-printing the document, even if p is defined as
<!ELEMENT p (#PCDATA | termdef)*>

> Failing that, tell me there's a setting I can have my
> co-author frob so that it doesn't mangle this particular document.
Well, to forget about pretty-print button and XML grid view (latter 
could be difficult, because it's default view for XML documents, he must 
switch default view to Text View). In effect that means using XML Spy as 
regular text editor :)
-- 
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


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.