XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
- Stylus Studio Feature Requests (1192)
-> - Proposal to Add Git Support to... (1)
-> + XML formatter option request (3)
-> - Could Pipeline input scenario ... (1)
-> + XML Traversal in XSLT Mapper (2)
-> + Email not in HTML as expected (3)
-> + My SS Open [tools]==>.[option... (3)
-> + Fonts in Stylus Studio (2)
-> - Fix the check for concurrent s... (1)
-> + Stylus is showing the error fo... (2)
-> - XML editor (1)
-> + Unable to see filename in sche... (2)
-> + Unable to connect to JVM (2)
-> - Stylus Studio forum questions (1)
-> + User Interface - X16 Enterpris... (2)
-> + Stylus Studio High DPI support (2)
-> + target xsd includes and import... (2)
-> + XML/EDIFACT Schema (3)
-> + Options to control whether BOM... (2)
-> + Snippets and/or Emmet integrat... (2)
-> + internal error accessing metho... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Andreas HackSubject: Problem saving file after viewing file in tree tab
Author: Andreas Hack
Date: 19 Oct 2007 03:35 AM
Originally Posted: 18 Oct 2007 01:23 PM
Hi,

I open an XML file in Styles Studio, go to the tree view tab and expand the first level of the XML doc. I do not edit the file! Then I save the (unchanged) file.
If I take a look at the file in a hex editor I can see now, that non-printable characters have been added at the beginning of the file.
This file is then not processable by applications (example error message: org.xml.sax.SAXParseException: Content is not allowed in prolog.)

As an example I attached the file before opening in SS and after saving it from tree view.

Stylus Studio 2007, XML Enterprise Suite, Release 2.
Framework version: Build 894m

Regards
Andreas


UnknownSPACK.20071014200821.beforeSS.xml
XML file before SS

UnknownSPACK.20071014200821.afterSS.xml
XML file after SS

Postnext
Jamil TaylorSubject: Problem saving file after viewing file in tree tab
Author: Jamil Taylor
Date: 19 Oct 2007 06:47 AM
Originally Posted: 19 Oct 2007 06:33 AM
The file has been saved as unicode (utf-8). What you are seeing is the Windows byte order marker. Your XML file does not include a declaration for the encoding. If you add that to it, the problem may go away.

Note that there are some Java XML parsers that cannot handle the Windows BOM. I think by now, many can. Worst case scenario is to simply change the encoding to ASCII.

Postnext
Dennis BrothersSubject: Problem saving file after viewing file in tree tab
Author: Dennis Brothers
Date: 23 Oct 2007 09:46 AM
The problem also exists if you save from grid view, and it does _not_ go away if you have single-byte encoding (like ISO-8859-1) specified. It is clearly a bug.

This is most annoying, especially since any column rearranging you've done in grid view is lost when you switch to text view to delete the BOM and do the save.

- Dennis Brothers

Posttop
Tony LavinioSubject: Problem saving file after viewing file in tree tab
Author: Tony Lavinio
Date: 25 Oct 2007 08:39 AM
A patch will be available shortly.

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.