Sawyer Elisa-HNBV68 wrote:
> 
> I did not develop the XML Schema that the files use--and there is a
> complex transform associated with the Schema. 
> 
> The writing for a set of documents has been outsourced to Brazil, to a
> team that does not really know how to write in English well. We are
> trying to find a way to pull up the content that exists in the files and
> edit the writing without touching the markup. I was hoping that I could
> use the Pro version. However, the xml file does not open in XML Mind. I
> opened it in Eclipse first, eliminated a set of tags and their contents
> from the header, 

File JSR_30_CLDC_1_0.xml attached to your email is not a well-formed XML
document. It cannot be opened in XXE which reports this error:
element after document element.

And this seems that this file has many other ``non-well-formed'' errors.

XMLmind XML Editor is not well suited to cope with well-formed XML files
written by hand and therefore containing many errors. If you really need
to edit such files, you are loosing your time with our product.



> and removed "illegal" characters, 

File JSR_30_CLDC_1_0.xml contains no "illegal" characters. For example,
there was no need to remove these perfectly legal double-quotes
characters: ``, '' (encoded in UTF-8).



> then simply opened it
> in XML Mind and saved it without making any changes. It appears that XML
> Mind is inserting artifacts at each hard return.

I reproduced what you did on file JSR_30_CLDC_1_0.xml (except removing
characters) and saved the file using the ISO-8859-1 encoding (see
attached jsr-iso-8859-1.xml) and also using the UTF-8 encoding  (see
jsr-utf8.xml).

Using Emacs, I didn't see ``artifacts at each hard return''.

I've also opened TryUTF8SaveXXE.xml in Emacs. No ``artifacts at each
hard return''.

I hope that you are not using notepad because it does not support
Unix-style end of lines. XXE always uses Unix-style end of lines: "\n"
and not DOS-style end of lines: "\r\n". In XML, both are valid.
On Windows, please use write (AKA wordpad) instead on notepad.



> I have been trying to find documentation about how to work with existing
> XML Schema in XML Mind and am having trouble locating any information.

True, we have tons of documentation:
http://www.xmlmind.com/xmleditor/documentation.shtml.

You'll find the answer to the above question in this book:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/index.html



---
PS: XXE thinks that your <chapter> is *DocBook* one due to this DocBook
detection rule (excerpt of
XXE_install_dir/addon/config/docbook/docbook.xxe):

---
  <detect>
    <and>
      <rootElementNamespace xsi:nil="true" />
      <not>
        <dtdPublicId substring="true">Simplified</dtdPublicId>
      </not>
      <or>
        <dtdPublicId substring="true">DTD DocBook</dtdPublicId>
        <and>
           <schemaType xsi:nil="true" />
           <or>
              <rootElementLocalName>part</rootElementLocalName>
              <rootElementLocalName>chapter</rootElementLocalName>
              <rootElementLocalName>refentry</rootElementLocalName>
              <rootElementLocalName>appendix</rootElementLocalName>
              <rootElementLocalName>glossary</rootElementLocalName>
              <rootElementLocalName>section</rootElementLocalName>
              <rootElementLocalName>sect1</rootElementLocalName>
              <rootElementLocalName>sect2</rootElementLocalName>
              <rootElementLocalName>sect3</rootElementLocalName>
              <rootElementLocalName>book</rootElementLocalName>
              <rootElementLocalName>article</rootElementLocalName>
           </or>
        </and>
      </or>
    </and>
  </detect>
---

You really need to teach XXE that your <chapter> belongs in fact to
another document type because XXE replaces some characters by DocBook
references to character entities. For example, it replaces the trademark
character by "&trade;".

However this save options can be turned off by using the Options dialog
box, Save section, "Save characters outside encoding as entity
references" checkbox. See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xmleditapp.dialog.PreferencesEditorDialog.html#saveOptions



-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsr-iso-8859-1.xml
Type: text/xml
Size: 6641 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070302/f1a14983/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsr-utf8.xml
Type: text/xml
Size: 6583 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070302/f1a14983/attachment-0001.xml
 

Reply via email to