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
Joshua JohnstonSubject: Validating an XML file against an online XSD
Author: Joshua Johnston
Date: 19 Jun 2014 03:30 PM
I'm trying to use Stylus Studio (framework v 1928b) to validate an XML file I'm creating against an online W3C schema. Is this possible?

<stimJobs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://w3.energistics.org/schema/WITSML_v1.4.1.1_Data_Schema/witsml_v1.4.1.1_data/xsd_schemas/obj_stimJob.xsd" version="1.4.1.0" xmlns="http://www.witsml.org/schemas/1series">

...

Stylus Studio tells me "
Validating stimjob.xml...
The XML file does not have a schema to validate against.
"

Posttop
Ivan PedruzziSubject: Validating an XML file against an online XSD
Author: Ivan Pedruzzi
Date: 19 Jun 2014 04:06 PM

You are not using the appropriate syntax to bind the schema, see below

<stimJobs
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.witsml.org/schemas/1series http://w3.energistics.org/schema/WITSML_v1.4.1.1_Data_Schema/witsml_v1.4.1.1_data/xsd_schemas/obj_stimJob.xsd"/>


An alternative method is described here
https://www.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=9774
http://www.stylusstudio.com/docs/v2007/d_help9.html
http://www.stylusstudio.com/XML-Editor-Blog/default,month,2013-11.aspx


Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
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.