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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Sang KimSubject: Finding Errors in the XML File
Author: Sang Kim
Date: 31 Aug 2007 12:16 PM
We'd like to check an XML file to make sure tags are spelled/used properly. For example, we tried a compile but we noticed in one particular file that we had this through a long search:

<Emphasis Style="Superscripts>

This is obviously incorrect, it should have an end " and no "s" at the end of Superscript.

However, I haven't found a way for Stylus Studio to point this out specifically. I clicked on the "Check Well-Formed" button, and it points out vaguely,

file:///c:/Documents and Settings/test.xml:2,15325: FATAL ERROR: A '<' character cannot be used in attribute 'Style', except through &lt;


It tells me it's in the "Style" attribute, but not specifically where. It doesn't highlight it in the code. It provides, 2, 15325, but that doesn't really help. Do you know what's the best way to find such errors in Stylus Studio?

Postnext
Minollo I.Subject: Finding Errors in the XML File
Author: Minollo I.
Date: 31 Aug 2007 12:43 PM
2,15325 is the line column pair; I guess you have a long single line XML document.

Doesn't Stylus move the cursor to that position? Do you have line wrapping enabled?

Postnext
Sang KimSubject: Finding Errors in the XML File
Author: Sang Kim
Date: 31 Aug 2007 12:51 PM
Line wrap is turned on, but it's just one continuous file with no spaces between tags and content. So, when it gives line/column, the cursor just points to the first line.

Any thoughts on how to fix this?

Postnext
Minollo I.Subject: Finding Errors in the XML File
Author: Minollo I.
Date: 31 Aug 2007 12:57 PM
Hm, that's clearly a bug. It will get fixed in the next maintenance package.

In the meanwhile, I can only suggest moving the cursor (and/or the scroll bar) to get to the proper column position; line/col position is always visible in the right part of the application status bar.

Sorry for the trouble.

Postnext
Jamil TaylorSubject: Finding Errors in the XML File
Author: Jamil Taylor
Date: 03 Sep 2007 10:22 AM
Thanks for pointing this out. I was unaware of this problem and was able to reproduce it on my installed version. Although the 'Check well-formed' option does not move the cursor to the column in error, selecting 'Indent XML Tags' does, and I can use this as a work-around until the next patch is released.

Posttop
Minollo I.Subject: Finding Errors in the XML File
Author: Minollo I.
Date: 07 Sep 2007 03:19 PM
This problem is fixed in the BL894m maintenance package, available from http://www.stylusstudio.com/update/2007_R2.html

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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.