[Home] [By Thread] [By Date] [Recent Entries]

  • 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

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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member